Class Material
[Serializable]
public class Material : ItemBase, ISerializable, IFungibleItem, IItem, IState
- Inheritance
-
Material
- Implements
- Derived
- Inherited Members
Constructors
Material(Dictionary)
public Material(Dictionary serialized)
Parameters
serialized
Dictionary
Material(Material)
public Material(Material other)
Parameters
other
Material
Material(Row)
public Material(MaterialItemSheet.Row data)
Parameters
data
MaterialItemSheet.Row
Material(SerializationInfo, StreamingContext)
protected Material(SerializationInfo info, StreamingContext _)
Parameters
Properties
FungibleId
public HashDigest<SHA256> FungibleId { get; }
Property Value
- HashDigest<SHA256>
ItemId
public HashDigest<SHA256> ItemId { get; }
Property Value
- HashDigest<SHA256>
Methods
Equals(Material)
protected bool Equals(Material other)
Parameters
other
Material
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Serialize()
public override IValue Serialize()
Returns
- IValue
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.