Show / Hide Table of Contents

Class DTUnsignedShortInfo

Class DTUnsignedShortInfo corresponds to an element of type UnsignedShort in a DTDL model.

Inheritance
object
DTEntityInfo
DTSchemaInfo
DTPrimitiveSchemaInfo
DTNumericSchemaInfo
DTUnsignedShortInfo
Implements
IEquatable<DTEntityInfo>
IEquatable<DTSchemaInfo>
IEquatable<DTPrimitiveSchemaInfo>
IEquatable<DTNumericSchemaInfo>
IEquatable<DTUnsignedShortInfo>
Inherited Members
DTEntityInfo.EntityKind
DTEntityInfo.ChildOf
DTEntityInfo.DefinedIn
DTEntityInfo.Id
DTEntityInfo.UndefinedProperties
DTEntityInfo.LanguageMajorVersion
DTEntityInfo.UndefinedTypes
DTEntityInfo.Description
DTEntityInfo.DisplayName
DTEntityInfo.Comment
DTEntityInfo.ValidateInstance(string)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DTDLParser.Models
Assembly: DTDLParser.dll
Syntax
public class DTUnsignedShortInfo : DTNumericSchemaInfo, IEquatable<DTEntityInfo>, IEquatable<DTSchemaInfo>, IEquatable<DTPrimitiveSchemaInfo>, IEquatable<DTNumericSchemaInfo>, IEquatable<DTUnsignedShortInfo>

Properties

| Edit this page View Source

ClassId

Get the DTMI that identifies type UnsignedShort 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 UnsignedShort.

Overrides
DTNumericSchemaInfo.ClassId
| Edit this page View Source

SupplementalProperties

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
DTNumericSchemaInfo.SupplementalProperties
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.

| Edit this page View Source

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
DTNumericSchemaInfo.SupplementalTypes

Methods

| Edit this page View Source

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 DTEntityInfo object to compare to.

Returns
Type Description
bool

True if equal.

Overrides
DTNumericSchemaInfo.DeepEquals(DTEntityInfo)
| Edit this page View Source

DeepEquals(DTNumericSchemaInfo)

Compares to another DTNumericSchemaInfo object, recursing through the entire subtree of object properties.

Declaration
public override bool DeepEquals(DTNumericSchemaInfo other)
Parameters
Type Name Description
DTNumericSchemaInfo other

The other DTNumericSchemaInfo object to compare to.

Returns
Type Description
bool

True if equal.

Overrides
DTNumericSchemaInfo.DeepEquals(DTNumericSchemaInfo)
| Edit this page View Source

DeepEquals(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 DTPrimitiveSchemaInfo object to compare to.

Returns
Type Description
bool

True if equal.

Overrides
DTNumericSchemaInfo.DeepEquals(DTPrimitiveSchemaInfo)
| Edit this page View Source

DeepEquals(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 DTSchemaInfo object to compare to.

Returns
Type Description
bool

True if equal.

Overrides
DTNumericSchemaInfo.DeepEquals(DTSchemaInfo)
| Edit this page View Source

DeepEquals(DTUnsignedShortInfo)

Compares to another DTUnsignedShortInfo object, recursing through the entire subtree of object properties.

Declaration
public virtual bool DeepEquals(DTUnsignedShortInfo other)
Parameters
Type Name Description
DTUnsignedShortInfo other

The other DTUnsignedShortInfo object to compare to.

Returns
Type Description
bool

True if equal.

| Edit this page View Source

Equals(DTEntityInfo)

Compares to another DTEntityInfo object.

Declaration
public override bool Equals(DTEntityInfo other)
Parameters
Type Name Description
DTEntityInfo other

The other DTEntityInfo object to compare to.

Returns
Type Description
bool

True if equal.

Overrides
DTNumericSchemaInfo.Equals(DTEntityInfo)
| Edit this page View Source

Equals(DTNumericSchemaInfo)

Compares to another DTNumericSchemaInfo object.

Declaration
public override bool Equals(DTNumericSchemaInfo other)
Parameters
Type Name Description
DTNumericSchemaInfo other

The other DTNumericSchemaInfo object to compare to.

Returns
Type Description
bool

True if equal.

Overrides
DTNumericSchemaInfo.Equals(DTNumericSchemaInfo)
| Edit this page View Source

Equals(DTPrimitiveSchemaInfo)

Compares to another DTPrimitiveSchemaInfo object.

Declaration
public override bool Equals(DTPrimitiveSchemaInfo other)
Parameters
Type Name Description
DTPrimitiveSchemaInfo other

The other DTPrimitiveSchemaInfo object to compare to.

Returns
Type Description
bool

True if equal.

Overrides
DTNumericSchemaInfo.Equals(DTPrimitiveSchemaInfo)
| Edit this page View Source

Equals(DTSchemaInfo)

Compares to another DTSchemaInfo object.

Declaration
public override bool Equals(DTSchemaInfo other)
Parameters
Type Name Description
DTSchemaInfo other

The other DTSchemaInfo object to compare to.

Returns
Type Description
bool

True if equal.

Overrides
DTNumericSchemaInfo.Equals(DTSchemaInfo)
| Edit this page View Source

Equals(DTUnsignedShortInfo)

Compares to another DTUnsignedShortInfo object.

Declaration
public virtual bool Equals(DTUnsignedShortInfo other)
Parameters
Type Name Description
DTUnsignedShortInfo other

The other DTUnsignedShortInfo object to compare to.

Returns
Type Description
bool

True if equal.

| Edit this page View Source

ValidateInstance(JsonElement)

Validate a JsonElement to determine whether it is a numeric value that conforms to the XSD definition of 'unsignedShort'.

Declaration
public override IReadOnlyCollection<string> ValidateInstance(JsonElement instanceElt)
Parameters
Type Name Description
JsonElement instanceElt

The JsonElement to validate.

Returns
Type Description
IReadOnlyCollection<string>

A list of strings that each indicate a validation failure; the list is empty if the JsonElement conforms.

Overrides
DTEntityInfo.ValidateInstance(JsonElement)

Operators

| Edit this page View Source

operator ==(DTUnsignedShortInfo, DTUnsignedShortInfo)

Determines whether two DTUnsignedShortInfo objects are equal.

Declaration
public static bool operator ==(DTUnsignedShortInfo x, DTUnsignedShortInfo y)
Parameters
Type Name Description
DTUnsignedShortInfo x

One DTUnsignedShortInfo object to compare.

DTUnsignedShortInfo y

Another DTUnsignedShortInfo object to compare to the first.

Returns
Type Description
bool

True if equal.

| Edit this page View Source

operator !=(DTUnsignedShortInfo, DTUnsignedShortInfo)

Determines whether two DTUnsignedShortInfo objects are not equal.

Declaration
public static bool operator !=(DTUnsignedShortInfo x, DTUnsignedShortInfo y)
Parameters
Type Name Description
DTUnsignedShortInfo x

One DTUnsignedShortInfo object to compare.

DTUnsignedShortInfo y

Another DTUnsignedShortInfo object to compare to the first.

Returns
Type Description
bool

True if not equal.

Implements

IEquatable<T>
IEquatable<T>
IEquatable<T>
IEquatable<T>
IEquatable<T>
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX