Beispiel #1
0
 public override TotemValue this[TotemValue key]
 {
     get
     {
         if (key.GetType() == typeof(TotemNumber))
             return value[(int)((TotemNumber)key).IntValue];
         throw new InvalidOperationException("Invalid array key.");
     }
     set
     {
         if (key.GetType() == typeof(TotemNumber))
             this.value[(int)((TotemNumber)key).IntValue] = value;
         throw new InvalidOperationException("Invalid array key.");
     }
 }
Beispiel #2
0
 public override TotemValue this[TotemValue key]
 {
     get
     {
         if (key.GetType() == typeof(TotemNumber))
         {
             return(value[(int)((TotemNumber)key).IntValue]);
         }
         throw new InvalidOperationException("Invalid array key.");
     }
     set
     {
         if (key.GetType() == typeof(TotemNumber))
         {
             this.value[(int)((TotemNumber)key).IntValue] = value;
         }
         throw new InvalidOperationException("Invalid array key.");
     }
 }
Beispiel #3
0
 public virtual TotemValue Subtract(TotemValue other)
 {
     throw new InvalidOperationException("Can't subtract a " + other.GetType().Name + " to a " + GetType().Name);
 }
Beispiel #4
0
 public virtual TotemValue MultiplyWith(TotemValue other)
 {
     throw new InvalidOperationException("Can't multiply a " + other.GetType().Name + " with a " + GetType().Name);
 }
Beispiel #5
0
 public virtual TotemValue LessThanOrEqual(TotemValue other)
 {
     throw new InvalidOperationException("Can't compare a " + other.GetType().Name + " to a " + GetType().Name);
 }
Beispiel #6
0
 public virtual TotemValue DivideBy(TotemValue other)
 {
     throw new InvalidOperationException("Can't divide a " + GetType().Name + " with a " + other.GetType().Name);
 }
Beispiel #7
0
 public virtual TotemValue Add(TotemValue other)
 {
     throw new InvalidOperationException("Can't add a " + other.GetType().Name + " to a " + GetType().Name);
 }
Beispiel #8
0
 public virtual TotemValue GreaterThanOrEqual(TotemValue other)
 {
     throw new InvalidOperationException("Can't compare a " + other.GetType().Name + " to a " + GetType().Name);
 }
Beispiel #9
0
 public virtual TotemValue DivideBy(TotemValue other)
 {
     throw new InvalidOperationException("Can't divide a " + GetType().Name + " with a " + other.GetType().Name);
 }
Beispiel #10
0
 public virtual TotemValue MultiplyWith(TotemValue other)
 {
     throw new InvalidOperationException("Can't multiply a " + other.GetType().Name + " with a " + GetType().Name);
 }
Beispiel #11
0
 public virtual TotemValue Subtract(TotemValue other)
 {
     throw new InvalidOperationException("Can't subtract a " + other.GetType().Name + " to a " + GetType().Name);
 }
Beispiel #12
0
 public virtual TotemValue Add(TotemValue other)
 {
     throw new InvalidOperationException("Can't add a " + other.GetType().Name + " to a " + GetType().Name);
 }