Пример #1
0
 var methodsToMatch = typeof(T).GetMethods(BindingFlags.Public | BindingFlags.Instance).ToArray();
Пример #2
0
 .GetProperties(BindingFlags.Public | BindingFlags.Instance)
Пример #3
0
 .GetProperties(BindingFlags.Public | BindingFlags.Static)
 => _actualProperties = (from p in typeof(TComponent).GetProperties(BindingFlags.Public | BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Static)
Пример #5
0
 PropertyInfo[] properties = typeof(T).GetProperties(BindingFlags.Public | BindingFlags.Instance)
Пример #6
0
typeof(Exception).GetProperties(BindingFlags.Public | BindingFlags.Instance).Select(x => x.Name).ToArray());
 public ReflectionPropertyCollection(object obj) => _reflectionProperties = new ArrayBuilder<KeyValuePair<ReflectionPropertyId, IProperty>>((obj ?? throw GetArgumentNullException(nameof(obj))).GetType().GetProperties(BindingFlags.Public | BindingFlags.Instance).WhereSelect(property => property.GetMethod != null && IsNullOrEmpty(property.GetIndexParameters()), property => new KeyValuePair<ReflectionPropertyId, IProperty>(new ReflectionPropertyId(property), new ReflectionProperty(property, obj))));
 (from method in typeof(Reshape).GetMethods(BindingFlags.Public | BindingFlags.Static)
Пример #9
0
 foreach (var property in obj.GetType().GetProperties(BindingFlags.Public | BindingFlags.Instance))
Пример #10
0
 properties = (from prop in owner.GetType().GetProperties(BindingFlags.Public | BindingFlags.Instance) where ProxyProperty <TValue> .CanUse(prop) select new ProxyProperty <TValue>(prop, owner)).ToList();
 .GetFields(BindingFlags.Public | BindingFlags.Static)
Пример #12
0
 .Select(e => (Enum.GetName(e), e))                                         //select the regular enum names
 .Concat(typeof(TEnum).GetFields(BindingFlags.Public | BindingFlags.Static) //and concat with the custom ones
Пример #13
0
 props_ = typeof(T).GetProperties(BindingFlags.Public | BindingFlags.Instance).Where(x => x.CanRead).ToArray();
Пример #14
0
 var dbsets = typeof(BBMContext).GetProperties(BindingFlags.Public | BindingFlags.Instance)