System.Reflection.MethodInfo.MakeGenericMethod C# (CSharp) Method

MakeGenericMethod() public method

public MakeGenericMethod ( ) : MethodInfo
return MethodInfo
        public virtual MethodInfo MakeGenericMethod(params Type[] typeArguments) { throw new NotSupportedException(Environment.GetResourceString("NotSupported_SubclassOverride")); }

Usage Example

Ejemplo n.º 1
0
 private static MethodInfo GetMethodInfo(MethodInfo mi, MemberInfo memberInfo)
 {
     if (memberInfo is FieldInfo) {
         return mi.MakeGenericMethod ((memberInfo as FieldInfo).FieldType);
     }
     if (memberInfo is PropertyInfo) {
         return mi.MakeGenericMethod ((memberInfo as PropertyInfo).PropertyType);
     }
     return null;
 }
All Usage Examples Of System.Reflection.MethodInfo::MakeGenericMethod