Invoke() 공개 정적인 메소드

public static Invoke ( MethodInfo info, object item ) : object
info MethodInfo
item object
리턴 object
예제 #1
0
파일: EnumItem.cs 프로젝트: radtek/datawf
 public static object Parse(Type type, string value)
 {
     try
     {
         return(Enum.Parse(type, value));
     }
     catch
     {
         var itemType = (typeof(EnumItem <>)).MakeGenericType(type);
         return(EmitInvoker.Invoke(itemType, nameof(Parse), null, value));
     }
 }