Class TradableMaterial
[Serializable]
public class TradableMaterial : Material, ISerializable, ITradableFungibleItem, ITradableItem, IFungibleItem, IItem, IState, ICloneable
- Inheritance
-
TradableMaterial
- Implements
- Inherited Members
Constructors
TradableMaterial(Dictionary)
public TradableMaterial(Dictionary serialized)
Parameters
serialized
Dictionary
TradableMaterial(Row)
public TradableMaterial(MaterialItemSheet.Row data)
Parameters
data
MaterialItemSheet.Row
TradableMaterial(SerializationInfo, StreamingContext)
protected TradableMaterial(SerializationInfo info, StreamingContext _)
Parameters
Properties
RequiredBlockIndex
public long RequiredBlockIndex { get; set; }
Property Value
TradableId
public Guid TradableId { get; }
Property Value
Methods
Clone()
Creates a new object that is a copy of the current instance.
public object Clone()
Returns
- object
A new object that is a copy of this instance.
DeriveTradableId(HashDigest<SHA256>)
public static Guid DeriveTradableId(HashDigest<SHA256> fungibleId)
Parameters
fungibleId
HashDigest<SHA256>
Returns
Equals(TradableMaterial)
protected bool Equals(TradableMaterial other)
Parameters
other
TradableMaterial
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.