3864 references to BindingFlags
ComSvcConfig (35)
ComplusTypeValidator.cs (32)
37object resolver = typeOfInterfaceResolver.InvokeMember("Provider", BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.GetProperty, null, null, null, CultureInfo.InvariantCulture);
42asm = typeOfInterfaceResolver.InvokeMember("ResolveAssemblyFromIID", BindingFlags.InvokeMethod | BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance, null, resolver, args, CultureInfo.InvariantCulture) as Assembly;
94object resolver = typeOfInterfaceResolver.InvokeMember("Provider", BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.GetProperty, null, null, null, CultureInfo.InvariantCulture);
99typeOfInterface = typeOfInterfaceResolver.InvokeMember("VerifyType", BindingFlags.InvokeMethod | BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance, null, resolver, args, CultureInfo.InvariantCulture) as Type;
170object resolver = typeOfInterfaceResolver.InvokeMember("Provider", BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.GetProperty, null, null, null, CultureInfo.InvariantCulture);
175typeOfInterface = typeOfInterfaceResolver.InvokeMember("VerifyType", BindingFlags.InvokeMethod | BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance, null, resolver, args, CultureInfo.InvariantCulture) as Type;
220object resolver = typeOfInterfaceResolver.InvokeMember("Provider", BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.GetProperty, null, null, null, CultureInfo.InvariantCulture);
225typeOfInterface = typeOfInterfaceResolver.InvokeMember("VerifyType", BindingFlags.InvokeMethod | BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance, null, resolver, args, CultureInfo.InvariantCulture) as Type;
Microsoft.Activities.Build (3)
mscorlib (671)
system\activator.cs (21)
42internal const BindingFlags ConLookup = (BindingFlags) (BindingFlags.Instance | BindingFlags.Public);
43internal const BindingFlags ConstructorDefault= BindingFlags.Instance | BindingFlags.Public | BindingFlags.CreateInstance;
56BindingFlags bindingAttr,
67BindingFlags bindingAttr,
81if ((bindingAttr & (BindingFlags) LookupMask) == 0)
258BindingFlags bindingAttr,
283BindingFlags bindingAttr,
306BindingFlags bindingAttr,
372BindingFlags bindingAttr,
403BindingFlags bindingAttr,
425BindingFlags bindingAttr,
478BindingFlags bindingAttr,
503BindingFlags bindingAttr,
549BindingFlags bindingAttr,
576BindingFlags bindingAttr,
system\appdomain.cs (10)
1672BindingFlags bindingAttr,
1710BindingFlags bindingAttr,
1738BindingFlags bindingAttr,
1761BindingFlags bindingAttr,
1797BindingFlags bindingAttr,
1824BindingFlags bindingAttr,
4546BindingFlags bindingAttr,
4567BindingFlags bindingAttr,
4629BindingFlags bindingAttr,
4652BindingFlags bindingAttr,
system\defaultbinder.cs (6)
39BindingFlags bindingAttr, MethodBase[] match, ref Object[] args,
103bool defaultValueBinding = ((bindingAttr & BindingFlags.OptionalParamBinding) != 0);
442public override FieldInfo BindToField(BindingFlags bindingAttr,FieldInfo[] match, Object value,CultureInfo cultureInfo)
457if ((bindingAttr & BindingFlags.SetField) != 0) {
519public override MethodBase SelectMethod(BindingFlags bindingAttr,MethodBase[] match,Type[] types,ParameterModifier[] modifiers)
594public override PropertyInfo SelectProperty(BindingFlags bindingAttr,PropertyInfo[] match,Type returnType,
system\reflection\cominterfaces.cs (31)
61ConstructorInfo[] GetConstructors(BindingFlags bindingAttr);
65EventInfo GetEvent(String name,BindingFlags bindingAttr);
67EventInfo[] GetEvents(BindingFlags bindingAttr);
68Type[] GetNestedTypes(BindingFlags bindingAttr);
69Type GetNestedType(String name, BindingFlags bindingAttr);
70MemberInfo[] GetMember(String name, MemberTypes type, BindingFlags bindingAttr);
72MemberInfo[] FindMembers(MemberTypes memberType,BindingFlags bindingAttr,MemberFilter filter,Object filterCriteria);
78MethodInfo GetMethod(String name, BindingFlags bindingAttr, Binder binder, Type[] types, ParameterModifier[] modifiers);
79MethodInfo GetMethod(String name, BindingFlags bindingAttr);
80MethodInfo[] GetMethods(BindingFlags bindingAttr);
81FieldInfo GetField(String name, BindingFlags bindingAttr);
82FieldInfo[] GetFields(BindingFlags bindingAttr);
83PropertyInfo GetProperty(String name, BindingFlags bindingAttr);
84PropertyInfo GetProperty(String name,BindingFlags bindingAttr,Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers);
85PropertyInfo[] GetProperties(BindingFlags bindingAttr);
86MemberInfo[] GetMember(String name, BindingFlags bindingAttr);
87MemberInfo[] GetMembers(BindingFlags bindingAttr);
88Object InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters);
94Object InvokeMember(String name,BindingFlags invokeAttr,Binder binder, Object target, Object[] args, CultureInfo culture);
95Object InvokeMember(String name,BindingFlags invokeAttr,Binder binder, Object target, Object[] args);
96ConstructorInfo GetConstructor(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers);
97ConstructorInfo GetConstructor(BindingFlags bindingAttr, Binder binder, Type[] types, ParameterModifier[] modifiers);
105MethodInfo GetMethod(String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers);
236Object CreateInstance(String typeName, bool ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes);
322Object Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture);
380Object Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture);
444Object Invoke_2(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture);
462Object Invoke_4(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture);
505void SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture);
562Object GetValue(Object obj,BindingFlags invokeAttr,Binder binder, Object[] index, CultureInfo culture);
564void SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture);
system\reflection\ConstructorInfo.cs (9)
91public abstract Object Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture);
105return Invoke(BindingFlags.Default, null, parameters, null);
116Object _ConstructorInfo.Invoke_2(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
126Object _ConstructorInfo.Invoke_4(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
176private BindingFlags m_bindingFlags;
271MethodAttributes methodAttributes, BindingFlags bindingFlags)
367internal BindingFlags BindingFlags { get { return m_bindingFlags; } }
598Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
704public override Object Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
system\reflection\customattribute.cs (18)
380FieldInfo[] fields = m_ctor.DeclaringType.GetFields(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
381PropertyInfo[] properties = m_ctor.DeclaringType.GetProperties(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
415m_ctor = type.GetConstructors(BindingFlags.Public | BindingFlags.Instance)[0];
436m_ctor = typeof(FieldOffsetAttribute).GetConstructors(BindingFlags.Public | BindingFlags.Instance)[0];
445m_ctor = type.GetConstructors(BindingFlags.Public | BindingFlags.Instance)[0];
484m_ctor = type.GetConstructor(BindingFlags.Public | BindingFlags.Instance, null, sig, null);
495m_ctor = pca.GetType().GetConstructors(BindingFlags.Public | BindingFlags.Instance)[0];
1803setMethod.UnsafeInvoke(attribute, BindingFlags.Default, null, new object[] { value }, null);
1816field.UnsafeSetValue(attribute, value, BindingFlags.Default, Type.DefaultBinder, null);
system\reflection\emit\enumbuilder.cs (15)
95BindingFlags invokeAttr,
136protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr,Binder binder,
144public override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr)
149protected override MethodInfo GetMethodImpl(String name,BindingFlags bindingAttr,Binder binder,
158public override MethodInfo[] GetMethods(BindingFlags bindingAttr)
163public override FieldInfo GetField(String name, BindingFlags bindingAttr)
168public override FieldInfo[] GetFields(BindingFlags bindingAttr)
183public override EventInfo GetEvent(String name, BindingFlags bindingAttr)
193protected override PropertyInfo GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder,
199public override PropertyInfo[] GetProperties(BindingFlags bindingAttr)
204public override Type[] GetNestedTypes(BindingFlags bindingAttr)
209public override Type GetNestedType(String name, BindingFlags bindingAttr)
214public override MemberInfo[] GetMember(String name, MemberTypes type, BindingFlags bindingAttr)
219public override MemberInfo[] GetMembers(BindingFlags bindingAttr)
230public override EventInfo[] GetEvents(BindingFlags bindingAttr)
system\reflection\emit\generictypeparameterbuilder.cs (15)
107public override Object InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters) { throw new NotSupportedException(); }
121protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) { throw new NotSupportedException(); }
124public override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr) { throw new NotSupportedException(); }
126protected override MethodInfo GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) { throw new NotSupportedException(); }
128public override MethodInfo[] GetMethods(BindingFlags bindingAttr) { throw new NotSupportedException(); }
130public override FieldInfo GetField(String name, BindingFlags bindingAttr) { throw new NotSupportedException(); }
132public override FieldInfo[] GetFields(BindingFlags bindingAttr) { throw new NotSupportedException(); }
138public override EventInfo GetEvent(String name, BindingFlags bindingAttr) { throw new NotSupportedException(); }
142protected override PropertyInfo GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) { throw new NotSupportedException(); }
144public override PropertyInfo[] GetProperties(BindingFlags bindingAttr) { throw new NotSupportedException(); }
146public override Type[] GetNestedTypes(BindingFlags bindingAttr) { throw new NotSupportedException(); }
148public override Type GetNestedType(String name, BindingFlags bindingAttr) { throw new NotSupportedException(); }
150public override MemberInfo[] GetMember(String name, MemberTypes type, BindingFlags bindingAttr) { throw new NotSupportedException(); }
155public override EventInfo[] GetEvents(BindingFlags bindingAttr) { throw new NotSupportedException(); }
157public override MemberInfo[] GetMembers(BindingFlags bindingAttr) { throw new NotSupportedException(); }
system\reflection\emit\symboltype.cs (15)
340public override Object InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target,
420protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr,Binder binder,
427public override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr)
432protected override MethodInfo GetMethodImpl(String name,BindingFlags bindingAttr,Binder binder,
438public override MethodInfo[] GetMethods(BindingFlags bindingAttr)
443public override FieldInfo GetField(String name, BindingFlags bindingAttr)
448public override FieldInfo[] GetFields(BindingFlags bindingAttr)
463public override EventInfo GetEvent(String name,BindingFlags bindingAttr)
473protected override PropertyInfo GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder,
479public override PropertyInfo[] GetProperties(BindingFlags bindingAttr)
484public override Type[] GetNestedTypes(BindingFlags bindingAttr)
489public override Type GetNestedType(String name, BindingFlags bindingAttr)
494public override MemberInfo[] GetMember(String name, MemberTypes type, BindingFlags bindingAttr)
499public override MemberInfo[] GetMembers(BindingFlags bindingAttr)
510public override EventInfo[] GetEvents(BindingFlags bindingAttr)
system\reflection\emit\typebuilder.cs (24)
1075public override Object InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target,
1125protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr,Binder binder,
1136public override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr)
1145protected override MethodInfo GetMethodImpl(String name,BindingFlags bindingAttr,Binder binder,
1162public override MethodInfo[] GetMethods(BindingFlags bindingAttr)
1171public override FieldInfo GetField(String name, BindingFlags bindingAttr)
1180public override FieldInfo[] GetFields(BindingFlags bindingAttr)
1213public override EventInfo GetEvent(String name,BindingFlags bindingAttr)
1231protected override PropertyInfo GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder,
1237public override PropertyInfo[] GetProperties(BindingFlags bindingAttr)
1246public override Type[] GetNestedTypes(BindingFlags bindingAttr)
1255public override Type GetNestedType(String name, BindingFlags bindingAttr)
1264public override MemberInfo[] GetMember(String name, MemberTypes type, BindingFlags bindingAttr)
1283public override EventInfo[] GetEvents(BindingFlags bindingAttr)
1292public override MemberInfo[] GetMembers(BindingFlags bindingAttr)
1817BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, Type.EmptyTypes, null));
1820BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, Type.EmptyTypes, null);
1825con = m_typeParent.GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, Type.EmptyTypes, null);
system\reflection\emit\typebuilderinstantiation.cs (15)
108public override Object InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters) { throw new NotSupportedException(); }
171protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) { throw new NotSupportedException(); }
174public override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr) { throw new NotSupportedException(); }
175protected override MethodInfo GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) { throw new NotSupportedException(); }
176public override MethodInfo[] GetMethods(BindingFlags bindingAttr) { throw new NotSupportedException(); }
177public override FieldInfo GetField(String name, BindingFlags bindingAttr) { throw new NotSupportedException(); }
178public override FieldInfo[] GetFields(BindingFlags bindingAttr) { throw new NotSupportedException(); }
181public override EventInfo GetEvent(String name, BindingFlags bindingAttr) { throw new NotSupportedException(); }
183protected override PropertyInfo GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) { throw new NotSupportedException(); }
184public override PropertyInfo[] GetProperties(BindingFlags bindingAttr) { throw new NotSupportedException(); }
185public override Type[] GetNestedTypes(BindingFlags bindingAttr) { throw new NotSupportedException(); }
186public override Type GetNestedType(String name, BindingFlags bindingAttr) { throw new NotSupportedException(); }
187public override MemberInfo[] GetMember(String name, MemberTypes type, BindingFlags bindingAttr) { throw new NotSupportedException(); }
191public override EventInfo[] GetEvents(BindingFlags bindingAttr) { throw new NotSupportedException(); }
192public override MemberInfo[] GetMembers(BindingFlags bindingAttr) { throw new NotSupportedException(); }
system\reflection\emit\xxxontypebuilderinstantiation.cs (4)
80public override Object Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
177public override Object Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
190public override Object Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
289public override void SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture) { throw new InvalidOperationException(); }
system\reflection\fieldinfo.cs (11)
134public abstract void SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture);
150SetValue(obj, value, BindingFlags.Default, Type.DefaultBinder, null);
228private BindingFlags m_bindingFlags;
238protected RuntimeFieldInfo(RuntimeTypeCache reflectedTypeCache, RuntimeType declaringType, BindingFlags bindingFlags)
277internal BindingFlags BindingFlags { get { return m_bindingFlags; } }
493RuntimeFieldHandleInternal handle, RuntimeType declaringType, RuntimeTypeCache reflectedTypeCache, BindingFlags bindingFlags)
554internal void InternalSetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture, ref StackCrawlMark stackMark)
611internal void UnsafeSetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture)
761public override void SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture)
846int tkField, FieldAttributes fieldAttributes, RuntimeTypeHandle declaringTypeHandle, RuntimeTypeCache reflectedTypeCache, BindingFlags bindingFlags)
933public override void SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture)
system\reflection\methodbase.cs (3)
179public abstract Object Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture);
211return Invoke(obj, BindingFlags.Default, null, parameters, null);
339BindingFlags invokeAttr, CultureInfo culture, Signature sig)
system\reflection\methodinfo.cs (6)
139private BindingFlags m_bindingFlags;
253RuntimeTypeCache reflectedTypeCache, MethodAttributes methodAttributes, BindingFlags bindingFlags, object keepalive)
378internal BindingFlags BindingFlags { get { return m_bindingFlags; } }
710public override Object Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
745internal object UnsafeInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
773private object[] InvokeArgumentsCheck(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
system\reflection\module.cs (19)
123private const BindingFlags DefaultLookup = BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public;
392public virtual FieldInfo[] GetFields(BindingFlags bindingFlags)
409public virtual FieldInfo GetField(String name, BindingFlags bindingAttr)
426public virtual MethodInfo[] GetMethods(BindingFlags bindingFlags)
439String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
485protected virtual MethodInfo GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder,
765BindingFlags.Static | BindingFlags.Instance |
766BindingFlags.Public | BindingFlags.NonPublic |
767BindingFlags.DeclaredOnly);
957protected override MethodInfo GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder,
963internal MethodInfo GetMethodInternal(String name, BindingFlags bindingAttr, Binder binder,
1153public override FieldInfo[] GetFields(BindingFlags bindingFlags)
1161public override FieldInfo GetField(String name, BindingFlags bindingAttr)
1172public override MethodInfo[] GetMethods(BindingFlags bindingFlags)
system\reflection\propertyinfo.cs (16)
84public abstract void SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture);
111return GetValue(obj, BindingFlags.Default, null, index, null);
114public abstract Object GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture);
127SetValue(obj, value, BindingFlags.Default, null, index, null);
205private BindingFlags m_bindingFlags;
308internal BindingFlags BindingFlags { get { return m_bindingFlags; } }
618return GetValue(obj, BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Static,
624public override Object GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
639BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Static,
647public override void SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
system\reflection\typedelegator.cs (15)
48public override Object InvokeMember(String name,BindingFlags invokeAttr,Binder binder,Object target,
88protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr,Binder binder,
95public override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr)
100protected override MethodInfo GetMethodImpl(String name,BindingFlags bindingAttr,Binder binder,
111public override MethodInfo[] GetMethods(BindingFlags bindingAttr)
116public override FieldInfo GetField(String name, BindingFlags bindingAttr)
121public override FieldInfo[] GetFields(BindingFlags bindingAttr)
136public override EventInfo GetEvent(String name,BindingFlags bindingAttr)
146protected override PropertyInfo GetPropertyImpl(String name,BindingFlags bindingAttr,Binder binder,
155public override PropertyInfo[] GetProperties(BindingFlags bindingAttr)
160public override EventInfo[] GetEvents(BindingFlags bindingAttr)
165public override Type[] GetNestedTypes(BindingFlags bindingAttr)
170public override Type GetNestedType(String name, BindingFlags bindingAttr)
175public override MemberInfo[] GetMember(String name, MemberTypes type, BindingFlags bindingAttr)
180public override MemberInfo[] GetMembers(BindingFlags bindingAttr)
system\rttype.cs (156)
334BindingFlags bindingFlags = RuntimeType.FilterPreCalculate(isPublic, isInherited, isStatic);
366BindingFlags bindingFlags = RuntimeType.FilterPreCalculate(isPublic, isInherited, isStatic);
664BindingFlags bindingFlags = RuntimeType.FilterPreCalculate(isPublic, isInherited, isStatic);
775BindingFlags bindingFlags = RuntimeType.FilterPreCalculate(isPublic, isInherited, isStatic);
838BindingFlags bindingFlags = RuntimeType.FilterPreCalculate(isPublic, isInherited, isStatic);
965BindingFlags bindingFlags = RuntimeType.FilterPreCalculate(isPublic, isInherited, isStatic);
1029BindingFlags bindingFlags = RuntimeType.FilterPreCalculate(isPublic, isInherited, isStatic);
1770BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic,
1819RuntimeMethodHandle.GetAttributes(genericMethod), (BindingFlags)(-1), la);
2038BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance) as MethodBase[];
2297internal static BindingFlags FilterPreCalculate(bool isPublic, bool isInherited, bool isStatic)
2299BindingFlags bindingFlags = isPublic ? BindingFlags.Public : BindingFlags.NonPublic;
2304bindingFlags |= BindingFlags.DeclaredOnly;
2308bindingFlags |= BindingFlags.Static | BindingFlags.FlattenHierarchy;
2312bindingFlags |= BindingFlags.Instance;
2319bindingFlags |= BindingFlags.Static;
2323bindingFlags |= BindingFlags.Instance;
2332BindingFlags bindingFlags, ref string name, bool allowPrefixLookup, out bool prefixLookup,
2340if ((bindingFlags & BindingFlags.IgnoreCase) != 0)
2368private static void FilterHelper(BindingFlags bindingFlags, ref string name, out bool ignoreCase, out MemberListType listType)
2397MemberInfo memberInfo, BindingFlags bindingFlags, bool isPublic, bool isNonProtectedInternal, bool isStatic,
2402Contract.Requires(name == null || (bindingFlags & BindingFlags.IgnoreCase) == 0 || (name.ToLower(CultureInfo.InvariantCulture).Equals(name)));
2408if ((bindingFlags & BindingFlags.Public) == 0)
2413if ((bindingFlags & BindingFlags.NonPublic) == 0)
2421if ((bindingFlags & BindingFlags.DeclaredOnly) != 0 && isInherited)
2431if ((bindingFlags & BindingFlags.FlattenHierarchy) == 0 && isInherited)
2434if ((bindingFlags & BindingFlags.Static) == 0)
2439if ((bindingFlags & BindingFlags.Instance) == 0)
2448if (!FilterApplyPrefixLookup(memberInfo, name, (bindingFlags & BindingFlags.IgnoreCase) != 0))
2456if (((bindingFlags & BindingFlags.DeclaredOnly) == 0) && // DeclaredOnly not present
2460((bindingFlags & BindingFlags.NonPublic) != 0) && // BindingFlag.NonPublic present
2463((bindingFlags & BindingFlags.Instance) != 0)) // BindingFlag.Instance present
2481Type type, BindingFlags bindingFlags, string name, bool prefixLookup, string ns)
2500RuntimeMethodInfo method, BindingFlags bindingFlags, CallingConventions callConv, Type[] argumentTypes)
2507RuntimeConstructorInfo constructor, BindingFlags bindingFlags, CallingConventions callConv, Type[] argumentTypes)
2516MethodBase methodBase, BindingFlags methodFlags, BindingFlags bindingFlags, CallingConventions callConv, Type[] argumentTypes)
2520bindingFlags ^= BindingFlags.DeclaredOnly;
2551(BindingFlags.InvokeMethod | BindingFlags.CreateInstance | BindingFlags.GetProperty | BindingFlags.SetProperty)) == 0)
2576if ((bindingFlags & BindingFlags.OptionalParamBinding) == 0)
2619if ((bindingFlags & BindingFlags.ExactBinding) != 0)
2626if ((bindingFlags & (BindingFlags.InvokeMethod)) == 0)
2804String name, BindingFlags bindingAttr, CallingConventions callConv,
2828string name, BindingFlags bindingAttr, CallingConventions callConv,
2853String name, BindingFlags bindingAttr, Type[] types, bool allowPrefixLookup)
2867bindingAttr ^= BindingFlags.DeclaredOnly;
2968private ListBuilder<EventInfo> GetEventCandidates(String name, BindingFlags bindingAttr, bool allowPrefixLookup)
2976bindingAttr ^= BindingFlags.DeclaredOnly;
2992private ListBuilder<FieldInfo> GetFieldCandidates(String name, BindingFlags bindingAttr, bool allowPrefixLookup)
3000bindingAttr ^= BindingFlags.DeclaredOnly;
3016private ListBuilder<Type> GetNestedTypeCandidates(String fullname, BindingFlags bindingAttr, bool allowPrefixLookup)
3019bindingAttr &= ~BindingFlags.Static;
3052public override MethodInfo[] GetMethods(BindingFlags bindingAttr)
3058public override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr)
3087public override PropertyInfo[] GetProperties(BindingFlags bindingAttr)
3092public override EventInfo[] GetEvents(BindingFlags bindingAttr)
3097public override FieldInfo[] GetFields(BindingFlags bindingAttr)
3113public override Type[] GetNestedTypes(BindingFlags bindingAttr)
3118public override MemberInfo[] GetMembers(BindingFlags bindingAttr)
3211String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConv,
3251BindingFlags bindingAttr, Binder binder, CallingConventions callConvention,
3270if ((bindingAttr & BindingFlags.ExactBinding) != 0)
3281String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)
3311if ((bindingAttr & BindingFlags.ExactBinding) != 0)
3321public override EventInfo GetEvent(String name, BindingFlags bindingAttr)
3333bindingAttr ^= BindingFlags.DeclaredOnly;
3350public override FieldInfo GetField(String name, BindingFlags bindingAttr)
3362bindingAttr ^= BindingFlags.DeclaredOnly;
3395BindingFlags bindingAttr = BindingFlags.Public | BindingFlags.NonPublic;
3397bindingAttr &= ~BindingFlags.Static;
3400bindingAttr |= BindingFlags.IgnoreCase;
3426public override Type GetNestedType(String fullname, BindingFlags bindingAttr)
3432bindingAttr &= ~BindingFlags.Static;
3457public override MemberInfo[] GetMember(String name, MemberTypes type, BindingFlags bindingAttr)
4339private const BindingFlags MemberBindingMask = (BindingFlags)0x000000FF;
4340private const BindingFlags InvocationMask = (BindingFlags)0x0000FF00;
4341private const BindingFlags BinderNonCreateInstance = BindingFlags.InvokeMethod | BinderGetSetField | BinderGetSetProperty;
4342private const BindingFlags BinderGetSetProperty = BindingFlags.GetProperty | BindingFlags.SetProperty;
4343private const BindingFlags BinderSetInvokeProperty = BindingFlags.InvokeMethod | BindingFlags.SetProperty;
4344private const BindingFlags BinderGetSetField = BindingFlags.GetField | BindingFlags.SetField;
4345private const BindingFlags BinderSetInvokeField = BindingFlags.SetField | BindingFlags.InvokeMethod;
4346private const BindingFlags BinderNonFieldGetSet = (BindingFlags)0x00FFF300;
4347private const BindingFlags ClassicBindingMask =
4348BindingFlags.InvokeMethod | BindingFlags.GetProperty | BindingFlags.SetProperty |
4349BindingFlags.PutDispProperty | BindingFlags.PutRefDispProperty;
4363internal unsafe Object CheckValue(Object value, Binder binder, CultureInfo culture, BindingFlags invokeAttr)
4442if ((invokeAttr & BindingFlags.ExactBinding) == BindingFlags.ExactBinding)
4513String name, BindingFlags bindingFlags, Binder binder, Object target,
4528bindingFlags |= BindingFlags.Instance | BindingFlags.Public;
4530if ((bindingFlags & BindingFlags.CreateInstance) == 0)
4531bindingFlags |= BindingFlags.Static;
4560if ((bindingFlags & BindingFlags.GetProperty) != 0 && (bindingFlags & ClassicBindingMask & ~(BindingFlags.GetProperty | BindingFlags.InvokeMethod)) != 0)
4563if ((bindingFlags & BindingFlags.InvokeMethod) != 0 && (bindingFlags & ClassicBindingMask & ~(BindingFlags.GetProperty | BindingFlags.InvokeMethod)) != 0)
4566if ((bindingFlags & BindingFlags.SetProperty) != 0 && (bindingFlags & ClassicBindingMask & ~BindingFlags.SetProperty) != 0)
4569if ((bindingFlags & BindingFlags.PutDispProperty) != 0 && (bindingFlags & ClassicBindingMask & ~BindingFlags.PutDispProperty) != 0)
4572if ((bindingFlags & BindingFlags.PutRefDispProperty) != 0 && (bindingFlags & ClassicBindingMask & ~BindingFlags.PutRefDispProperty) != 0)
4620if ((bindingFlags & BindingFlags.CreateInstance) != 0)
4622if ((bindingFlags & BindingFlags.CreateInstance) != 0 && (bindingFlags & BinderNonCreateInstance) != 0)
4631if ((bindingFlags & (BindingFlags.PutDispProperty | BindingFlags.PutRefDispProperty)) != 0)
4632bindingFlags |= BindingFlags.SetProperty;
4651bool IsGetField = (bindingFlags & BindingFlags.GetField) != 0;
4652bool IsSetField = (bindingFlags & BindingFlags.SetField) != 0;
4663if ((bindingFlags & BindingFlags.SetProperty) != 0)
4674if ((bindingFlags & BindingFlags.GetProperty) != 0)
4678if ((bindingFlags & BindingFlags.InvokeMethod) != 0)
4708if ((bindingFlags & BindingFlags.GetField) != 0)
4737if ((bindingFlags & BindingFlags.GetField) != 0)
4803bool isGetProperty = (bindingFlags & BindingFlags.GetProperty) != 0;
4804bool isSetProperty = (bindingFlags & BindingFlags.SetProperty) != 0;
4822if ((bindingFlags & BindingFlags.InvokeMethod) != 0)
4833if ((bindingFlags & BindingFlags.InvokeMethod) != 0)
4933(bindingFlags & BindingFlags.OptionalParamBinding) == 0)
5180BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, ref StackCrawlMark stackMark)
5212if (argCnt == 0 && (bindingAttr & BindingFlags.Public) != 0 && (bindingAttr & BindingFlags.Instance) != 0
5215server = CreateInstanceDefaultCtor((bindingAttr & BindingFlags.NonPublic) == 0 , false, true, ref stackMark);
5577String name, BindingFlags invokeAttr, Object target, Object[] args,
5608private Object ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, int[] aWrapperTypes, ref MessageData msgData)
5645flags |= BindingFlags.IgnoreReturn;
system\security\permissiontoken.cs (6)
162MethodInfo method = cls.GetMethod( "GetTokenIndex", BindingFlags.Static | BindingFlags.NonPublic );
170int token = (int)getTokenIndex.UnsafeInvoke(null, BindingFlags.Default, null, null, null);
250MethodInfo method = cls.GetMethod( "GetTokenIndex", BindingFlags.Static | BindingFlags.NonPublic );
258int token = (int)getTokenIndex.UnsafeInvoke(null, BindingFlags.Default, null, null, null);
system\type.cs (50)
299abstract public Object InvokeMember(String name,BindingFlags invokeAttr,Binder binder,Object target,
304public Object InvokeMember(String name,BindingFlags invokeAttr,Binder binder, Object target, Object[] args, CultureInfo culture)
311public Object InvokeMember(String name,BindingFlags invokeAttr,Binder binder, Object target, Object[] args)
405public ConstructorInfo GetConstructor(BindingFlags bindingAttr,
422public ConstructorInfo GetConstructor(BindingFlags bindingAttr, Binder binder, Type[] types, ParameterModifier[] modifiers)
437return GetConstructor(BindingFlags.Public | BindingFlags.Instance, null, types, null);
440abstract protected ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr,
452return GetConstructors(BindingFlags.Public | BindingFlags.Instance);
456abstract public ConstructorInfo[] GetConstructors(BindingFlags bindingAttr);
461return GetConstructorImpl(BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic,
475BindingFlags bindingAttr,
493BindingFlags bindingAttr,
535public MethodInfo GetMethod(String name, BindingFlags bindingAttr)
552BindingFlags bindingAttr,
565abstract public MethodInfo[] GetMethods(BindingFlags bindingAttr);
569abstract public FieldInfo GetField(String name, BindingFlags bindingAttr);
582abstract public FieldInfo[] GetFields(BindingFlags bindingAttr);
632abstract public EventInfo GetEvent(String name,BindingFlags bindingAttr);
640abstract public EventInfo[] GetEvents(BindingFlags bindingAttr);
645public PropertyInfo GetProperty(String name,BindingFlags bindingAttr,Binder binder,
666public PropertyInfo GetProperty(String name, BindingFlags bindingAttr)
704internal PropertyInfo GetProperty(String name, BindingFlags bindingAttr, Type returnType)
722protected abstract PropertyInfo GetPropertyImpl(String name, BindingFlags bindingAttr,Binder binder,
729abstract public PropertyInfo[] GetProperties(BindingFlags bindingAttr);
744abstract public Type[] GetNestedTypes(BindingFlags bindingAttr);
754abstract public Type GetNestedType(String name, BindingFlags bindingAttr);
763virtual public MemberInfo[] GetMember(String name, BindingFlags bindingAttr)
768virtual public MemberInfo[] GetMember(String name, MemberTypes type, BindingFlags bindingAttr)
779abstract public MemberInfo[] GetMembers(BindingFlags bindingAttr);
791public virtual MemberInfo[] FindMembers(MemberTypes memberType,BindingFlags bindingAttr,MemberFilter filter,Object filterCriteria)
1424FieldInfo[] flds = GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static);
1474FieldInfo[] fields = GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance);
1868private const BindingFlags DefaultLookup = BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public;
1869internal const BindingFlags DeclaredOnlyLookup = BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
PresentationBuildTasks (87)
PresentationCore (24)
PresentationFramework (216)
src\Framework\MS\Internal\Interop\InternalDispatchObject.cs (11)
84FieldInfo IReflect.GetField(string name, BindingFlags bindingAttr)
88FieldInfo[] IReflect.GetFields(BindingFlags bindingAttr)
92MemberInfo[] IReflect.GetMember(string name, BindingFlags bindingAttr)
96MemberInfo[] IReflect.GetMembers(BindingFlags bindingAttr)
100MethodInfo IReflect.GetMethod(string name, BindingFlags bindingAttr)
104MethodInfo IReflect.GetMethod(string name, BindingFlags bindingAttr, Binder binder, Type[] types, ParameterModifier[] modifiers)
108MethodInfo[] IReflect.GetMethods(BindingFlags bindingAttr)
116PropertyInfo[] IReflect.GetProperties(BindingFlags bindingAttr)
120PropertyInfo IReflect.GetProperty(string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)
124PropertyInfo IReflect.GetProperty(string name, BindingFlags bindingAttr)
134object IReflect.InvokeMember(string name, BindingFlags invokeAttr, Binder binder, object target, object[] args, ParameterModifier[] modifiers, System.Globalization.CultureInfo culture, string[] namedParameters)
src\Framework\System\Windows\Markup\BamlRecordReader.cs (10)
1389BindingFlags.Instance | BindingFlags.Public | BindingFlags.FlattenHierarchy,
2297BindingFlags.Default, null,
2613propertyDefinition.PropertyInfo.SetValue(o, value, BindingFlags.Default, null, null, TypeConverterHelper.InvariantEnglishUS);
3754propertyInfo.SetValue(currentTarget,o,BindingFlags.Default,null,null,
3865propertyInfo.SetValue(parentObject, value, BindingFlags.Default, null, null
5185BindingFlags.Instance |
5186BindingFlags.Public |
5187BindingFlags.NonPublic);
src\Framework\System\Windows\Markup\Primitives\ElementMarkupObject.cs (28)
232shouldSerializeMethod = ownerType.GetMethod(methodName, BindingFlags.Static |
233BindingFlags.NonPublic | BindingFlags.Public, null, _shouldSerializeArgsObject, null);
235shouldSerializeMethod = ownerType.GetMethod(methodName, BindingFlags.Static |
236BindingFlags.NonPublic | BindingFlags.Public, null, _shouldSerializeArgsManager, null);
238shouldSerializeMethod = ownerType.GetMethod(methodName, BindingFlags.Static |
239BindingFlags.NonPublic | BindingFlags.Public, null, _shouldSerializeArgsMode, null);
241shouldSerializeMethod = ownerType.GetMethod(methodName, BindingFlags.Static |
242BindingFlags.NonPublic | BindingFlags.Public, null, _shouldSerializeArgsObjectManager, null);
255shouldSerializeMethod = instanceType.GetMethod(methodName, BindingFlags.Instance | BindingFlags.Static |
256BindingFlags.NonPublic | BindingFlags.Public, null, _shouldSerializeArgsObject, null);
258shouldSerializeMethod = instanceType.GetMethod(methodName, BindingFlags.Instance | BindingFlags.Static |
259BindingFlags.NonPublic | BindingFlags.Public, null, _shouldSerializeArgsManager, null);
261shouldSerializeMethod = instanceType.GetMethod(methodName, BindingFlags.Instance | BindingFlags.Static |
262BindingFlags.NonPublic | BindingFlags.Public, null, _shouldSerializeArgsMode, null);
264shouldSerializeMethod = instanceType.GetMethod(methodName, BindingFlags.Instance | BindingFlags.Static |
265BindingFlags.NonPublic | BindingFlags.Public, null, _shouldSerializeArgsObjectManager, null);
src\Framework\System\Windows\Markup\XamlTypeMapper.cs (54)
953BindingFlags flags = BindingFlags.Static | BindingFlags.Public | BindingFlags.FlattenHierarchy;
968attachedPropertyInfo = propertyOwnerType.GetMethod(propName, flags | BindingFlags.NonPublic);
1338BindingFlags defaultBinding = BindingFlags.Public;
1369BindingFlags.Static |
1370BindingFlags.FlattenHierarchy);
1400BindingFlags.Instance |
1401BindingFlags.FlattenHierarchy);
1450BindingFlags.Static |
1451BindingFlags.FlattenHierarchy);
1461BindingFlags.Static |
1462BindingFlags.FlattenHierarchy);
1533defaultBinding | BindingFlags.Static | BindingFlags.FlattenHierarchy);
1561BindingFlags.Instance | BindingFlags.FlattenHierarchy | defaultBinding);
1610BindingFlags.Static |
1611BindingFlags.FlattenHierarchy);
1621BindingFlags.Static |
1622BindingFlags.FlattenHierarchy);
1690eventInfo = owner.GetEvent(eventName, BindingFlags.Instance | BindingFlags.Public);
1915BindingFlags.Public | BindingFlags.Instance | BindingFlags.FlattenHierarchy);
1950BindingFlags.Public | BindingFlags.Instance | BindingFlags.FlattenHierarchy);
2012BindingFlags flags = BindingFlags.Instance | BindingFlags.FlattenHierarchy | BindingFlags.Public;
2030info = ownerType.GetProperty(localName, flags | BindingFlags.NonPublic);
2041BindingFlags.Instance | BindingFlags.Public);
2462BindingFlags bf = BindingFlags.Public | BindingFlags.FlattenHierarchy | BindingFlags.Static;
2466bf |= BindingFlags.NonPublic;
2868BindingFlags.Public |
2869BindingFlags.NonPublic |
2870BindingFlags.Instance |
2871BindingFlags.CreateInstance,
2913propValue = pi.GetValue(target, BindingFlags.Default, null, null, TypeConverterHelper.InvariantEnglishUS);
2951pi.SetValue(target, value, BindingFlags.Default, null, null, TypeConverterHelper.InvariantEnglishUS);
3338BindingFlags.Instance | BindingFlags.CreateInstance | BindingFlags.Public,
3875_constructorInformationCache[type] = new ConstructorData(type.GetConstructors(BindingFlags.Public | BindingFlags.Instance));
System (158)
net\System\Net\_AutoWebProxyScriptHelper.cs (15)
168public override object Invoke(object target, BindingFlags bindingAttr, Binder binder, object[] args, CultureInfo culture) {
170return typeof(WebProxyScriptHelper).GetMethod(name, (BindingFlags)unchecked(-1)).Invoke(target, (BindingFlags)unchecked(-1), binder, args, culture);
174ParameterInfo[] pars = typeof(WebProxyScriptHelper).GetMethod(name, (BindingFlags)unchecked(-1)).GetParameters();
196MethodInfo IReflect.GetMethod(string name, BindingFlags bindingAttr, Binder binder, Type[] types, ParameterModifier[] modifiers) {
200MethodInfo IReflect.GetMethod(string name, BindingFlags bindingAttr) {
204MethodInfo[] IReflect.GetMethods(BindingFlags bindingAttr) {
208FieldInfo IReflect.GetField(string name, BindingFlags bindingAttr) {
212FieldInfo[] IReflect.GetFields(BindingFlags bindingAttr) {
216PropertyInfo IReflect.GetProperty(string name, BindingFlags bindingAttr) {
220PropertyInfo IReflect.GetProperty(string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) {
224PropertyInfo[] IReflect.GetProperties(BindingFlags bindingAttr) {
229MemberInfo[] IReflect.GetMember(string name, BindingFlags bindingAttr) {
233MemberInfo[] IReflect.GetMembers(BindingFlags bindingAttr) {
237object IReflect.InvokeMember(string name, BindingFlags bindingAttr, Binder binder, object target, object[] args, ParameterModifier[] modifiers, CultureInfo culture, string[] namedParameters) {
System.Activities (60)
System\Activities\Statements\MethodResolver.cs (15)
22static readonly BindingFlags staticBindingFlags = BindingFlags.InvokeMethod | BindingFlags.Public | BindingFlags.Static;
23static readonly BindingFlags instanceBindingFlags = BindingFlags.InvokeMethod | BindingFlags.Public | BindingFlags.Instance;
204BindingFlags bindingFlags = this.TargetType != null ? staticBindingFlags : instanceBindingFlags;
342MethodInfo Resolve(Type targetType, string methodName, BindingFlags bindingFlags,
424public override FieldInfo BindToField(BindingFlags bindingAttr, FieldInfo[] match, object value, CultureInfo culture)
429public override MethodBase BindToMethod(BindingFlags bindingAttr, MethodBase[] match, ref object[] args, ParameterModifier[] modifiers, CultureInfo culture, string[] names, out object state)
444public override MethodBase SelectMethod(BindingFlags bindingAttr, MethodBase[] match, Type[] types, ParameterModifier[] modifiers)
493MethodBase FindMatch(MethodBase[] methodCandidates, BindingFlags bindingAttr, Type[] types, ParameterModifier[] modifiers)
554public override PropertyInfo SelectProperty(BindingFlags bindingAttr, PropertyInfo[] match, Type returnType, Type[] indexes, ParameterModifier[] modifiers)
System.Activities.Core.Presentation (8)
System.Activities.Presentation (52)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (26)
330MemberInfo[] infos = reflectType.GetMember(member, MemberTypes.Event, BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public);
343MemberInfo[] infos = reflectType.GetMember(member, MemberTypes.Property, BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public);
1079protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) { return _baseReflectionType.GetConstructor(bindingAttr, binder, callConvention, types, modifiers); }
1080public override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr) { return _baseReflectionType.GetConstructors(bindingAttr); }
1081public override FieldInfo GetField(string name, BindingFlags bindingAttr) { return _baseReflectionType.GetField(name, bindingAttr); }
1082public override FieldInfo[] GetFields(BindingFlags bindingAttr) { return _baseReflectionType.GetFields(bindingAttr); }
1084public override object InvokeMember(string name, BindingFlags invokeAttr, Binder binder, object target, object[] args, ParameterModifier[] modifiers, System.Globalization.CultureInfo culture, string[] namedParameters) { return _baseReflectionType.InvokeMember(name, invokeAttr, binder, target, args, modifiers, culture, namedParameters); }
1179public override Type GetNestedType(string name, BindingFlags bindingAttr)
1187public override Type[] GetNestedTypes(BindingFlags bindingAttr)
1260public override MemberInfo[] FindMembers(MemberTypes memberType, BindingFlags bindingAttr, MemberFilter filter, object filterCriteria)
1278public override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr)
1287public override MemberInfo[] GetMember(string name, BindingFlags bindingAttr)
1296public override MemberInfo[] GetMembers(BindingFlags bindingAttr)
1305public override EventInfo GetEvent(string name, BindingFlags bindingAttr)
1323public override EventInfo[] GetEvents(BindingFlags bindingAttr)
1332protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
1356public override MethodInfo[] GetMethods(BindingFlags bindingAttr)
1365public override PropertyInfo[] GetProperties(BindingFlags bindingAttr)
1374protected override PropertyInfo GetPropertyImpl(string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)
1822public override object GetValue(object obj, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture) { return _info.GetValue(obj, invokeAttr, binder, index, culture); }
1824public override void SetValue(object obj, object value, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture) { _info.SetValue(obj, value, invokeAttr, binder, index, culture); }
1954public override object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture) { return _info.Invoke(obj, invokeAttr, binder, parameters, culture); }
System.AddIn (11)
System.ComponentModel.DataAnnotations (11)
System.Configuration (12)
System.Core (158)
Microsoft\Scripting\Ast\MemberExpression.cs (57)
173FieldInfo fi = expression.Type.GetField(fieldName, BindingFlags.Instance | BindingFlags.Public | BindingFlags.IgnoreCase | BindingFlags.FlattenHierarchy);
175fi = expression.Type.GetField(fieldName, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.IgnoreCase | BindingFlags.FlattenHierarchy);
196FieldInfo fi = type.GetField(fieldName, BindingFlags.Static | BindingFlags.Instance | BindingFlags.Public | BindingFlags.IgnoreCase | BindingFlags.FlattenHierarchy);
198fi = type.GetField(fieldName, BindingFlags.Static | BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.IgnoreCase | BindingFlags.FlattenHierarchy);
220PropertyInfo pi = expression.Type.GetProperty(propertyName, BindingFlags.Instance | BindingFlags.Public | BindingFlags.IgnoreCase | BindingFlags.FlattenHierarchy);
222pi = expression.Type.GetProperty(propertyName, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.IgnoreCase | BindingFlags.FlattenHierarchy);
241PropertyInfo pi = type.GetProperty(propertyName, BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.IgnoreCase | BindingFlags.FlattenHierarchy);
243pi = type.GetProperty(propertyName, BindingFlags.Static | BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.IgnoreCase | BindingFlags.FlattenHierarchy);
293BindingFlags flags = BindingFlags.Public | BindingFlags.NonPublic;
294flags |= (mi.IsStatic) ? BindingFlags.Static : BindingFlags.Instance;
332PropertyInfo pi = expression.Type.GetProperty(propertyOrFieldName, BindingFlags.Instance | BindingFlags.Public | BindingFlags.IgnoreCase | BindingFlags.FlattenHierarchy);
335FieldInfo fi = expression.Type.GetField(propertyOrFieldName, BindingFlags.Instance | BindingFlags.Public | BindingFlags.IgnoreCase | BindingFlags.FlattenHierarchy);
338pi = expression.Type.GetProperty(propertyOrFieldName, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.IgnoreCase | BindingFlags.FlattenHierarchy);
341fi = expression.Type.GetField(propertyOrFieldName, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.IgnoreCase | BindingFlags.FlattenHierarchy);
System\Linq\SequenceQuery.cs (16)
25return (IQueryable) Activator.CreateInstance(seqType, BindingFlags.Instance|BindingFlags.Public|BindingFlags.NonPublic, null, new object[] {sequence}, null);
34return (IQueryable) Activator.CreateInstance(seqType, BindingFlags.Instance|BindingFlags.Public|BindingFlags.NonPublic, null, new object[] {expression}, null);
155return (EnumerableExecutor)Activator.CreateInstance(execType, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, new object[] { expression }, null);
213BindingFlags flags = BindingFlags.Static | (m.Method.IsPublic ? BindingFlags.Public : BindingFlags.NonPublic);
315_seqMethods = typeof(Enumerable).GetMethods(BindingFlags.Static|BindingFlags.Public).ToLookup(m => m.Name);
325internal static MethodInfo FindMethod(Type type, string name, ReadOnlyCollection<Expression> args, Type[] typeArgs, BindingFlags flags) {
System.Data (105)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (26)
330MemberInfo[] infos = reflectType.GetMember(member, MemberTypes.Event, BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public);
343MemberInfo[] infos = reflectType.GetMember(member, MemberTypes.Property, BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public);
1079protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) { return _baseReflectionType.GetConstructor(bindingAttr, binder, callConvention, types, modifiers); }
1080public override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr) { return _baseReflectionType.GetConstructors(bindingAttr); }
1081public override FieldInfo GetField(string name, BindingFlags bindingAttr) { return _baseReflectionType.GetField(name, bindingAttr); }
1082public override FieldInfo[] GetFields(BindingFlags bindingAttr) { return _baseReflectionType.GetFields(bindingAttr); }
1084public override object InvokeMember(string name, BindingFlags invokeAttr, Binder binder, object target, object[] args, ParameterModifier[] modifiers, System.Globalization.CultureInfo culture, string[] namedParameters) { return _baseReflectionType.InvokeMember(name, invokeAttr, binder, target, args, modifiers, culture, namedParameters); }
1179public override Type GetNestedType(string name, BindingFlags bindingAttr)
1187public override Type[] GetNestedTypes(BindingFlags bindingAttr)
1260public override MemberInfo[] FindMembers(MemberTypes memberType, BindingFlags bindingAttr, MemberFilter filter, object filterCriteria)
1278public override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr)
1287public override MemberInfo[] GetMember(string name, BindingFlags bindingAttr)
1296public override MemberInfo[] GetMembers(BindingFlags bindingAttr)
1305public override EventInfo GetEvent(string name, BindingFlags bindingAttr)
1323public override EventInfo[] GetEvents(BindingFlags bindingAttr)
1332protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
1356public override MethodInfo[] GetMethods(BindingFlags bindingAttr)
1365public override PropertyInfo[] GetProperties(BindingFlags bindingAttr)
1374protected override PropertyInfo GetPropertyImpl(string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)
1822public override object GetValue(object obj, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture) { return _info.GetValue(obj, invokeAttr, binder, index, culture); }
1824public override void SetValue(object obj, object value, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture) { _info.SetValue(obj, value, invokeAttr, binder, index, culture); }
1954public override object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture) { return _info.Invoke(obj, invokeAttr, binder, parameters, culture); }
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (6)
1124return t.InvokeMember("Null", BindingFlags.Public | BindingFlags.GetProperty | BindingFlags.Static, null, null, new Object[]{}, CultureInfo.InvariantCulture);
2382result = t.InvokeMember("Null", BindingFlags.Public | BindingFlags.GetProperty | BindingFlags.Static, null, null, new Object[]{}, CultureInfo.InvariantCulture);
System.Data.DataSetExtensions (2)
System.Data.Entity (361)
System\Data\Common\Internal\Materialization\Translator.cs (50)
551private static readonly ConstructorInfo EntityKey_ctor_SingleKey = typeof(EntityKey).GetConstructor(BindingFlags.NonPublic | BindingFlags.Instance, null, new Type[] { typeof(EntitySet), typeof(object) }, null);
552private static readonly ConstructorInfo EntityKey_ctor_CompositeKey = typeof(EntityKey).GetConstructor(BindingFlags.NonPublic | BindingFlags.Instance, null, new Type[] { typeof(EntitySet), typeof(object[]) }, null);
559BindingFlags.NonPublic | BindingFlags.Instance,
563private static readonly MethodInfo RecordState_GatherData = typeof(RecordState).GetMethod("GatherData", BindingFlags.NonPublic | BindingFlags.Instance);
564private static readonly MethodInfo RecordState_SetNullRecord = typeof(RecordState).GetMethod("SetNullRecord", BindingFlags.NonPublic | BindingFlags.Instance);
585private static readonly MethodInfo Translator_BinaryEquals = typeof(Translator).GetMethod("BinaryEquals", BindingFlags.NonPublic | BindingFlags.Static);
586private static readonly MethodInfo Translator_CheckedConvert = typeof(Translator).GetMethod("CheckedConvert", BindingFlags.NonPublic | BindingFlags.Static);
587private static readonly MethodInfo Translator_Compile = typeof(Translator).GetMethod("Compile", BindingFlags.NonPublic | BindingFlags.Static, null, new Type[] { typeof(Expression) }, null);
588private static readonly MethodInfo Translator_MultipleDiscriminatorPolymorphicColumnMapHelper = typeof(Translator).GetMethod("MultipleDiscriminatorPolymorphicColumnMapHelper", BindingFlags.NonPublic | BindingFlags.Instance);
589private static readonly MethodInfo Translator_TypedCreateInlineDelegate = typeof(Translator).GetMethod("TypedCreateInlineDelegate", BindingFlags.NonPublic | BindingFlags.Instance);
591private static readonly PropertyInfo EntityWrapperFactory_NullWrapper = typeof(EntityWrapperFactory).GetProperty("NullWrapper", BindingFlags.Static | BindingFlags.NonPublic);
593private static readonly MethodInfo EntityProxyTypeInfo_SetEntityWrapper = typeof(EntityProxyTypeInfo).GetMethod("SetEntityWrapper", BindingFlags.NonPublic | BindingFlags.Instance);
599private static readonly PropertyInfo SnapshotChangeTrackingStrategy_Instance = typeof(SnapshotChangeTrackingStrategy).GetProperty("Instance", BindingFlags.Static | BindingFlags.Public);
601private static readonly MethodInfo EntityWrapperFactory_GetPocoPropertyAccessorStrategyFunc = typeof(EntityWrapperFactory).GetMethod("GetPocoPropertyAccessorStrategyFunc", BindingFlags.NonPublic | BindingFlags.Static);
602private static readonly MethodInfo EntityWrapperFactory_GetNullPropertyAccessorStrategyFunc = typeof(EntityWrapperFactory).GetMethod("GetNullPropertyAccessorStrategyFunc", BindingFlags.NonPublic | BindingFlags.Static);
603private static readonly MethodInfo EntityWrapperFactory_GetEntityWithChangeTrackerStrategyFunc = typeof(EntityWrapperFactory).GetMethod("GetEntityWithChangeTrackerStrategyFunc", BindingFlags.NonPublic | BindingFlags.Static);
604private static readonly MethodInfo EntityWrapperFactory_GetSnapshotChangeTrackingStrategyFunc = typeof(EntityWrapperFactory).GetMethod("GetSnapshotChangeTrackingStrategyFunc", BindingFlags.NonPublic | BindingFlags.Static);
605private static readonly MethodInfo EntityWrapperFactory_GetEntityWithKeyStrategyStrategyFunc = typeof(EntityWrapperFactory).GetMethod("GetEntityWithKeyStrategyStrategyFunc", BindingFlags.NonPublic | BindingFlags.Static);
606private static readonly MethodInfo EntityWrapperFactory_GetPocoEntityKeyStrategyFunc = typeof(EntityWrapperFactory).GetMethod("GetPocoEntityKeyStrategyFunc", BindingFlags.NonPublic | BindingFlags.Static);
768ConstructorInfo ci = genericType.GetConstructor(BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.CreateInstance, null,
794ConstructorInfo ci = genericType.GetConstructor(BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.CreateInstance, null,
1407BindingFlags bindingAttr = BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance;
1865MethodInfo getElementsExpression = typeof(Coordinator<>).MakeGenericType(elementType).GetMethod("GetElements", BindingFlags.NonPublic | BindingFlags.Instance);
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (12)
153ConstructorInfo ci = type.GetConstructor(BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance | BindingFlags.CreateInstance, null, System.Type.EmptyTypes, null);
385gen.Emit(OpCodes.Call, typeof(Type).GetMethod("GetTypeFromHandle", BindingFlags.Static | BindingFlags.Public));
389gen.Emit(OpCodes.Call, typeof(EntityUtil).GetMethod("ThrowSetInvalidValue", BindingFlags.Static | BindingFlags.NonPublic, null, new Type[] { typeof(object),typeof(Type),typeof(string),typeof(string)},null));
444gen.Emit(OpCodes.Ldsfld, typeof(LightweightCodeGenerator).GetField("MemberAccessReflectionPermission", BindingFlags.Static | BindingFlags.NonPublic));
475MethodInfo genericCreateRelatedEndMethod = typeof(LightweightCodeGenerator).GetMethod("CreateGetRelatedEndMethod", BindingFlags.NonPublic | BindingFlags.Static, null, new Type[] { typeof(AssociationEndMember), typeof(AssociationEndMember), typeof(NavigationPropertyAccessor), typeof(NavigationPropertyAccessor) }, null);
System\Data\Objects\ELinq\MethodCallTranslator.cs (104)
589stringsType.GetMethod("Mid", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(string), typeof(int) }, null),
590stringsType.GetMethod("Mid", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(string), typeof(int), typeof(int) }, null));
822typeof(Math).GetMethod("Ceiling", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(decimal) }, null),
823typeof(Math).GetMethod("Ceiling", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(double) }, null),
824typeof(Math).GetMethod("Floor", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(decimal) }, null),
825typeof(Math).GetMethod("Floor", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(double) }, null),
826typeof(Math).GetMethod("Round", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(decimal) }, null),
827typeof(Math).GetMethod("Round", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(double) }, null),
828typeof(Math).GetMethod("Round", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(decimal), typeof(int) }, null),
829typeof(Math).GetMethod("Round", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(double), typeof(int) }, null),
832typeof(Decimal).GetMethod("Floor", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(decimal) }, null),
833typeof(Decimal).GetMethod("Ceiling", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(decimal) }, null),
834typeof(Decimal).GetMethod("Round", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(decimal) }, null),
835typeof(Decimal).GetMethod("Round", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(decimal), typeof(int) }, null),
838typeof(String).GetMethod("Replace", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(String), typeof(String) }, null),
839typeof(String).GetMethod("ToLower", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { }, null),
840typeof(String).GetMethod("ToUpper", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { }, null),
841typeof(String).GetMethod("Trim", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { }, null),
847result.Add(typeof(Math).GetMethod("Abs", BindingFlags.Public | BindingFlags.Static, null, new Type[] { argType }, null));
919yield return typeof(EntityFunctions).GetMethod(ExpressionConverter.AsUnicode, BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(string) }, null);
930yield return typeof(EntityFunctions).GetMethod(ExpressionConverter.AsNonUnicode, BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(string) }, null);
940typeof(Math).GetMethod("Pow", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(double), typeof(double) }, null),
960typeof(Guid).GetMethod("NewGuid", BindingFlags.Public | BindingFlags.Static, null, Type.EmptyTypes, null),
980yield return typeof(String).GetMethod("Contains", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(string) }, null);
1010yield return typeof(String).GetMethod("IndexOf", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(string) }, null);
1032yield return typeof(String).GetMethod("StartsWith", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(string) }, null);
1063yield return typeof(String).GetMethod("EndsWith", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(string) }, null);
1096yield return typeof(String).GetMethod("Substring", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(int) }, null);
1097yield return typeof(String).GetMethod("Substring", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(int), typeof(int) }, null);
1135yield return typeof(String).GetMethod("Remove", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(int) }, null);
1136yield return typeof(String).GetMethod("Remove", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(int), typeof(int) }, null);
1217yield return typeof(String).GetMethod("Insert", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(int), typeof(string) }, null);
1260yield return typeof(String).GetMethod("IsNullOrEmpty", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(string) }, null);
1289yield return typeof(String).GetMethod("Concat", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(string), typeof(string) }, null);
1290yield return typeof(String).GetMethod("Concat", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(string), typeof(string), typeof(string) }, null);
1291yield return typeof(String).GetMethod("Concat", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(string), typeof(string), typeof(string), typeof(string) }, null);
1365yield return typeof(String).GetMethod("Trim", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(Char[]) }, null);
1375yield return typeof(String).GetMethod("TrimStart", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(Char[]) }, null);
1385yield return typeof(String).GetMethod("TrimEnd", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(Char[]) }, null);
1403yield return stringsType.GetMethod("Trim", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(string) }, null);
1404yield return stringsType.GetMethod("LTrim", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(string) }, null);
1405yield return stringsType.GetMethod("RTrim", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(string) }, null);
1406yield return stringsType.GetMethod("Left", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(string), typeof(int) }, null);
1407yield return stringsType.GetMethod("Right", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(string), typeof(int) }, null);
1411yield return dateTimeType.GetMethod("Year", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(DateTime) }, null);
1412yield return dateTimeType.GetMethod("Month", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(DateTime) }, null);
1413yield return dateTimeType.GetMethod("Day", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(DateTime) }, null);
1414yield return dateTimeType.GetMethod("Hour", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(DateTime) }, null);
1415yield return dateTimeType.GetMethod("Minute", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(DateTime) }, null);
1416yield return dateTimeType.GetMethod("Second", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(DateTime) }, null);
1447MethodInfo methodInfo = declaringType.GetMethod(methodName, BindingFlags.Public | BindingFlags.Static, null, argumentTypes, null);
1490yield return dateAndTimeType.GetMethod("DatePart", BindingFlags.Public | BindingFlags.Static, null,
System\Data\Objects\ELinq\Translator.cs (57)
228propertyInfo = propertyInfo.DeclaringType.GetGenericTypeDefinition().GetProperty(propertyInfo.Name, BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public);
537yield return typeof(String).GetProperty("Length", BindingFlags.Public | BindingFlags.Instance);
538yield return typeof(DateTime).GetProperty("Year", BindingFlags.Public | BindingFlags.Instance);
539yield return typeof(DateTime).GetProperty("Month", BindingFlags.Public | BindingFlags.Instance);
540yield return typeof(DateTime).GetProperty("Day", BindingFlags.Public | BindingFlags.Instance);
541yield return typeof(DateTime).GetProperty("Hour", BindingFlags.Public | BindingFlags.Instance);
542yield return typeof(DateTime).GetProperty("Minute", BindingFlags.Public | BindingFlags.Instance);
543yield return typeof(DateTime).GetProperty("Second", BindingFlags.Public | BindingFlags.Instance);
544yield return typeof(DateTime).GetProperty("Millisecond", BindingFlags.Public | BindingFlags.Instance);
546yield return typeof(DateTimeOffset).GetProperty("Year", BindingFlags.Public | BindingFlags.Instance);
547yield return typeof(DateTimeOffset).GetProperty("Month", BindingFlags.Public | BindingFlags.Instance);
548yield return typeof(DateTimeOffset).GetProperty("Day", BindingFlags.Public | BindingFlags.Instance);
549yield return typeof(DateTimeOffset).GetProperty("Hour", BindingFlags.Public | BindingFlags.Instance);
550yield return typeof(DateTimeOffset).GetProperty("Minute", BindingFlags.Public | BindingFlags.Instance);
551yield return typeof(DateTimeOffset).GetProperty("Second", BindingFlags.Public | BindingFlags.Instance);
552yield return typeof(DateTimeOffset).GetProperty("Millisecond", BindingFlags.Public | BindingFlags.Instance);
573yield return GetProperty(typeof(DateTime), "Now", BindingFlags.Public | BindingFlags.Static, ExpressionConverter.CurrentDateTime);
574yield return GetProperty(typeof(DateTime), "UtcNow", BindingFlags.Public | BindingFlags.Static, ExpressionConverter.CurrentUtcDateTime);
575yield return GetProperty(typeof(DateTimeOffset), "Now", BindingFlags.Public | BindingFlags.Static, ExpressionConverter.CurrentDateTimeOffset);
577yield return GetProperty(typeof(TimeSpan), "Hours", BindingFlags.Public | BindingFlags.Instance, ExpressionConverter.Hour);
578yield return GetProperty(typeof(TimeSpan), "Minutes", BindingFlags.Public | BindingFlags.Instance, ExpressionConverter.Minute);
579yield return GetProperty(typeof(TimeSpan), "Seconds", BindingFlags.Public | BindingFlags.Instance, ExpressionConverter.Second);
580yield return GetProperty(typeof(TimeSpan), "Milliseconds", BindingFlags.Public | BindingFlags.Instance, ExpressionConverter.Millisecond);
583private static PropertyInfo GetProperty(Type declaringType, string propertyName, BindingFlags bindingFlages, string canonicalFunctionName)
621return vbAssembly.GetType(s_dateAndTimeTypeFullName).GetProperty("Now", BindingFlags.Public | BindingFlags.Static);
639return typeof(EntityCollection<>).GetProperty(ExpressionConverter.s_entityCollectionCountPropertyName, BindingFlags.Public | BindingFlags.Instance);
659return typeof(Nullable<>).GetProperty(ExpressionConverter.s_nullableHasValuePropertyName, BindingFlags.Public | BindingFlags.Instance);
679return typeof(Nullable<>).GetProperty(ExpressionConverter.s_nullableValuePropertyName, BindingFlags.Public | BindingFlags.Instance);
System\Data\Objects\Internal\EntityProxyFactory.cs (18)
463FieldInfo interceptorField = proxyType.GetField(LazyLoadImplementor.GetInterceptorFieldName(member.Name), BindingFlags.DeclaredOnly | BindingFlags.Static | BindingFlags.NonPublic);
466Delegate interceptorDelegate = typeof(LazyLoadBehavior).GetMethod("GetInterceptorDelegate", BindingFlags.NonPublic | BindingFlags.Static).
497var resetFKSetterFlagField = proxyType.GetField(ResetFKSetterFlagFieldName, BindingFlags.DeclaredOnly | BindingFlags.Static | BindingFlags.NonPublic);
541var compareByteArraysField = proxyType.GetField(CompareByteArraysFieldName, BindingFlags.DeclaredOnly | BindingFlags.Static | BindingFlags.NonPublic);
568ConstructorInfo ctor = ospaceEntityType.ClrType.GetConstructor(BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance | BindingFlags.CreateInstance, null, Type.EmptyTypes, null);
1581_serializationConstructor = _baseClrType.GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, new Type[] { typeof(SerializationInfo), typeof(StreamingContext) }, null);
System\Data\Objects\Internal\EntityProxyTypeInfo.cs (8)
76FieldInfo entityWrapperField = proxyType.GetField(EntityWrapperFieldName, BindingFlags.DeclaredOnly | BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance);
113MethodInfo baseGetterMethod = proxyType.GetMethod("GetBasePropertyValue", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(string) }, null);
122MethodInfo baseSetterMethod = proxyType.GetMethod("SetBasePropertyValue", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(string), typeof(object) }, null);
System\Data\SqlClient\SqlSpatialServices.cs (12)
259return this.SqlTypes.SqlGeographyType.GetMethod(methodName, BindingFlags.Public | BindingFlags.Instance, null, argTypes, null);
264return this.SqlTypes.SqlGeographyType.GetMethod(methodName, BindingFlags.Public | BindingFlags.Static, null, argTypes, null);
269return this.SqlTypes.SqlGeographyType.GetProperty(propertyName, BindingFlags.Public | BindingFlags.Instance);
274return this.SqlTypes.SqlGeometryType.GetMethod(methodName, BindingFlags.Public | BindingFlags.Static, null, argTypes, null);
279return this.SqlTypes.SqlGeometryType.GetMethod(methodName, BindingFlags.Public | BindingFlags.Instance, null, argTypes, null);
284return this.SqlTypes.SqlGeometryType.GetProperty(propertyName, BindingFlags.Public | BindingFlags.Instance);
System\Data\SqlClient\SqlTypesAssembly.cs (16)
79PropertyInfo prop = exp.Type.GetProperty(propertyName, BindingFlags.Instance | BindingFlags.Public);
173MethodInfo asTextMethod = this.SqlGeometryType.GetMethod("STAsText", BindingFlags.Public | BindingFlags.Instance, null, Type.EmptyTypes, null);
522var staticCtorMethod = spatialType.GetMethod(methodName, BindingFlags.Public | BindingFlags.Static);
566ConstructorInfo byteArrayCtor = sqlBytesType.GetConstructor(BindingFlags.Instance | BindingFlags.Public, null, new Type[] { toConvert.Type }, null);
577ConstructorInfo sqlCharsFromSqlStringCtor = sqlCharsType.GetConstructor(BindingFlags.Instance | BindingFlags.Public, null, new Type[] { sqlString }, null);
579ConstructorInfo sqlStringFromStringCtor = sqlString.GetConstructor(BindingFlags.Instance | BindingFlags.Public, null, new Type[] { typeof(string) }, null);
588ConstructorInfo sqlStringFromStringCtor = sqlStringType.GetConstructor(BindingFlags.Instance | BindingFlags.Public, null, new Type[] { typeof(string) }, null);
598ConstructorInfo readerCtor = sqlXmlType.GetConstructor(BindingFlags.Instance | BindingFlags.Public, null, new Type[] { toConvert.Type }, null);
System.Data.Entity.Design (13)
System.Data.Linq (239)
Mapping\AttributedMetaModel.cs (43)
18internal static MethodInfo FindMethod(Type type, string name, BindingFlags flags, Type[] argTypes) {
22internal static MethodInfo FindMethod(Type type, string name, BindingFlags flags, Type[] argTypes, bool allowInherit) {
24MethodInfo mi = type.GetMethod(name, flags | BindingFlags.DeclaredOnly, null, argTypes, null);
131FieldInfo[] fields = type.GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly);
139PropertyInfo[] props = type.GetProperties(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly);
165foreach (MethodInfo mi in type.GetMethods(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.DeclaredOnly)) {
367BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic,
373BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic,
379BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic,
576BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic,
583BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic,
600BindingFlags flags = BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.FlattenHierarchy;
1040MemberInfo[] mis = mi.DeclaringType.GetMember(this.attr.Storage, BindingFlags.Instance | BindingFlags.NonPublic);
1241BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic,
1304return (MetaAccessor)Activator.CreateInstance(accessorType, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, args, null);
Mapping\MappedMetaModel.cs (50)
95FieldInfo[] fields = type.GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly);
109PropertyInfo[] props = type.GetProperties(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly);
240return type.GetMethod(methodName, BindingFlags.Instance|BindingFlags.Public|BindingFlags.NonPublic);
395BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic,
401BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic,
407BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic,
613BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic,
620BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic,
637BindingFlags flags = BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.FlattenHierarchy;
702foreach(MemberInfo mi in aboveRoot.GetMembers(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic)) {
971MemberInfo[] mis = mi.DeclaringType.GetMember(this.memberMap.StorageMemberName, BindingFlags.Instance | BindingFlags.NonPublic);
1146BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic,
1209return (MetaAccessor)Activator.CreateInstance(accessorType, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, args, null);
1495MemberInfo[] rmis = mtype.Type.GetMember(names[i], BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
1666BindingFlags flags = BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.FlattenHierarchy;
SqlClient\Reader\ObjectReaderCompiler.cs (78)
159this.miDRisDBNull = dataReaderType.GetMethod("IsDBNull", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
160this.miBRisDBNull = typeof(DbDataReader).GetMethod("IsDBNull", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
163this.ordinalsField = orbType.GetField("Ordinals", BindingFlags.Instance | BindingFlags.Public);
164this.globalsField = orbType.GetField("Globals", BindingFlags.Instance | BindingFlags.Public);
165this.argsField = orbType.GetField("Arguments", BindingFlags.Instance | BindingFlags.Public);
166this.readerField = orbType.GetField("DataReader", BindingFlags.Instance | BindingFlags.Public);
167this.bufferReaderField = orbType.GetField("BufferReader", BindingFlags.Instance | BindingFlags.Public);
210factoryType, BindingFlags.Instance | BindingFlags.NonPublic, null,
260return (IObjectReaderSession)Activator.CreateInstance(sessionType, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null,
815BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic,
985BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic,
1038BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic,
1206MethodInfo miSetSource = memberType.GetMethod("SetSource", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, new Type[] { argType }, null);
1268MethodInfo miAssign = memberType.GetMethod("Assign", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, new Type[] { argType }, null);
1312ConstructorInfo ci = memberType.GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, new Type[] { argType }, null);
1380mi = typeof(ObjectMaterializer<>).MakeGenericType(this.compiler.dataReaderType).GetMethod("GetNestedLinkSource", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
1399mi = typeof(ObjectMaterializer<>).MakeGenericType(this.compiler.dataReaderType).GetMethod("GetLinkSource", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
1452.GetMethod("ExecuteSubQuery", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
1510MethodInfo miRead = orbType.GetMethod("Read", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, Type.EmptyTypes, null);
1522MethodInfo miAdd = listType.GetMethod("Add", BindingFlags.Instance | BindingFlags.Public, null, new Type[] { joinElementType }, null);
1725MethodInfo miAssign = expectedType.GetMethod("Assign", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, new Type[] { seqType }, null);
1781MethodInfo miGetTypeFromHandle = typeof(Type).GetMethod("GetTypeFromHandle", BindingFlags.Static | BindingFlags.Public);
1784MethodInfo miChangeType = typeof(DBConvert).GetMethod("ChangeType", BindingFlags.Static | BindingFlags.Public, null, new Type[] { typeof(object), typeof(Type) }, null);
2064MethodInfo miEquals = typeof(object).GetMethod("Equals", BindingFlags.Static | BindingFlags.Public);
2089"GetTypeFromHandle", BindingFlags.Static | BindingFlags.Public));
2093.GetMethod("ErrorAssignmentToNull", BindingFlags.Static | BindingFlags.Public);
2122BindingFlags.Instance | BindingFlags.Public,
2131BindingFlags.Instance | BindingFlags.Public,
2142MethodInfo mi = nullableType.GetMethod("get_HasValue", BindingFlags.Instance | BindingFlags.Public);
2147MethodInfo mi = nullableType.GetMethod("get_Value", BindingFlags.Instance | BindingFlags.Public);
2163FieldInfo fi = varType.GetField("Value", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly);
SqlClient\SqlProvider.cs (16)
547engineType.InvokeMember("CreateDatabase", BindingFlags.Instance | BindingFlags.Public | BindingFlags.InvokeMethod, null, engine, new object[] { }, CultureInfo.InvariantCulture);
1019BindingFlags.Instance | BindingFlags.NonPublic, null, new object[] { obj }, null
1054BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null,
1106BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null,
1117BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null,
1227return (IEnumerable)Activator.CreateInstance(enumerableType, BindingFlags.Instance | BindingFlags.NonPublic, null, new object[] { e }, null);
System.Data.Services (135)
System\Data\Services\OpenTypes\OpenTypeMethods.cs (36)
29internal static readonly MethodInfo AddMethodInfo = typeof(OpenTypeMethods).GetMethod("Add", BindingFlags.Static | BindingFlags.Public);
32internal static readonly MethodInfo AndAlsoMethodInfo = typeof(OpenTypeMethods).GetMethod("AndAlso", BindingFlags.Static | BindingFlags.Public);
35internal static readonly MethodInfo ConvertMethodInfo = typeof(OpenTypeMethods).GetMethod("Convert", BindingFlags.Static | BindingFlags.Public);
38internal static readonly MethodInfo DivideMethodInfo = typeof(OpenTypeMethods).GetMethod("Divide", BindingFlags.Static | BindingFlags.Public);
41internal static readonly MethodInfo EqualMethodInfo = typeof(OpenTypeMethods).GetMethod("Equal", BindingFlags.Static | BindingFlags.Public);
44internal static readonly MethodInfo GreaterThanMethodInfo = typeof(OpenTypeMethods).GetMethod("GreaterThan", BindingFlags.Static | BindingFlags.Public);
47internal static readonly MethodInfo GreaterThanOrEqualMethodInfo = typeof(OpenTypeMethods).GetMethod("GreaterThanOrEqual", BindingFlags.Static | BindingFlags.Public);
50internal static readonly MethodInfo LessThanMethodInfo = typeof(OpenTypeMethods).GetMethod("LessThan", BindingFlags.Static | BindingFlags.Public);
53internal static readonly MethodInfo LessThanOrEqualMethodInfo = typeof(OpenTypeMethods).GetMethod("LessThanOrEqual", BindingFlags.Static | BindingFlags.Public);
56internal static readonly MethodInfo ModuloMethodInfo = typeof(OpenTypeMethods).GetMethod("Modulo", BindingFlags.Static | BindingFlags.Public);
59internal static readonly MethodInfo MultiplyMethodInfo = typeof(OpenTypeMethods).GetMethod("Multiply", BindingFlags.Static | BindingFlags.Public);
62internal static readonly MethodInfo NegateMethodInfo = typeof(OpenTypeMethods).GetMethod("Negate", BindingFlags.Static | BindingFlags.Public);
65internal static readonly MethodInfo NotMethodInfo = typeof(OpenTypeMethods).GetMethod("Not", BindingFlags.Static | BindingFlags.Public);
68internal static readonly MethodInfo NotEqualMethodInfo = typeof(OpenTypeMethods).GetMethod("NotEqual", BindingFlags.Static | BindingFlags.Public);
71internal static readonly MethodInfo OrElseMethodInfo = typeof(OpenTypeMethods).GetMethod("OrElse", BindingFlags.Static | BindingFlags.Public);
74internal static readonly MethodInfo SubtractMethodInfo = typeof(OpenTypeMethods).GetMethod("Subtract", BindingFlags.Static | BindingFlags.Public);
77internal static readonly MethodInfo TypeIsMethodInfo = typeof(OpenTypeMethods).GetMethod("TypeIs", BindingFlags.Static | BindingFlags.Public);
82BindingFlags.Static | BindingFlags.Public,
System.Data.Services.Client (36)
System.Data.Services.Design (8)
System.Data.SqlXml (32)
System\Xml\Xsl\Runtime\XmlExtensionFunction.cs (7)
30public XmlExtensionFunction Bind(string name, string namespaceUri, int numArgs, Type objectType, BindingFlags flags) {
59private BindingFlags flags; // Modifiers that were used to search for a matching signature
86public XmlExtensionFunction(string name, string namespaceUri, int numArgs, Type objectType, BindingFlags flags) {
93public void Init(string name, string namespaceUri, int numArgs, Type objectType, BindingFlags flags) {
151bool ignoreCase = (this.flags & BindingFlags.IgnoreCase) != 0;
172bool ignoreCase = (this.flags & BindingFlags.IgnoreCase) != 0;
186methods = this.objectType.GetMethods(this.flags | BindingFlags.NonPublic);
System.Drawing (8)
System.IdentityModel (6)
System.IO.Compression.FileSystem (2)
System.Runtime.Caching (10)
System.Runtime.Remoting (25)
System.Runtime.Serialization (65)
System\Runtime\Serialization\CollectionDataContract.cs (10)
997defaultCtor = type.GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, Globals.EmptyTypeArray, null);
1178addMethod = type.GetMethod(Globals.AddMethodName, BindingFlags.Instance | BindingFlags.Public, null, addMethodTypeArray, null);
1202addMethod = type.GetMethod(Globals.AddMethodName, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, addMethodTypeArray, null);
1207getEnumeratorMethod = type.GetMethod(Globals.GetEnumeratorMethodName, BindingFlags.Instance | BindingFlags.Public, null, Globals.EmptyTypeArray, null);
System.ServiceModel (57)
System\ServiceModel\Administration\AppDomainInstanceProvider.cs (6)
90string initializeData = (string)type.InvokeMember(AdministrationStrings.InitializeData, BindingFlags.GetField | BindingFlags.NonPublic | BindingFlags.Instance, null, traceListener, null, CultureInfo.InvariantCulture);
91string[] supportedAttributes = (string[])type.InvokeMember(AdministrationStrings.GetSupportedAttributes, BindingFlags.InvokeMethod | BindingFlags.NonPublic | BindingFlags.Instance, null, traceListener, null, CultureInfo.InvariantCulture);
System.ServiceModel.Activation (8)
System.ServiceModel.Activities (3)
System.ServiceModel.Web (3)
System.Web (229)
Compilation\ClientBuildManagerTypeDescriptionProviderBridge.cs (5)
39internal bool HasProperty(Type type, string name, BindingFlags bindingAttr, Type returnType, Type[] types)
54internal bool HasField(Type type, string name, BindingFlags bindingAttr) {
85internal bool HasMethod(Type type, string name, BindingFlags bindingAttr) {
94internal string[] GetFilteredProperties(Type type, BindingFlags bindingFlags) {
108internal string[] GetFilteredEvents(Type type, BindingFlags bindingFlags) {
Compilation\DelayLoadType.cs (14)
84protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) {
88public override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr) {
96public override EventInfo GetEvent(string name, BindingFlags bindingAttr) {
100public override EventInfo[] GetEvents(BindingFlags bindingAttr) {
104public override FieldInfo GetField(string name, BindingFlags bindingAttr) {
108public override FieldInfo[] GetFields(BindingFlags bindingAttr) {
120public override MemberInfo[] GetMembers(BindingFlags bindingAttr) {
124protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) {
128public override MethodInfo[] GetMethods(BindingFlags bindingAttr) {
132public override Type GetNestedType(string name, BindingFlags bindingAttr) {
136public override Type[] GetNestedTypes(BindingFlags bindingAttr) {
140public override PropertyInfo[] GetProperties(BindingFlags bindingAttr) {
144protected override PropertyInfo GetPropertyImpl(string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) {
152public override object InvokeMember(string name, BindingFlags invokeAttr, Binder binder, object target, object[] args, ParameterModifier[] modifiers, System.Globalization.CultureInfo culture, string[] namedParameters) {
UI\TargetFrameworkUtil.cs (15)
75private static Tuple<string, int> MakeTuple(string name, BindingFlags bindingAttr) {
167internal static PropertyInfo GetProperty(Type type, string name, BindingFlags bindingAttr,
192private static PropertyInfo GetPropertyHelper(Type type, string name, BindingFlags bindingAttr,
224internal static FieldInfo GetField(Type type, string name, BindingFlags bindingAttr) {
241private static FieldInfo GetFieldInfo(Type type, string name, BindingFlags bindingAttr) {
372BindingFlags bindingFlags = BindingFlags.Public | BindingFlags.Instance;
427BindingFlags bindingFlags = BindingFlags.Public | BindingFlags.Instance;
485private static PropertyInfo GetMostSpecificProperty(Type type, string name, BindingFlags additionalFlags, Type returnType, Type[] types) {
486BindingFlags flags = BindingFlags.DeclaredOnly;
514internal static bool HasMethod(Type type, string name, BindingFlags bindingAttr) {
Util\SmtpMail.cs (4)
88return type.InvokeMember(methodName, BindingFlags.InvokeMethod, null, obj, args, CultureInfo.InvariantCulture);
112return type.InvokeMember(propName, BindingFlags.GetProperty, null, obj,new Object[0], CultureInfo.InvariantCulture);
131type.InvokeMember(propName, BindingFlags.SetProperty, null, obj, new Object[1] { propValue }, CultureInfo.InvariantCulture);
150type.InvokeMember(propName, BindingFlags.SetProperty, null, obj,new Object[2] { propKey, propValue }, CultureInfo.InvariantCulture);
System.Web.ApplicationServices (4)
System.Web.DataVisualization (21)
System.Web.DynamicData (6)
System.Web.Entity (23)
System.Web.Entity.Design (2)
System.Web.Extensions (59)
System.Web.Mobile (15)
System.Web.Services (20)
System.Windows.Forms (108)
System.Windows.Forms.DataVisualization (18)
System.Workflow.Activities (209)
Common\BasePropertyDescriptor.cs (15)
429foreach (MemberInfo memberInfo in ownerType.GetMembers(BindingFlags.FlattenHierarchy | BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic))
563MemberInfo memberInfo = component.GetType().GetProperty("ParameterBindings", BindingFlags.GetProperty | BindingFlags.Public | BindingFlags.Instance | BindingFlags.FlattenHierarchy | BindingFlags.ExactBinding, null, typeof(WorkflowParameterBindingCollection), new Type[] { }, new ParameterModifier[] { });
565retVal = component.GetType().InvokeMember("ParameterBindings", BindingFlags.GetProperty | BindingFlags.Public | BindingFlags.Instance | BindingFlags.FlattenHierarchy | BindingFlags.ExactBinding, null, component, new object[] { }, CultureInfo.InvariantCulture) as WorkflowParameterBindingCollection;
Rules\Expressions.cs (28)
936BindingFlags bindingFlags = BindingFlags.Public;
938bindingFlags |= BindingFlags.Static | BindingFlags.FlattenHierarchy;
940bindingFlags |= BindingFlags.Instance;
942bindingFlags |= BindingFlags.NonPublic;
1092BindingFlags bindingFlags = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.FlattenHierarchy;
1095bindingFlags |= BindingFlags.NonPublic;
1270BindingFlags bindingFlags = BindingFlags.Public;
1370bindingFlags |= BindingFlags.Static | BindingFlags.FlattenHierarchy;
1372bindingFlags |= BindingFlags.Instance;
1374bindingFlags |= BindingFlags.NonPublic;
1592Array paramsArray = (Array)arrayType.InvokeMember(arrayType.Name, BindingFlags.CreateInstance, null, null, new object[] { actualArgCount - i }, CultureInfo.CurrentCulture);
2365BindingFlags bindingFlags = BindingFlags.Public | BindingFlags.Instance;
2368bindingFlags |= BindingFlags.NonPublic;
2543Array paramsArray = (Array)arrayType.InvokeMember(arrayType.Name, BindingFlags.CreateInstance, null, null, new object[] { actualArgCount - i }, CultureInfo.CurrentCulture);
2977BindingFlags bindingFlags = BindingFlags.Public | BindingFlags.Instance;
2979bindingFlags |= BindingFlags.NonPublic;
Rules\RuleValidation.cs (27)
226public override object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
354public override object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
438public override object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
468public override object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
501public override object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
532public override object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
682public override object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
2219MethodInfo[] possible = t.GetMethods(BindingFlags.Static | BindingFlags.Public);
2242MethodInfo[] possible = t.GetMethods(BindingFlags.Static | BindingFlags.Public);
2361BindingFlags bindingFlags = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.FlattenHierarchy;
2363bindingFlags |= BindingFlags.NonPublic;
2408internal PropertyInfo ResolveProperty(Type targetType, string propertyName, BindingFlags bindingFlags)
2439private static PropertyInfo GetProperty(Type targetType, string propertyName, BindingFlags bindingFlags)
3149internal RuleConstructorExpressionInfo ResolveConstructor(Type targetType, BindingFlags constructorBindingFlags, List<CodeExpression> argumentExprs, out ValidationError error)
3190internal RuleMethodInvokeExpressionInfo ResolveMethod(Type targetType, string methodName, BindingFlags methodBindingFlags, List<CodeExpression> argumentExprs, out ValidationError error)
3237internal static List<ConstructorInfo> GetConstructors(List<Type> targetTypes, BindingFlags constructorBindingFlags)
3264private List<MethodInfo> GetNamedMethods(List<Type> targetTypes, string methodName, BindingFlags methodBindingFlags)
3395MethodInfo[] staticMethods = type.GetMethods(BindingFlags.Static | BindingFlags.Public);
3538internal RulePropertyExpressionInfo ResolveIndexerProperty(Type targetType, BindingFlags bindingFlags, List<CodeExpression> argumentExprs, out ValidationError error)
3593private static List<PropertyInfo> GetIndexerProperties(List<Type> candidateTypes, BindingFlags bindingFlags)
System.Workflow.ComponentModel (325)
AuthoringOM\Bind.cs (16)
151targetObject = (eventArgs.MemberInfo as PropertyInfo).GetValue(targetObject, BindingFlags.GetProperty, null, eventArgs.IndexParameters, CultureInfo.InvariantCulture);
786memberInfo = dataSourceType.GetMethod(path, BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.FlattenHierarchy, null, paramTypes.ToArray(), null);
1117value = (eventArgs.MemberInfo as PropertyInfo).GetValue(value, BindingFlags.GetProperty, null, eventArgs.IndexParameters, CultureInfo.InvariantCulture);
1366members.AddRange(type.GetMember(memberName, MemberTypes.Field | MemberTypes.Property | MemberTypes.Event | MemberTypes.Method, BindingFlags.Public | BindingFlags.Static | BindingFlags.Instance | BindingFlags.FlattenHierarchy));
1373members.AddRange(implementedInterface.GetMember(memberName, MemberTypes.Field | MemberTypes.Property | MemberTypes.Event | MemberTypes.Method, BindingFlags.Public | BindingFlags.Static | BindingFlags.Instance | BindingFlags.FlattenHierarchy));
1646public override object GetValue(object obj, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture)
1657public override void SetValue(object obj, object value, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture)
AuthoringOM\Compiler\TypeSystem\DesignTimeType.cs (43)
376public override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr)
381public override EventInfo GetEvent(string name, BindingFlags bindingAttr)
386public override EventInfo[] GetEvents(BindingFlags bindingAttr)
391public override FieldInfo GetField(string name, BindingFlags bindingAttr)
396public override FieldInfo[] GetFields(BindingFlags bindingAttr)
401public override MethodInfo[] GetMethods(BindingFlags bindingAttr)
406public override PropertyInfo[] GetProperties(BindingFlags bindingAttr)
411public override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr)
445public override MemberInfo[] GetMembers(BindingFlags bindingAttr)
487public override Type GetNestedType(string name, BindingFlags bindingAttr)
492public override Type[] GetNestedTypes(BindingFlags bindingAttr)
562public override object InvokeMember(string name, BindingFlags bindingFlags, Binder binder, object target, object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, string[] namedParams)
642private void VerifyGetMemberArguments(string name, BindingFlags bindingAttr)
650private void VerifyGetMemberArguments(BindingFlags bindingAttr)
653BindingFlags supported = BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.FlattenHierarchy | BindingFlags.Instance | BindingFlags.DeclaredOnly | BindingFlags.IgnoreCase;
702private bool FilterMember(MemberInfo memberInfo, BindingFlags bindingFlags)
746return ((((isPublic) && ((bindingFlags & BindingFlags.Public) != 0)) || ((!isPublic) && ((bindingFlags & BindingFlags.NonPublic) != 0))));
749return ((((isPublic) && ((bindingFlags & BindingFlags.Public) != 0)) || ((!isPublic) && ((bindingFlags & BindingFlags.NonPublic) != 0))) && (((isStatic) && ((bindingFlags & BindingFlags.Static) != 0)) || ((!isStatic) && ((bindingFlags & BindingFlags.Instance) != 0))));
753private T[] GetMembersHelper<T>(BindingFlags bindingAttr, ref T[] members, bool searchBase)
772if (searchBase && (bindingAttr & BindingFlags.DeclaredOnly) == 0)
775if ((bindingAttr & BindingFlags.FlattenHierarchy) == 0)
776bindingAttr &= ~BindingFlags.Static;
802private MemberInfo[] GetBaseMembers(Type type, Type baseType, BindingFlags bindingAttr)
821private T[] GetMembersHelper<T>(BindingFlags bindingAttr, MemberSignature memberSignature, ref T[] members)
835private T GetMemberHelper<T>(BindingFlags bindingAttr, MemberSignature memberSignature, ref T[] members)
851if ((bindingAttr & BindingFlags.DeclaredOnly) == 0)
856if ((bindingAttr & BindingFlags.FlattenHierarchy) == 0)
857bindingAttr &= ~BindingFlags.Static;
878internal MemberInfo GetBaseMember(Type type, Type baseType, BindingFlags bindingAttr, MemberSignature memberSignature)
962protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
967protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
972protected override PropertyInfo GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)
AuthoringOM\Compiler\TypeSystem\MethodInfo.cs (3)
38public override Object Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
83public override object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
244public override object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
AuthoringOM\Compiler\TypeSystem\PropertyInfo.cs (3)
50public override void SetValue(object obj, object value, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture)
151public override object GetValue(object obj, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture)
227public override object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (25)
305public override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr)
312public override EventInfo GetEvent(string name, BindingFlags bindingAttr)
319public override EventInfo[] GetEvents(BindingFlags bindingAttr)
326public override FieldInfo GetField(string name, BindingFlags bindingAttr)
333public override FieldInfo[] GetFields(BindingFlags bindingAttr)
340public override MethodInfo[] GetMethods(BindingFlags bindingAttr)
347public override PropertyInfo[] GetProperties(BindingFlags bindingAttr)
354public override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr)
361public override MemberInfo[] GetMembers(BindingFlags bindingAttr)
368public override Type GetNestedType(string name, BindingFlags bindingAttr)
375public override Type[] GetNestedTypes(BindingFlags bindingAttr)
399public override object InvokeMember(string name, BindingFlags bindingFlags, Binder binder, object target, object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, string[] namedParams)
670protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
693protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
697bool matchName = ((bindingAttr & BindingFlags.IgnoreCase) == BindingFlags.IgnoreCase) ? string.Compare(method.Name, name, StringComparison.OrdinalIgnoreCase) == 0 : string.Compare(method.Name, name, StringComparison.Ordinal) == 0;
720protected override PropertyInfo GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)
724bool matchName = ((bindingAttr & BindingFlags.IgnoreCase) == BindingFlags.IgnoreCase) ? string.Compare(propInfo.Name, name, StringComparison.OrdinalIgnoreCase) == 0 : string.Compare(propInfo.Name, name, StringComparison.Ordinal) == 0;
808public override object Invoke(BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
831public override object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
906public override void SetValue(object obj, object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture)
1001public override object GetValue(object obj, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture)
1009public override void SetValue(object obj, object value, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture)
1120public override object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
AuthoringOM\Design\ActivityDesignerLayoutSerializers.cs (20)
117PropertyInfo nameProperty = activityDesigner.GetType().GetProperty("Name", BindingFlags.Instance | BindingFlags.NonPublic);
134properties.Add(typeof(CompositeActivityDesigner).GetProperty("Designers", BindingFlags.Instance | BindingFlags.NonPublic));
170serializableProperties.Add(typeof(FreeformActivityDesigner).GetProperty("DesignerConnectors", BindingFlags.Instance | BindingFlags.NonPublic));
191properties.Add(typeof(Connector).GetProperty("SourceActivity", BindingFlags.Instance | BindingFlags.NonPublic));
192properties.Add(typeof(Connector).GetProperty("SourceConnectionIndex", BindingFlags.Instance | BindingFlags.NonPublic));
193properties.Add(typeof(Connector).GetProperty("SourceConnectionEdge", BindingFlags.Instance | BindingFlags.NonPublic));
194properties.Add(typeof(Connector).GetProperty("TargetActivity", BindingFlags.Instance | BindingFlags.NonPublic));
195properties.Add(typeof(Connector).GetProperty("TargetConnectionIndex", BindingFlags.Instance | BindingFlags.NonPublic));
196properties.Add(typeof(Connector).GetProperty("TargetConnectionEdge", BindingFlags.Instance | BindingFlags.NonPublic));
197properties.Add(typeof(Connector).GetProperty("Segments", BindingFlags.Instance | BindingFlags.NonPublic));
AuthoringOM\Design\ComponentSerializationService.cs (7)
100internal static PropertyInfo GetProperty(Type type, string name, BindingFlags bindingFlags)
325PropertyInfo propertyInfo = XomlComponentSerializationService.GetProperty(obj.GetType(), (this.memberList[loop] as PropertyDescriptor).Name, BindingFlags.Public | BindingFlags.Instance);
516PropertyInfo propInfo = XomlComponentSerializationService.GetProperty(this.obj.GetType(), propDesc.Name, BindingFlags.Public | BindingFlags.Instance);
635public override object GetValue(object obj, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture)
676public override void SetValue(object obj, object value, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture)
AuthoringOM\Serializer\CollectionMarkupSerializer.cs (6)
74obj.GetType().InvokeMember("Clear", BindingFlags.Public | BindingFlags.InvokeMethod | BindingFlags.Instance, null, obj, new object[] { }, CultureInfo.InvariantCulture);
85parentObj.GetType().InvokeMember("Add", BindingFlags.Public | BindingFlags.InvokeMethod | BindingFlags.Instance, null, parentObj, new object[] { childObj }, CultureInfo.InvariantCulture);
Shared\BasePropertyDescriptor.cs (15)
428foreach (MemberInfo memberInfo in ownerType.GetMembers(BindingFlags.FlattenHierarchy | BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic))
562MemberInfo memberInfo = component.GetType().GetProperty("ParameterBindings", BindingFlags.GetProperty | BindingFlags.Public | BindingFlags.Instance | BindingFlags.FlattenHierarchy | BindingFlags.ExactBinding, null, typeof(WorkflowParameterBindingCollection), new Type[] { }, new ParameterModifier[] { });
564retVal = component.GetType().InvokeMember("ParameterBindings", BindingFlags.GetProperty | BindingFlags.Public | BindingFlags.Instance | BindingFlags.FlattenHierarchy | BindingFlags.ExactBinding, null, component, new object[] { }, CultureInfo.InvariantCulture) as WorkflowParameterBindingCollection;
System.Workflow.Runtime (37)
System.WorkflowServices (44)
System\Workflow\Activities\ContractType.cs (32)
199if (this.GetMemberHelper<MethodInfo>(BindingFlags.Public | BindingFlags.Instance,
216public override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr)
274public override EventInfo GetEvent(string name, BindingFlags bindingAttr)
279public override EventInfo[] GetEvents(BindingFlags bindingAttr)
284public override FieldInfo GetField(string name, BindingFlags bindingAttr)
289public override FieldInfo[] GetFields(BindingFlags bindingAttr)
319public override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr)
362public override MemberInfo[] GetMembers(BindingFlags bindingAttr)
375public override MethodInfo[] GetMethods(BindingFlags bindingAttr)
380public override Type GetNestedType(string name, BindingFlags bindingAttr)
385public override Type[] GetNestedTypes(BindingFlags bindingAttr)
390public override PropertyInfo[] GetProperties(BindingFlags bindingAttr)
395public override object InvokeMember(string name, BindingFlags bindingFlags, Binder binder, object target, object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, string[] namedParams)
446if (this.GetMemberHelper<MethodInfo>(BindingFlags.Public | BindingFlags.Instance,
470protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
475protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
480protected override PropertyInfo GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)
535private bool FilterMember(MemberInfo memberInfo, BindingFlags bindingFlags)
578return ((((isPublic) && ((bindingFlags & BindingFlags.Public) != 0)) || ((!isPublic) && ((bindingFlags & BindingFlags.NonPublic) != 0))));
581return ((((isPublic) && ((bindingFlags & BindingFlags.Public) != 0)) || ((!isPublic) && ((bindingFlags & BindingFlags.NonPublic) != 0))) && (((isStatic) && ((bindingFlags & BindingFlags.Static) != 0)) || ((!isStatic) && ((bindingFlags & BindingFlags.Instance) != 0))));
616private T GetMemberHelper<T>(BindingFlags bindingAttr, MemberSignature memberSignature, ref T[] members)
636private T[] GetMembersHelper<T>(BindingFlags bindingAttr, ref T[] members, bool searchBase)
655if (searchBase && (bindingAttr & BindingFlags.DeclaredOnly) == 0)
658if ((bindingAttr & BindingFlags.FlattenHierarchy) == 0)
660bindingAttr &= ~BindingFlags.Static;
691private T[] GetMembersHelper<T>(BindingFlags bindingAttr, MemberSignature memberSignature, ref T[] members)
System.Xaml.Hosting (8)
System.Xml (68)
UIAutomationClient (2)
WindowsBase (38)
Base\MS\Internal\ComponentModel\AttachedPropertyMethodSelector.cs (4)
31public override MethodBase SelectMethod(BindingFlags bindingAttr, MethodBase[] match, Type[] types, ParameterModifier[] modifiers)
112public override MethodBase BindToMethod(BindingFlags bindingAttr, MethodBase[] match, ref object[] args, ParameterModifier[] modifiers, CultureInfo culture, string[] names, out object state)
121public override FieldInfo BindToField(BindingFlags bindingAttr, FieldInfo[] match, object value, CultureInfo culture)
149public override PropertyInfo SelectProperty(BindingFlags bindingAttr, PropertyInfo[] match, Type returnType, Type[] indexes, ParameterModifier[] modifiers)
XamlBuildTask (4)