Alexandria.Engines.GoldBox.Resources.ScriptOperand.RequireType C# (CSharp) Method

RequireType() private method

private RequireType ( ScriptOperandType type ) : void
type ScriptOperandType
return void
        void RequireType(ScriptOperandType type)
        {
            if (Type != type) throw new InvalidOperationException("This is not a " + type + " " + typeof(ScriptOperand).Name + "; it is a " + Type + ".");
        }