Class TraitDefinition
Trait's name and value type
Inheritance
TraitDefinition
Syntax
public class TraitDefinition : IEquatable<TraitDefinition>, IEquatable<TraitRequirement>
Constructors
TraitDefinition(String, Type)
Creates a new TraitDefinition
Declaration
public TraitDefinition(string traitName, Type type)
Parameters
Type |
Name |
Description |
String |
traitName |
The name of the trait
|
Type |
type |
The type of the trait's value
|
Fields
TraitName
Declaration
public readonly string TraitName
Field Value
Type
The type of the trait's value
Declaration
public readonly Type Type
Field Value
Methods
Equals(TraitDefinition)
Declaration
public bool Equals(TraitDefinition other)
Parameters
Returns
Equals(TraitRequirement)
Declaration
public bool Equals(TraitRequirement obj)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
ToString()
Declaration
public override string ToString()
Returns