31 [global::System.AttributeUsage(AttributeTargets.Method, Inherited =
false, AllowMultiple =
false)]
37 foreach (MethodInfo method
in t.GetMethods())
39 if (method.IsStatic &&
41 method.GetParameters().Length == 1 &&
42 method.GetParameters()[0].ParameterType == typeof(
string) &&
43 method.ReturnType == t)
54 TypeInfo ti = t.GetTypeInfo();
56 foreach (MethodInfo method
in ti.DeclaredMethods)
58 if (method.IsStatic &&
60 method.GetParameters().Length == 1 &&
61 method.GetParameters()[0].ParameterType == typeof(
string) &&
62 method.ReturnType == t)
70 private static bool IsEmpty( IEnumerable collection )
72 IEnumerator e = collection.GetEnumerator();
static MethodInfo GetParseMethod(Type t)