public static bool ItFromStringConstructor(ConstructorInfo C) { ParameterInfo[] ps = C.GetParameters(); if ((ps.Length == 1) && (NewInstance.WithoutRef(ps[0].ParameterType).Name == "String")) { return(true); } else { return(false); } }
public static bool ItIConvertableConstructor(ConstructorInfo C) { ParameterInfo[] ps = C.GetParameters(); if ((ps.Length == 1) && (NewInstance.WithoutRef(ps[0].ParameterType).GetInterface("IConvertible") != null)) { return(true); } else { return(false); } }