Exemplo n.º 1
0
 public DuplicatedKeyException(KeyType key, ItemValueType existingValue, ItemValueType newValue)
     : base(string.Format(
                "Item has already been added. \n  Key: '{0}'\n  Value in dictionary: '{1}'\n  Value being added: '{2}'",
                key, existingValue, newValue))
 {
     if (existingValue is object)
     {
         this.Data.Add("existingValueHashCode", ((object)existingValue).GetHashCode());
     }
     if (newValue is object)
     {
         this.Data.Add("newValueHashCode", ((object)newValue).GetHashCode());
     }
 }
Exemplo n.º 2
0
 public ComponentItem(string groupName, string name, ItemValueType itemValueType)
 {
     GroupName = groupName;
     Name = name;
     ItemValueType = itemValueType;
 }
Exemplo n.º 3
0
 public ComponentItem(string groupName, string name, ItemValueType itemValueType)
 {
     GroupName     = groupName;
     Name          = name;
     ItemValueType = itemValueType;
 }
Exemplo n.º 4
0
 public static ItemValue TryCreate(double?value, ItemValueType type)
 {
     return(value.HasValue ? new ItemValue(value.Value, type) : null);
 }
Exemplo n.º 5
0
 public ItemValue(double value, ItemValueType type)
 {
     Value = value;
     Type  = type;
 }
Exemplo n.º 6
0
 public KeyValuePair(KeyType key, ItemValueType value)
 {
     this.Key   = key;
     this.Value = value;
 }