Class ColorantWeight
Container for colorant amount storage.
Needed to be able to transfer recipes from client to server.
Inheritance
System.Object
ColorantWeight
Assembly: Eco.Shared.dll
Syntax
public class ColorantWeight : Object, IEquatable<ColorantWeight>
Constructors
ColorantWeight()
Declaration
ColorantWeight(String, Int32)
Declaration
public ColorantWeight(string colorant, int amount)
Parameters
Type |
Name |
Description |
System.String |
colorant |
|
System.Int32 |
amount |
|
Properties
Amount
Declaration
[Eco(true)]
public int Amount { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Colorant
Declaration
[Eco(true)]
public string Colorant { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
Equals(ColorantWeight)
Declaration
public bool Equals(ColorantWeight other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Implements
System.IEquatable<>
Extension Methods