public LatticeValue(LatticeTypeData type, string str = null)
 {
     Type       = type;
     ConstValue = str;
 }
 public LatticeValue(LatticeTypeData type, int val)
 {
     Type       = type;
     ConstValue = val.ToString();
 }
 public LatticeValue(LatticeTypeData type, int val)
 {
     Type       = type;
     ConstValue = val.ToString(CultureInfo.InvariantCulture);
 }