Class PropertyDataSlim
Container for structural type property data.
Inheritance
Implements
Namespace: Nuqleon.DataModel.CompilerServices.Bonsai
Assembly: Nuqleon.DataModel.CompilerServices.dll
Syntax
public sealed class PropertyDataSlim : ValueType, IEquatable<PropertyDataSlim>
Constructors
PropertyDataSlim(String, TypeSlim)
Instantiates a property data container for structural types.
Declaration
public PropertyDataSlim(string name, TypeSlim type)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the property. |
TypeSlim | type | The type of the property. |
Properties
Name
The name of the property.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Type
The type of the property.
Declaration
public TypeSlim Type { get; }
Property Value
Type | Description |
---|---|
TypeSlim |
Methods
Equals(PropertyDataSlim)
Checks if the current object is equal to the specified object.
Declaration
public bool Equals(PropertyDataSlim other)
Parameters
Type | Name | Description |
---|---|---|
PropertyDataSlim | other | The object to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | true if both objects are equal; otherwise, false. |
Equals(Object)
Checks if the current object is equal to the specified object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | true if both objects are equal; otherwise, false. |
GetHashCode()
Gets a hash code for the current object.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code. |
Operators
Equality(PropertyDataSlim, PropertyDataSlim)
Checks if the specified objects are equal.
Declaration
public static bool operator ==(PropertyDataSlim left, PropertyDataSlim right)
Parameters
Type | Name | Description |
---|---|---|
PropertyDataSlim | left | The first object to compare. |
PropertyDataSlim | right | The second object to compare. |
Returns
Type | Description |
---|---|
System.Boolean | true if both objects are equal; otherwise, false. |
Inequality(PropertyDataSlim, PropertyDataSlim)
Checks if the specified objects are not equal.
Declaration
public static bool operator !=(PropertyDataSlim left, PropertyDataSlim right)
Parameters
Type | Name | Description |
---|---|---|
PropertyDataSlim | left | The first object to compare. |
PropertyDataSlim | right | The second object to compare. |
Returns
Type | Description |
---|---|
System.Boolean | true if both objects are not equal; otherwise, false. |