Exemple #1
0
 public static Assembly AssemblyByName(string name)
 {
     return(Safe.Run(() => Assembly.Load(name), null));
 }
Exemple #2
0
        public static PropertyInfo Property <T>(Expression <Func <T, object> > ex)
        {
            var name = GetMember.Name(ex);

            return(Safe.Run(() => typeof(T).GetProperty(name), null));
        }
Exemple #3
0
 public static string Name <T>(Expression <Func <T, object> > ex)
 {
     return(Safe.Run(() => name(ex.Body), string.Empty));
 }
Exemple #4
0
 public static PropertyInfo Property <T>(string name)
 {
     return(Safe.Run(() => typeof(T).GetProperty(name), null));
 }
Exemple #5
0
 public static string Name <T>(Expression <Action <T> > ex)
 {
     return(Safe.Run(() => name(ex.Body), string.Empty));
 }