Struct PropertyDefinition
Represents a property definition.
Implements
Inherited Members
Namespace: TopSolid.Kernel.Automating
Assembly: cs.temp.dll.dll
Syntax
[AvailableSinceVersion(7, 12, 0, 0)]
public struct PropertyDefinition : IEquatable<PropertyDefinition>
Remarks
This structure is available since v7.12.
Constructors
PropertyDefinition(String, String)
Initializes a new instance of the PropertyDefinition structure.
Declaration
public PropertyDefinition(string inDomain, string inName)
Parameters
| Type | Name | Description |
|---|---|---|
| String | inDomain | Property domain. |
| String | inName | Property name. |
Fields
Domain
Property domain, or null if empty.
Declaration
public string Domain
Field Value
| Type | Description |
|---|---|
| String |
Empty
Empty definition.
Declaration
public static readonly PropertyDefinition Empty
Field Value
| Type | Description |
|---|---|
| PropertyDefinition |
Name
Property name, or null if empty.
Declaration
public string Name
Field Value
| Type | Description |
|---|---|
| String |
Properties
IsEmpty
Tells whether the property definition is empty.
Declaration
public readonly bool IsEmpty { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Methods
Equals(Object)
Declaration
public override bool Equals(object inObject)
Parameters
| Type | Name | Description |
|---|---|---|
| Object | inObject |
Returns
| Type | Description |
|---|---|
| Boolean |
Overrides
Equals(PropertyDefinition)
Declaration
public bool Equals(PropertyDefinition other)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyDefinition | other |
Returns
| Type | Description |
|---|---|
| Boolean |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| Int32 |
Overrides
Operators
Equality(PropertyDefinition, PropertyDefinition)
Tells whether two property definitions are equal.
Declaration
public static bool operator ==(PropertyDefinition inPropertyDefinition1, PropertyDefinition inPropertyDefinition2)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyDefinition | inPropertyDefinition1 | First property definition. |
| PropertyDefinition | inPropertyDefinition2 | Second property definition. |
Returns
| Type | Description |
|---|---|
| Boolean | Property definitions are equal. |
Inequality(PropertyDefinition, PropertyDefinition)
Tells whether two property definitions are different.
Declaration
public static bool operator !=(PropertyDefinition inPropertyDefinition1, PropertyDefinition inPropertyDefinition2)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyDefinition | inPropertyDefinition1 | First property definition. |
| PropertyDefinition | inPropertyDefinition2 | Second property definition. |
Returns
| Type | Description |
|---|---|
| Boolean | Property definitions are different. |