示例#1
0
 static TypeEx()
 {
     _methodGenericConvertTo = ReflectionEx.GetMethod(typeof(TypeEx), "ConvertTo", a => a.IsGenericMethod && a.GetParameters().Length == 1);
     _methodToStringEx       = ReflectionEx.GetMethod(typeof(StringEx), "ToStringEx", a => a.GetParameters().Length == 1);
 }
示例#2
0
 private static MethodInfo GetToStringMethod(Type type)
 {
     return(ReflectionEx.GetMethod(type, "ToString", a => a.GetParameters().Length == 0));
 }