GetGenericVariableIndex() private method

private GetGenericVariableIndex ( ) : int
return int
Exemplo n.º 1
0
        internal int GetGenericVariableIndex()
        {
            RuntimeType typeChecked = this.GetTypeChecked();

            if (!RuntimeTypeHandle.IsGenericVariable(typeChecked))
            {
                throw new InvalidOperationException(Environment.GetResourceString("Arg_NotGenericParameter"));
            }
            return(RuntimeTypeHandle.GetGenericVariableIndex(typeChecked));
        }