Class DTDateInfo
Class DTDateInfo
corresponds to an element of type Date in a DTDL model.
Implements
Inherited Members
Namespace: DTDLParser.Models
Assembly: DTDLParser.dll
Syntax
public class DTDateInfo : DTTemporalSchemaInfo, IEquatable<DTEntityInfo>, IEquatable<DTSchemaInfo>, IEquatable<DTPrimitiveSchemaInfo>, IEquatable<DTTemporalSchemaInfo>, IEquatable<DTDateInfo>
Properties
| Edit this page View SourceClassId
Get the DTMI that identifies type Date in the version of DTDL used to define this element.
Declaration
public override Dtmi ClassId { get; }
Property Value
Type | Description |
---|---|
Dtmi | The DTMI for the DTDL type Date. |
Overrides
| Edit this page View SourceSupplementalProperties
Gets the supplemantal properties of the DTDL element that corresponds to this object.
Declaration
public override IDictionary<string, object> SupplementalProperties { get; }
Property Value
Type | Description |
---|---|
IDictionary<string, object> | A dictionary that maps each string-valued property name to an object that holds the value of the property with the given name. |
Overrides
Remarks
If the property is a literal in the DTDL model, the object holds a literal value. If the property is another DTDL element in the model, the object is the C# object that corresponds to this element.
SupplementalTypes
Gets a collection of identifiers, each of which is a Dtmi
that indicates a supplemental type that applies to the DTDL element that corresponds to this object.
Declaration
public override IReadOnlyCollection<Dtmi> SupplementalTypes { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<Dtmi> | A collection of DTMIs indicating the supplemental types that apply to the DTDL element. |
Overrides
Methods
| Edit this page View SourceDeepEquals(DTDateInfo)
Compares to another DTDateInfo
object, recursing through the entire subtree of object properties.
Declaration
public virtual bool DeepEquals(DTDateInfo other)
Parameters
Type | Name | Description |
---|---|---|
DTDateInfo | other | The other |
Returns
Type | Description |
---|---|
bool | True if equal. |
DeepEquals(DTEntityInfo)
Compares to another DTEntityInfo
object, recursing through the entire subtree of object properties.
Declaration
public override bool DeepEquals(DTEntityInfo other)
Parameters
Type | Name | Description |
---|---|---|
DTEntityInfo | other | The other |
Returns
Type | Description |
---|---|
bool | True if equal. |
Overrides
| Edit this page View SourceDeepEquals(DTPrimitiveSchemaInfo)
Compares to another DTPrimitiveSchemaInfo
object, recursing through the entire subtree of object properties.
Declaration
public override bool DeepEquals(DTPrimitiveSchemaInfo other)
Parameters
Type | Name | Description |
---|---|---|
DTPrimitiveSchemaInfo | other | The other |
Returns
Type | Description |
---|---|
bool | True if equal. |
Overrides
| Edit this page View SourceDeepEquals(DTSchemaInfo)
Compares to another DTSchemaInfo
object, recursing through the entire subtree of object properties.
Declaration
public override bool DeepEquals(DTSchemaInfo other)
Parameters
Type | Name | Description |
---|---|---|
DTSchemaInfo | other | The other |
Returns
Type | Description |
---|---|
bool | True if equal. |
Overrides
| Edit this page View SourceDeepEquals(DTTemporalSchemaInfo)
Compares to another DTTemporalSchemaInfo
object, recursing through the entire subtree of object properties.
Declaration
public override bool DeepEquals(DTTemporalSchemaInfo other)
Parameters
Type | Name | Description |
---|---|---|
DTTemporalSchemaInfo | other | The other |
Returns
Type | Description |
---|---|
bool | True if equal. |
Overrides
| Edit this page View SourceEquals(DTDateInfo)
Compares to another DTDateInfo
object.
Declaration
public virtual bool Equals(DTDateInfo other)
Parameters
Type | Name | Description |
---|---|---|
DTDateInfo | other | The other |
Returns
Type | Description |
---|---|
bool | True if equal. |
Equals(DTEntityInfo)
Compares to another DTEntityInfo
object.
Declaration
public override bool Equals(DTEntityInfo other)
Parameters
Type | Name | Description |
---|---|---|
DTEntityInfo | other | The other |
Returns
Type | Description |
---|---|
bool | True if equal. |
Overrides
| Edit this page View SourceEquals(DTPrimitiveSchemaInfo)
Compares to another DTPrimitiveSchemaInfo
object.
Declaration
public override bool Equals(DTPrimitiveSchemaInfo other)
Parameters
Type | Name | Description |
---|---|---|
DTPrimitiveSchemaInfo | other | The other |
Returns
Type | Description |
---|---|
bool | True if equal. |
Overrides
| Edit this page View SourceEquals(DTSchemaInfo)
Compares to another DTSchemaInfo
object.
Declaration
public override bool Equals(DTSchemaInfo other)
Parameters
Type | Name | Description |
---|---|---|
DTSchemaInfo | other | The other |
Returns
Type | Description |
---|---|
bool | True if equal. |
Overrides
| Edit this page View SourceEquals(DTTemporalSchemaInfo)
Compares to another DTTemporalSchemaInfo
object.
Declaration
public override bool Equals(DTTemporalSchemaInfo other)
Parameters
Type | Name | Description |
---|---|---|
DTTemporalSchemaInfo | other | The other |
Returns
Type | Description |
---|---|
bool | True if equal. |
Overrides
| Edit this page View SourceValidateInstance(JsonElement)
Validate a JsonElement
to determine whether it is a string value that conforms to the RFC 3339 definition of 'date'.
Declaration
public override IReadOnlyCollection<string> ValidateInstance(JsonElement instanceElt)
Parameters
Type | Name | Description |
---|---|---|
JsonElement | instanceElt | The |
Returns
Type | Description |
---|---|
IReadOnlyCollection<string> | A list of strings that each indicate a validation failure; the list is empty if the |
Overrides
Operators
| Edit this page View Sourceoperator ==(DTDateInfo, DTDateInfo)
Determines whether two DTDateInfo
objects are equal.
Declaration
public static bool operator ==(DTDateInfo x, DTDateInfo y)
Parameters
Type | Name | Description |
---|---|---|
DTDateInfo | x | One |
DTDateInfo | y | Another |
Returns
Type | Description |
---|---|
bool | True if equal. |
operator !=(DTDateInfo, DTDateInfo)
Determines whether two DTDateInfo
objects are not equal.
Declaration
public static bool operator !=(DTDateInfo x, DTDateInfo y)
Parameters
Type | Name | Description |
---|---|---|
DTDateInfo | x | One |
DTDateInfo | y | Another |
Returns
Type | Description |
---|---|
bool | True if not equal. |