System.RuntimeTypeHandle.GetGenericTypeDefinition C# (CSharp) Метод

GetGenericTypeDefinition() приватный Метод

private GetGenericTypeDefinition ( ) : RuntimeTypeHandle
Результат RuntimeTypeHandle
        internal RuntimeTypeHandle GetGenericTypeDefinition()
        {
            return new RuntimeTypeHandle(_GetGenericTypeDefinition());
        }

Usage Example

Пример #1
0
        public override Type GetGenericTypeDefinition()
        {
            if (!IsGenericType)
            {
                throw new InvalidOperationException(SR.InvalidOperation_NotGenericType);
            }

            return(RuntimeTypeHandle.GetGenericTypeDefinition(this));
        }
All Usage Examples Of System.RuntimeTypeHandle::GetGenericTypeDefinition