Class PropertyNode
A property node.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: SpiceSharpBehavioral.Parsers.Nodes
Assembly: SpiceSharpBehavioral.dll
Syntax
public class PropertyNode : Node
Constructors
PropertyNode(String, String)
Initializes a new instance of the PropertyNode class.
Declaration
protected PropertyNode(string name, string property)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
System.String | property | The property. |
Properties
Name
Gets the name of the entity.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String | The name of the entity. |
PropertyName
Gets the name of the property.
Declaration
public string PropertyName { get; }
Property Value
Type | Description |
---|---|
System.String | The name of the property. |
Methods
Equals(Object)
Determines whether the specified System.Object, is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with this instance. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Overrides
System.Object.GetHashCode()
Property(String, String)
Creates a node that returns the property of a behavior.
Declaration
public static PropertyNode Property(string name, string property)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the entity or behavior. |
System.String | property | The name of the property. |
Returns
Type | Description |
---|---|
PropertyNode | The node representing the property value. |