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); }
private static MethodInfo GetToStringMethod(Type type) { return(ReflectionEx.GetMethod(type, "ToString", a => a.GetParameters().Length == 0)); }