109 references to DeclaredOnly
Microsoft.Activities.Build (1)
Microsoft\Activities\Build\Utilities.cs (1)
102if (type.GetMethod(InitializeComponentMethodName, BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance) != null)
mscorlib (18)
system\attribute.cs (1)
122BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly,
system\diagnostics\eventing\eventsource.cs (3)
3288MethodInfo[] methods = eventSourceType.GetMethods(BindingFlags.DeclaredOnly | BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance); 3340foreach (FieldInfo staticField in nestedType.GetFields(BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static)) 6419FieldInfo[] staticFields = enumType.GetFields(BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Static);
System\Diagnostics\Eventing\TraceLogging\Statics.cs (1)
416BindingFlags.DeclaredOnly | BindingFlags.Static | BindingFlags.NonPublic);
system\reflection\module.cs (1)
767BindingFlags.DeclaredOnly);
system\rttype.cs (9)
2304bindingFlags |= BindingFlags.DeclaredOnly; 2421if ((bindingFlags & BindingFlags.DeclaredOnly) != 0 && isInherited) 2456if (((bindingFlags & BindingFlags.DeclaredOnly) == 0) && // DeclaredOnly not present 2520bindingFlags ^= BindingFlags.DeclaredOnly; 2867bindingAttr ^= BindingFlags.DeclaredOnly; 2976bindingAttr ^= BindingFlags.DeclaredOnly; 3000bindingAttr ^= BindingFlags.DeclaredOnly; 3333bindingAttr ^= BindingFlags.DeclaredOnly; 3362bindingAttr ^= BindingFlags.DeclaredOnly;
system\runtime\remoting\soap.cs (1)
201foreach (FieldInfo field in type.GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly))
system\runtime\serialization\serializationeventscache.cs (1)
41MethodInfo[] mis = baseType.GetMethods(BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public);
system\type.cs (1)
1869internal const BindingFlags DeclaredOnlyLookup = BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
PresentationFramework (3)
src\Framework\MS\Internal\LayoutDump.cs (2)
969System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.DeclaredOnly); 977System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.DeclaredOnly);
src\Framework\System\Windows\PropertyPath.cs (1)
680result = ownerType.GetProperty(propertyName, BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public);
System (8)
compmod\system\componentmodel\ComponentResourceManager.cs (1)
169prop = t.GetProperty(propName, flags | BindingFlags.DeclaredOnly);
compmod\system\componentmodel\ReflectEventDescriptor.cs (2)
268BindingFlags bindingFlags = BindingFlags.Instance | BindingFlags.Public | BindingFlags.DeclaredOnly; 379BindingFlags bindingFlags = BindingFlags.Instance | BindingFlags.Public | BindingFlags.DeclaredOnly;
compmod\system\componentmodel\ReflectPropertyDescriptor.cs (2)
452BindingFlags bindingFlags = BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance; 804BindingFlags bindingFlags = BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.DeclaredOnly;
compmod\system\componentmodel\ReflectTypeDescriptionProvider.cs (2)
1024BindingFlags bindingFlags = BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance; 1229BindingFlags bindingFlags = BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance;
compmod\system\diagnostics\SwitchAttribute.cs (1)
72 BindingFlags.DeclaredOnly | BindingFlags.Instance |
System.Activities (1)
System\Activities\Runtime\CallbackWrapper.cs (1)
19static BindingFlags bindingFlags = BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.DeclaredOnly | BindingFlags.Static;
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\AttributeDataCache.cs (1)
30BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.NonPublic |
System.Data (4)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\AttributeDataCache.cs (1)
30BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.NonPublic |
fx\src\data\System\Data\Common\DbProviderFactories.cs (3)
72System.Reflection.FieldInfo providerInstance = providerType.GetField(Instance, System.Reflection.BindingFlags.DeclaredOnly|System.Reflection.BindingFlags.Public|System.Reflection.BindingFlags.Static); 144System.Reflection.FieldInfo providerInstance = providerType.GetField(Instance, System.Reflection.BindingFlags.DeclaredOnly | System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Static); 190System.Reflection.FieldInfo providerInstance = providerType.GetField(Instance, System.Reflection.BindingFlags.DeclaredOnly | System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Static);
System.Data.Entity (8)
System\Data\Common\EntityUtil.cs (1)
2024BindingFlags.DeclaredOnly);
System\Data\Metadata\ObjectLayer\ObjectItemAssemblyLoader.cs (1)
19protected const BindingFlags PropertyReflectionBindingFlags = BindingFlags.DeclaredOnly |
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (1)
23private const BindingFlags RootEntityPropertyReflectionBindingFlags = PropertyReflectionBindingFlags & ~BindingFlags.DeclaredOnly | BindingFlags.FlattenHierarchy;
System\Data\Objects\ELinq\Translator.cs (1)
228propertyInfo = propertyInfo.DeclaringType.GetGenericTypeDefinition().GetProperty(propertyInfo.Name, BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public);
System\Data\Objects\Internal\EntityProxyFactory.cs (3)
463FieldInfo interceptorField = proxyType.GetField(LazyLoadImplementor.GetInterceptorFieldName(member.Name), BindingFlags.DeclaredOnly | BindingFlags.Static | BindingFlags.NonPublic); 497var resetFKSetterFlagField = proxyType.GetField(ResetFKSetterFlagFieldName, BindingFlags.DeclaredOnly | BindingFlags.Static | BindingFlags.NonPublic); 541var compareByteArraysField = proxyType.GetField(CompareByteArraysFieldName, BindingFlags.DeclaredOnly | BindingFlags.Static | BindingFlags.NonPublic);
System\Data\Objects\Internal\EntityProxyTypeInfo.cs (1)
76FieldInfo entityWrapperField = proxyType.GetField(EntityWrapperFieldName, BindingFlags.DeclaredOnly | BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance);
System.Data.Linq (7)
Mapping\AttributedMetaModel.cs (4)
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)) {
Mapping\MappedMetaModel.cs (2)
95FieldInfo[] fields = type.GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly); 109PropertyInfo[] props = type.GetProperties(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly);
SqlClient\Reader\ObjectReaderCompiler.cs (1)
2163FieldInfo fi = varType.GetField("Value", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly);
System.Data.Services (5)
System\Data\Services\DataServiceConfiguration.cs (2)
948BindingFlags flags = BindingFlags.DeclaredOnly | BindingFlags.Static | BindingFlags.Public; 994BindingFlags flags = BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public;
System\Data\Services\Parsing\RequestQueryParser.cs (1)
2343BindingFlags flags = BindingFlags.Public | BindingFlags.DeclaredOnly | BindingFlags.Static | BindingFlags.Instance;
System\Data\Services\Providers\ReflectionServiceProvider.cs (2)
435foreach (PropertyInfo property in type.GetProperties(WebUtil.PublicInstanceBindingFlags | BindingFlags.DeclaredOnly)) 608bindingFlags = bindingFlags | BindingFlags.DeclaredOnly;
System.Runtime.Remoting (5)
metadata\wsdlparser.cs (3)
3621BindingFlags bFlags = BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic; 4491BindingFlags bFlags = BindingFlags.DeclaredOnly | BindingFlags.Instance | 5218BindingFlags bFlags = BindingFlags.DeclaredOnly | BindingFlags.Instance |
metadata\wsdlwriter.cs (2)
2447BindingFlags bFlags = BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public; 2515BindingFlags bFlags = BindingFlags.DeclaredOnly | BindingFlags.Instance |
System.Runtime.Serialization (3)
System\Runtime\Serialization\ClassDataContract.cs (3)
858memberInfos = type.GetMembers(BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public); 862memberInfos = type.GetMembers(BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); 1110MethodInfo[] methods = type.GetMethods(BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
System.ServiceModel (1)
System\ServiceModel\Description\TypeLoader.cs (1)
1264foreach (MemberInfo memberInfo in baseType.GetMembers(BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance))
System.Web (5)
UI\PropertyMapper.cs (1)
70flags |= BindingFlags.DeclaredOnly;
UI\TargetFrameworkUtil.cs (1)
486BindingFlags flags = BindingFlags.DeclaredOnly;
UI\Util.cs (1)
590flags |= BindingFlags.DeclaredOnly;
Util\FastPropertyAccessor.cs (1)
41private const BindingFlags _declaredFlags = BindingFlags.Instance | BindingFlags.Public | BindingFlags.DeclaredOnly;
Util\ReflectionUtil.cs (1)
32FieldInfo[] allFields = targetType.GetFields(BindingFlags.Instance | BindingFlags.DeclaredOnly | BindingFlags.NonPublic | BindingFlags.Public);
System.Web.DynamicData (1)
DynamicData\ModelProviders\DLinqTableProvider.cs (1)
62PropertyInfo[] props = type.GetProperties(BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance);
System.Web.Extensions (4)
Script\Services\WebServiceData.cs (1)
224BindingFlags flags = BindingFlags.Public | BindingFlags.DeclaredOnly;
UI\WebControls\Dynamic.cs (3)
1388BindingFlags flags = BindingFlags.Public | BindingFlags.DeclaredOnly | 1399BindingFlags flags = BindingFlags.Public | BindingFlags.DeclaredOnly | 1584BindingFlags.Public | BindingFlags.DeclaredOnly | BindingFlags.Static,
System.Web.Services (1)
System\Web\Services\Protocols\PatternMatcher.cs (1)
45MemberInfo[] memberInfos = type.GetMembers(BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance);
System.Windows.Forms (1)
winforms\Managed\System\WinForms\AxHost.cs (1)
2877PropertyInfo[] propInfos = this.GetType().GetProperties(BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance);
System.Workflow.Activities (5)
EventSinkActivity.cs (1)
177foreach (EventInfo eventInfo in this.InterfaceType.GetEvents(BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public))
InvokeMethodActivity.cs (1)
146foreach (MethodInfo method in this.InterfaceType.GetMethods(BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public))
InvokeWebService.cs (1)
337foreach (MethodInfo method in type.GetMethods(BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public))
WebServiceReceive.cs (2)
187foreach (MethodInfo method in type.GetMethods(BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public)) 195foreach (MethodInfo method in interfaceType.GetMethods(BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public))
System.Workflow.ComponentModel (19)
AuthoringOM\Compiler\TypeSystem\DesignTimeType.cs (3)
653BindingFlags supported = BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.FlattenHierarchy | BindingFlags.Instance | BindingFlags.DeclaredOnly | BindingFlags.IgnoreCase; 772if (searchBase && (bindingAttr & BindingFlags.DeclaredOnly) == 0) 851if ((bindingAttr & BindingFlags.DeclaredOnly) == 0)
AuthoringOM\DependencyProperty.cs (2)
187fieldInfo = ownerType.GetField(name + "Event", BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.DeclaredOnly | BindingFlags.GetProperty); 189fieldInfo = ownerType.GetField(name + "Property", BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.DeclaredOnly | BindingFlags.GetProperty);
AuthoringOM\Design\CustomActivityDesigner.cs (4)
410PropertyInfo[] properties = customActivityType.GetProperties(BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance); 417EventInfo[] events = customActivityType.GetEvents(BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance); 534PropertyInfo[] properties = customActivityType.GetProperties(BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance); 551EventInfo[] events = customActivityType.GetEvents(BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance);
AuthoringOM\Design\WorkflowInlining.cs (1)
448Type workflowType = Activity.GetType().InvokeMember("TargetWorkflow", BindingFlags.GetProperty | BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance | BindingFlags.FlattenHierarchy | BindingFlags.ExactBinding, null, Activity, new object[] { }, CultureInfo.InvariantCulture) as Type;
AuthoringOM\Serializer\DependencyObjectCodeDomSerializer.cs (2)
74if ((dp.IsEvent && dp.OwnerType.GetField(dp.Name + "Event", BindingFlags.Static | BindingFlags.Public | BindingFlags.DeclaredOnly) != null) || 75(!dp.IsEvent && dp.OwnerType.GetField(dp.Name + "Property", BindingFlags.Static | BindingFlags.Public | BindingFlags.DeclaredOnly) != null))
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (7)
1539if (dependencyProperty.OwnerType.GetField(dependencyProperty.Name + "Event", BindingFlags.Static | BindingFlags.Public | BindingFlags.DeclaredOnly) == null) 1541MethodInfo methodInfo = dependencyProperty.OwnerType.GetMethod("Add" + dependencyProperty.Name + "Handler", BindingFlags.Public | BindingFlags.Static | BindingFlags.DeclaredOnly); 1550if (dependencyProperty.OwnerType.GetField(dependencyProperty.Name + "Property", BindingFlags.Static | BindingFlags.Public | BindingFlags.DeclaredOnly) == null) 1552MethodInfo methodInfo = dependencyProperty.OwnerType.GetMethod("Set" + dependencyProperty.Name, BindingFlags.Public | BindingFlags.Static | BindingFlags.DeclaredOnly); 1579MethodInfo methodInfo = dependencyProperty.OwnerType.GetMethod("Add" + dependencyProperty.Name + "Handler", BindingFlags.Public | BindingFlags.Static | BindingFlags.DeclaredOnly); 1602MethodInfo methodInfo = dependencyProperty.OwnerType.GetMethod("Set" + dependencyProperty.Name, BindingFlags.Public | BindingFlags.Static | BindingFlags.DeclaredOnly); 2566ConstructorInfo[] constructors = type.GetConstructors(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly);
System.WorkflowServices (3)
System\Workflow\Activities\ContractType.cs (1)
655if (searchBase && (bindingAttr & BindingFlags.DeclaredOnly) == 0)
System\Workflow\Activities\ServiceOperationHelpers.cs (1)
313BindingFlags bindingFlags = BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.NonPublic;
System\Workflow\Activities\TypedOperationInfo.cs (1)
245BindingFlags bindingFlags = BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.NonPublic;
System.Xml (3)
System\Xml\Serialization\Models.cs (1)
131MemberInfo[] members = Type.GetMembers(BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static);
System\Xml\Serialization\XmlReflectionImporter.cs (2)
1269MemberInfo[] infos = structModel.Type.GetMember(choice.MemberName, BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static); 1272PropertyInfo info = structModel.Type.GetProperty(choice.MemberName, BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static);
WindowsBase (2)
Base\MS\Internal\ComponentModel\DependencyObjectPropertyDescriptor.cs (2)
407BindingFlags f = BindingFlags.Static | BindingFlags.Public | BindingFlags.DeclaredOnly; 574BindingFlags f = BindingFlags.Static | BindingFlags.Public | BindingFlags.DeclaredOnly;