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."); } }
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."); } }
public virtual TotemValue Subtract(TotemValue other) { throw new InvalidOperationException("Can't subtract a " + other.GetType().Name + " to a " + GetType().Name); }
public virtual TotemValue MultiplyWith(TotemValue other) { throw new InvalidOperationException("Can't multiply a " + other.GetType().Name + " with a " + GetType().Name); }
public virtual TotemValue LessThanOrEqual(TotemValue other) { throw new InvalidOperationException("Can't compare a " + other.GetType().Name + " to a " + GetType().Name); }
public virtual TotemValue DivideBy(TotemValue other) { throw new InvalidOperationException("Can't divide a " + GetType().Name + " with a " + other.GetType().Name); }
public virtual TotemValue Add(TotemValue other) { throw new InvalidOperationException("Can't add a " + other.GetType().Name + " to a " + GetType().Name); }
public virtual TotemValue GreaterThanOrEqual(TotemValue other) { throw new InvalidOperationException("Can't compare a " + other.GetType().Name + " to a " + GetType().Name); }