Class ParameterKey
Key of an effect parameter.
public abstract class ParameterKey : PropertyKey, IComparable
- Inheritance
-
ParameterKey
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
ParameterKey(Type, string, int, params PropertyKeyMetadata[])
Initializes a new instance of the ParameterKey class.
protected ParameterKey(Type propertyType, string name, int length, params PropertyKeyMetadata[] metadatas)
Parameters
propertyType
TypeType of the property.
name
stringThe name.
length
intThe length.
metadatas
PropertyKeyMetadata[]The metadatas.
Fields
HashCode
public ulong HashCode
Field Value
Properties
DefaultValueMetadata
public ParameterKeyValueMetadata DefaultValueMetadata { get; }
Property Value
Length
Gets the number of elements for this key.
public int Length { get; }
Property Value
Size
public abstract int Size { get; }
Property Value
Type
public ParameterKeyType Type { get; protected set; }
Property Value
Methods
ConvertValue(object)
Converts the value passed by parameter to the expecting value of this parameter key (for example, if value is an integer while this parameter key is expecting a float)
public object ConvertValue(object value)
Parameters
value
objectThe value.
Returns
- object
System.Object.
Equals(object)
Determines whether the specified object is equal to this instance.
public override bool Equals(object obj)
Parameters
Returns
GetHashCode()
Returns a hash code for this instance.
public override int GetHashCode()
Returns
- int
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
SetupMetadata(PropertyKeyMetadata)
protected override void SetupMetadata(PropertyKeyMetadata metadata)
Parameters
metadata
PropertyKeyMetadata
Operators
operator ==(ParameterKey, ParameterKey)
Implements the operator ==.
public static bool operator ==(ParameterKey left, ParameterKey right)
Parameters
left
ParameterKeyThe left.
right
ParameterKeyThe right.
Returns
- bool
The result of the operator.
operator !=(ParameterKey, ParameterKey)
Implements the operator !=.
public static bool operator !=(ParameterKey left, ParameterKey right)
Parameters
left
ParameterKeyThe left.
right
ParameterKeyThe right.
Returns
- bool
The result of the operator.