Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
UndefinedLiteral.cs
1using System;
3
5{
10 {
15 : base()
16 {
17 }
18
22 public override string StringType => null;
23
29 public override Grade Supports(Type ValueType)
30 {
31 return Grade.NotAtAll;
32 }
33
39 public override ISemanticLiteral Encapsulate(object Value)
40 {
41 return new UndefinedLiteral();
42 }
43
51 public override ISemanticLiteral Parse(string Value, string DataType, string Language)
52 {
53 return new UndefinedLiteral();
54 }
55
57 public override bool Equals(object obj)
58 {
59 return obj is UndefinedLiteral;
60 }
61
63 public override int GetHashCode()
64 {
65 return typeof(UndefinedLiteral).GetHashCode();
66 }
67
69 public override string ToString()
70 {
71 return "UNDEF";
72 }
73 }
74}
override Grade Supports(Type ValueType)
How well the type supports a given value type.
override ISemanticLiteral Parse(string Value, string DataType, string Language)
Tries to parse a string value of the type supported by the class..
UndefinedLiteral()
Represents an undefined literal.
override ISemanticLiteral Encapsulate(object Value)
Encapsulates an object value as a semantic literal value.
Abstract base class for semantic literal values.
Interface for semantic literals.
Grade
Grade enumeration
Definition: Grade.cs:7