public static T Instance <T>(params object[] parms) { object instance = null; var constructorInfo = typeof(T).GetConstructor(The.Types(parms)); if (constructorInfo != null) { if (parms.Length == 0) { return(Utility <T> .Create()); } else { instance = constructorInfo.Invoke(parms); } } else { instance = default(T); } return((T)instance); }
public static bool Same(params object[] objects) { return(Same(The.Types(objects))); }