public static Assembly AssemblyByName(string name) { return(Safe.Run(() => Assembly.Load(name), null)); }
public static PropertyInfo Property <T>(Expression <Func <T, object> > ex) { var name = GetMember.Name(ex); return(Safe.Run(() => typeof(T).GetProperty(name), null)); }
public static string Name <T>(Expression <Func <T, object> > ex) { return(Safe.Run(() => name(ex.Body), string.Empty)); }
public static PropertyInfo Property <T>(string name) { return(Safe.Run(() => typeof(T).GetProperty(name), null)); }
public static string Name <T>(Expression <Action <T> > ex) { return(Safe.Run(() => name(ex.Body), string.Empty)); }