11 types derived from PropertyInfo
mscorlib (2)
system\reflection\emit\propertybuilder.cs (1)
34public sealed class PropertyBuilder : PropertyInfo, _PropertyBuilder
system\reflection\propertyinfo.cs (1)
192internal unsafe sealed class RuntimePropertyInfo : PropertyInfo, ISerializable
PresentationFramework (1)
src\Framework\MS\Internal\Data\IndexerPropertyInfo.cs (1)
18internal class IndexerPropertyInfo : PropertyInfo
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1799private class MetadataPropertyInfo : PropertyInfo
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1799private class MetadataPropertyInfo : PropertyInfo
System.Workflow.Activities (1)
Designers\StateDesigner.cs (1)
2419internal sealed class ExtendedPropertyInfo : PropertyInfo
System.Workflow.ComponentModel (5)
AuthoringOM\Bind.cs (1)
1586internal class ActivityBindPropertyInfo : PropertyInfo
AuthoringOM\Compiler\TypeSystem\PropertyInfo.cs (1)
15internal sealed class DesignTimePropertyInfo : PropertyInfo
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (1)
944private class RTPropertyInfoWrapper : PropertyInfo
AuthoringOM\Design\ComponentSerializationService.cs (1)
594internal sealed class PropertySegmentPropertyInfo : PropertyInfo
AuthoringOM\Serializer\ExtendedPropertyInfo.cs (1)
32internal sealed class ExtendedPropertyInfo : PropertyInfo
1559 references to PropertyInfo
mscorlib (125)
system\attribute.cs (10)
28private static Attribute[] InternalGetCustomAttributes(PropertyInfo element, Type type, bool inherit) 51PropertyInfo baseProp = GetParentDefinition(element, indexParamTypes); 63private static bool InternalIsDefined(PropertyInfo element, Type attributeType, bool inherit) 79PropertyInfo baseProp = GetParentDefinition(element, indexParamTypes); 93private static PropertyInfo GetParentDefinition(PropertyInfo property, Type[] propertyParameters) 381private static Type[] GetIndexParameterTypes(PropertyInfo element) 470return InternalGetCustomAttributes((PropertyInfo)element, type, inherit); 494return InternalGetCustomAttributes((PropertyInfo)element, typeof(Attribute), inherit); 525return InternalIsDefined((PropertyInfo)element, attributeType, inherit);
system\defaultbinder.cs (9)
594public override PropertyInfo SelectProperty(BindingFlags bindingAttr,PropertyInfo[] match,Type returnType, 613PropertyInfo[] candidates = (PropertyInfo[]) match.Clone(); 780public static PropertyInfo ExactPropertyBinding(PropertyInfo[] match,Type returnType,Type[] types,ParameterModifier[] modifiers) 786PropertyInfo bestMatch = null; 1011private static int FindMostSpecificProperty(PropertyInfo cur1,PropertyInfo cur2)
system\diagnostics\eventing\eventsource.cs (1)
3185PropertyInfo p = t.GetProperty(namedArgument.MemberInfo.Name, BindingFlags.Public | BindingFlags.Instance);
System\Diagnostics\Eventing\TraceLogging\Statics.cs (5)
386public static IEnumerable<PropertyInfo> GetProperties(Type type) 388IEnumerable<PropertyInfo> result; 397public static MethodInfo GetGetMethod(PropertyInfo propInfo) 422PropertyInfo propInfo, 437public static AttributeType GetCustomAttribute<AttributeType>(PropertyInfo propInfo)
System\Diagnostics\Eventing\TraceLogging\TypeAnalysis.cs (1)
32foreach (var propertyInfo in propertyInfos)
system\reflection\binder.cs (2)
45public abstract PropertyInfo SelectProperty(BindingFlags bindingAttr,PropertyInfo[] match,
system\reflection\cominterfaces.cs (10)
83PropertyInfo GetProperty(String name, BindingFlags bindingAttr); 84PropertyInfo GetProperty(String name,BindingFlags bindingAttr,Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers); 85PropertyInfo[] GetProperties(BindingFlags bindingAttr); 114PropertyInfo GetProperty(String name, Type returnType, Type[] types,ParameterModifier[] modifiers); 115PropertyInfo GetProperty(String name, Type returnType, Type[] types); 116PropertyInfo GetProperty(String name, Type[] types); 117PropertyInfo GetProperty(String name, Type returnType); 118PropertyInfo GetProperty(String name); 119PropertyInfo[] GetProperties(); 530[TypeLibImportClassAttribute(typeof(System.Reflection.PropertyInfo))]
system\reflection\customattribute.cs (4)
381PropertyInfo[] properties = m_ctor.DeclaringType.GetProperties(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); 615PropertyInfo property = memberInfo as PropertyInfo; 663((PropertyInfo)m_memberInfo).PropertyType;
system\reflection\emit\customattributebuilder.cs (5)
40new PropertyInfo[]{}, new Object[]{}, 47PropertyInfo[] namedProperties, Object[] propertyValues) 58InitCustomAttributeBuilder(con, constructorArgs, new PropertyInfo[]{}, 65PropertyInfo[] namedProperties, Object[] propertyValues, 104PropertyInfo[] namedProperties, Object[] propertyValues,
system\reflection\emit\enumbuilder.cs (2)
193protected override PropertyInfo GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder, 199public override PropertyInfo[] GetProperties(BindingFlags bindingAttr)
system\reflection\emit\generictypeparameterbuilder.cs (2)
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(); }
system\reflection\emit\symboltype.cs (2)
473protected override PropertyInfo GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder, 479public override PropertyInfo[] GetProperties(BindingFlags bindingAttr)
system\reflection\emit\typebuilder.cs (2)
1231protected override PropertyInfo GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder, 1237public override PropertyInfo[] GetProperties(BindingFlags bindingAttr)
system\reflection\emit\typebuilderinstantiation.cs (2)
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(); }
system\reflection\ireflect.cs (3)
56PropertyInfo GetProperty( 62PropertyInfo GetProperty( 72PropertyInfo[] GetProperties(
system\reflection\memberinfo.cs (3)
95PropertyInfo property1, property2; 105else if ((property1 = left as PropertyInfo) != null && (property2 = right as PropertyInfo) != null)
system\reflection\memberinfoserializationholder.cs (2)
138PropertyInfo[] properties = m_reflectedType.GetMember(m_memberName, MemberTypes.Property, bindingFlags) as PropertyInfo[];
system\reflection\propertyinfo.cs (4)
38public static bool operator ==(PropertyInfo left, PropertyInfo right) 51public static bool operator !=(PropertyInfo left, PropertyInfo right)
system\reflection\RuntimeReflectionExtensions.cs (2)
22public static IEnumerable<PropertyInfo> GetRuntimeProperties(this Type type) 45public static PropertyInfo GetRuntimeProperty(this Type type, string name)
system\reflection\typedelegator.cs (2)
146protected override PropertyInfo GetPropertyImpl(String name,BindingFlags bindingAttr,Binder binder, 155public override PropertyInfo[] GetProperties(BindingFlags bindingAttr)
system\reflection\typeinfo.cs (2)
115public virtual PropertyInfo GetDeclaredProperty(String name) 175public virtual IEnumerable<PropertyInfo> DeclaredProperties
system\rttype.cs (13)
2183private unsafe static PropertyInfo GetPropertyInfo(RuntimeType reflectedType, int tkProperty) 2852private ListBuilder<PropertyInfo> GetPropertyCandidates( 2869ListBuilder<PropertyInfo> candidates = new ListBuilder<PropertyInfo>(cache.Length); 3087public override PropertyInfo[] GetProperties(BindingFlags bindingAttr) 3122ListBuilder<PropertyInfo> properties = GetPropertyCandidates(null, bindingAttr, null, false); 3280protected override PropertyInfo GetPropertyImpl( 3286ListBuilder<PropertyInfo> candidates = GetPropertyCandidates(name, bindingAttr, types, false); 3296PropertyInfo firstCandidate = candidates[0]; 3464ListBuilder<PropertyInfo> properties = new ListBuilder<PropertyInfo>(); 4879PropertyInfo[] semiFinalists = GetMember(name, MemberTypes.Property, bindingFlags) as PropertyInfo[];
system\runtime\interopservices\ComTypes\iexpando.cs (1)
28PropertyInfo AddProperty(String name);
system\runtime\interopservices\ComTypes\ireflect.cs (3)
43PropertyInfo GetProperty( 47PropertyInfo GetProperty( 55PropertyInfo[] GetProperties(
system\runtime\interopservices\expando\iexpando.cs (1)
32PropertyInfo AddProperty(String name);
system\runtime\interopservices\tceadaptergen\eventproviderwriter.cs (4)
256PropertyInfo ArrayListItemProperty = typeof(ArrayList).GetProperty( "Item" ); 262PropertyInfo ArrayListSizeProperty = typeof(ArrayList).GetProperty( "Count" ); 591PropertyInfo ArrayListItemProperty = typeof(ArrayList).GetProperty( "Item" ); 597PropertyInfo ArrayListSizeProperty = typeof(ArrayList).GetProperty( "Count" );
system\runtime\interopservices\tceadaptergen\tceadaptergenerator.cs (4)
93PropertyInfo[] props = type.GetProperties(); 95foreach(PropertyInfo prop in props) 119PropertyInfo[] props = type.GetProperties(); 121foreach(PropertyInfo prop in props)
system\runtime\interopservices\ucomiexpando.cs (1)
30PropertyInfo AddProperty(String name);
system\runtime\interopservices\ucomireflect.cs (3)
44PropertyInfo GetProperty( 48PropertyInfo GetProperty( 56PropertyInfo[] GetProperties(
system\runtime\interopservices\windowsruntime\custompropertyimpl.cs (2)
26private PropertyInfo m_property; 31public CustomPropertyImpl(PropertyInfo propertyInfo)
system\runtime\interopservices\windowsruntime\icustompropertyprovider.cs (2)
57PropertyInfo propertyInfo = target.GetType().GetProperty( 89PropertyInfo propertyInfo = target.GetType().GetProperty(
system\runtime\serialization\formatters\binary\binaryobjectinfo.cs (4)
408else if (objMember is PropertyInfo) 410objectType = ((PropertyInfo)objMember).PropertyType; 880else if (objMember is PropertyInfo) 882objectType = ((PropertyInfo)objMember).PropertyType;
system\type.cs (12)
645public PropertyInfo GetProperty(String name,BindingFlags bindingAttr,Binder binder, 656public PropertyInfo GetProperty(String name, Type returnType, Type[] types,ParameterModifier[] modifiers) 666public PropertyInfo GetProperty(String name, BindingFlags bindingAttr) 674public PropertyInfo GetProperty(String name, Type returnType, Type[] types) 684public PropertyInfo GetProperty(String name, Type[] types) 694public PropertyInfo GetProperty(String name, Type returnType) 704internal PropertyInfo GetProperty(String name, BindingFlags bindingAttr, Type returnType) 714public PropertyInfo GetProperty(String name) 722protected abstract PropertyInfo GetPropertyImpl(String name, BindingFlags bindingAttr,Binder binder, 729abstract public PropertyInfo[] GetProperties(BindingFlags bindingAttr); 730public PropertyInfo[] GetProperties() 797PropertyInfo[] p = null;
PresentationBuildTasks (58)
Base\System\Windows\Markup\TypeConverterHelper.cs (1)
49MemberInfo memberInfo = dpOrPiOrMi as PropertyInfo;
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (3)
1779if (desc.MemberInfo is FieldInfo || desc.MemberInfo is PropertyInfo) 2722param1 = new CodeParameterDeclarationExpression(typeof(PropertyInfo), PROPINFO); 3059(memberInfo.DeclaringType.IsAssignableFrom(_ccRoot.ElementType) && (memberInfo is PropertyInfo)));
BuildTasks\Ms\Internal\MarkupCompiler\ParserExtension.cs (1)
367PropertyInfo pi = KnownTypes.Types[(int)KnownElements.Application].GetProperty(localAttribName);
Framework\System\Windows\Markup\BamlMapTable.cs (1)
1517if (memberInfo is PropertyInfo)
Framework\System\Windows\Markup\BamlRecords.cs (7)
4952Debug.Assert((propertyMember is MethodInfo) || (propertyMember is PropertyInfo) 5001return PropertyMember as PropertyInfo; 5022if (arr[0] is PropertyInfo) 5024return (PropertyInfo)arr[0]; 5026else if (arr[1] is PropertyInfo) 5028return (PropertyInfo)arr[1]; 5032return arr[2] as PropertyInfo;
Framework\System\Windows\Markup\ParserContext.cs (2)
879PropertyInfo[] propertyInfo = extensionType.GetProperties(BindingFlags.Public | BindingFlags.Instance); 883foreach (PropertyInfo property in propertyInfo)
Framework\System\Windows\Markup\StyleXamlParser.cs (2)
450PropertyInfo pi = memberInfo as PropertyInfo;
Framework\System\Windows\Markup\TemplateXamlParser.cs (2)
506PropertyInfo pi = memberInfo as PropertyInfo;
Framework\System\Windows\Markup\XamlNodes.cs (2)
460internal PropertyInfo PropInfo 462get { return _propertyMember as PropertyInfo;}
Framework\System\Windows\Markup\XamlReaderHelper.cs (20)
667PropertyInfo contentPropertyInfo = CurrentContext.ContentPropertyInfo; 688PropertyInfo contentPropertyInfo = (PropertyInfo)propertyDynamicObject; 1528internal PropertyInfo ContentPropertyInfo 1645PropertyInfo _contentPropertyInfo; 2202private PropertyInfo HandleElementScopedAttributes( 2211PropertyInfo xmlLangProperty = null; 3198PropertyInfo propInfo = dynamicObject as PropertyInfo; 3498PropertyInfo propertyMember = parentType.GetProperty(propertyName); 3517PropertyInfo propertyInfo = propertyMember as PropertyInfo; 3881PropertyInfo pi = ParentContext.ContentPropertyInfo; 3909private void CheckAllowedProperty(PropertyInfo pi, string propName) 4012PropertyInfo pi = propertyMember as PropertyInfo; 4534CurrentContext.ContentPropertyInfo = (PropertyInfo)propertyDynamicObject; 4577PropertyInfo pi = propertyDynamicObject as PropertyInfo; 4921PropertyInfo propertyInfo = contentWrapper.GetProperty( contentPropertyName );
Framework\System\Windows\Markup\XamlTypeMapper.cs (17)
1072internal bool IsAllowedPropertySet(PropertyInfo pi) 1080private bool IsAllowedPropertyGet(PropertyInfo pi, bool checkProtected) 1088internal bool IsAllowedPropertyGet(PropertyInfo pi) 1894internal PropertyInfo GetXmlLangProperty( 1991private PropertyInfo PropertyInfoFromName( 1998PropertyInfo info = null; 2040PropertyInfo[] infos = ownerType.GetProperties( 2142PropertyInfo propertyInfo = propertyMember as PropertyInfo; 2187PropertyInfo propertyInfo = propertyMember as PropertyInfo; 2434PropertyInfo pi = mi as PropertyInfo; 4236PropertyInfo dpInfo, 4306PropertyInfo dpInfo, 4320public PropertyInfo PropInfo; 4426public PropertyInfo XmlLangProperty;
PresentationCore (6)
Core\CSharp\System\Windows\Diagnostics\XamlSourceInfoHelper.cs (3)
43private static PropertyInfo s_sourceBamlUriProperty; 44private static PropertyInfo s_elementLineNumberProperty; 45private static PropertyInfo s_elementLinePositionProperty;
Core\CSharp\System\Windows\Input\CursorConverter.cs (3)
56private PropertyInfo[] GetProperties() 71PropertyInfo[] infoArray1 = this.GetProperties(); 74PropertyInfo info1 = infoArray1[num1];
PresentationFramework (113)
src\Framework\MS\Internal\Data\IndexedEnumerable.cs (5)
512PropertyInfo pi = defaultMembers[i] as PropertyInfo; 530PropertyInfo pi = srcType.GetProperty("Count", typeof(int)); 721private PropertyInfo _reflectedCount; 722private PropertyInfo _reflectedItemAt;
src\Framework\MS\Internal\Data\PropertyPathWorker.cs (17)
125PropertyInfo pi; 236PropertyInfo pi; 340PropertyInfo pi; 538internal static bool IsIndexedProperty(PropertyInfo pi) 699PropertyInfo oldPI; 869PropertyInfo newPI; 1136PropertyInfo pi1; 1204PropertyInfo pi = defaultMembers[jj] as PropertyInfo; 1329PropertyInfo[] properties = type.GetProperties(BindingFlags.Public | BindingFlags.Instance | BindingFlags.FlattenHierarchy); 1333foreach (PropertyInfo pi in properties) 1353private bool MatchIndexerParameters(PropertyInfo pi, IndexerParameterInfo[] aryInfo, object[] args, bool isIList) 1592void SetPropertyInfo(object info, out PropertyInfo pi, out PropertyDescriptor pd, out DependencyProperty dp, out DynamicPropertyAccessor dpa) 1601pi = info as PropertyInfo; 1614PropertyInfo pi; 1642bool IsPropertyReadOnly(object item, PropertyInfo pi) 1757PropertyInfo pi;
src\Framework\MS\Internal\Data\XDeferredAxisSource.cs (2)
83PropertyInfo pi = (aryMembers.Length > 0) ? aryMembers[0] as PropertyInfo : null;
src\Framework\MS\Internal\Helper.cs (3)
626PropertyInfo propertyInfo = targetMember as PropertyInfo; 665Debug.Assert(targetMember is PropertyInfo || targetMember is MethodInfo,
src\Framework\MS\Internal\Interop\InternalDispatchObject.cs (3)
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)
src\Framework\MS\Internal\LayoutDump.cs (4)
910System.Reflection.PropertyInfo prop = paraClientType.GetProperty("Visual", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic); 935System.Reflection.PropertyInfo prop = type.GetProperty("ColumnCount"); 968System.Reflection.PropertyInfo propOfColumnIndex = typeOfCell.GetProperty("ColumnIndex", 976System.Reflection.PropertyInfo propOfRowIndex = typeOfCell.GetProperty("RowIndex",
src\Framework\MS\Internal\SystemDataHelper.cs (1)
82PropertyInfo nullProperty = type.GetProperty("Null", BindingFlags.Static | BindingFlags.Public | BindingFlags.FlattenHierarchy);
src\Framework\MS\Internal\TraceData.cs (2)
293PropertyInfo pi = accessor as PropertyInfo;;
src\Framework\System\Windows\Controls\DataGridAutoGeneratingColumnEventArgs.cs (1)
113typeof(PropertyInfo).IsAssignableFrom(value.GetType()),
src\Framework\System\Windows\Controls\DataGridColumn.cs (2)
1228PropertyInfo pi = itemProperty.Descriptor as PropertyInfo;
src\Framework\System\Windows\Data\CollectionView.cs (2)
1508PropertyInfo pi; 1514else if ((pi = property as PropertyInfo) != null)
src\Framework\System\Windows\Input\Command\CommandConverter.cs (1)
151PropertyInfo propertyInfo = ownerType.GetProperty(localName, BindingFlags.Public | BindingFlags.Static);
src\Framework\System\Windows\Input\Command\CommandValueSerializer.cs (1)
49PropertyInfo propertyInfo = ownerType.GetProperty(localName, BindingFlags.Public | BindingFlags.Static);
src\Framework\System\Windows\Markup\Baml2006\WpfXamlMember.cs (3)
56PropertyInfo property, 132PropertyInfo underlyingProperty = UnderlyingMember as PropertyInfo;
src\Framework\System\Windows\Markup\Baml2006\WpfXamlType.cs (2)
423PropertyInfo propertyInfo = memberFromBase.UnderlyingMember as PropertyInfo;
src\Framework\System\Windows\Markup\BamlMapTable.cs (1)
1517if (memberInfo is PropertyInfo)
src\Framework\System\Windows\Markup\BamlReader.cs (1)
1031PropertyInfo[] infos = attrInfo.OwnerType.GetProperties(
src\Framework\System\Windows\Markup\BamlRecordReader.cs (11)
2039PropertyInfo pi = dpOrPi as PropertyInfo; 3698PropertyInfo propertyInfo = attribInfo.PropInfo; 3860if (memberInfo is PropertyInfo) 3862PropertyInfo propertyInfo = (PropertyInfo)memberInfo; 5024PropertyInfo pi = contentProperty as PropertyInfo; 5226PropertyInfo pi = PiOrAttribInfo as PropertyInfo; 5825public PropertyInfo PropertyInfo
src\Framework\System\Windows\Markup\BamlRecords.cs (9)
4919PropertyInfo propInfo = PropInfo; 4952Debug.Assert((propertyMember is MethodInfo) || (propertyMember is PropertyInfo) 5022if (arr[0] is PropertyInfo) 5024return (PropertyInfo)arr[0]; 5026else if (arr[1] is PropertyInfo) 5028return (PropertyInfo)arr[1]; 5032return arr[2] as PropertyInfo; 5125internal PropertyInfo PropInfo 5202PropertyInfo _pi = null;
src\Framework\System\Windows\Markup\BamlWriter.cs (4)
667PropertyInfo pi = dpOrPi as PropertyInfo; 1157PropertyInfo mostDerived = null; 1159foreach(PropertyInfo pi in infos)
src\Framework\System\Windows\Markup\ParserContext.cs (2)
879PropertyInfo[] propertyInfo = extensionType.GetProperties(BindingFlags.Public | BindingFlags.Instance); 883foreach (PropertyInfo property in propertyInfo)
src\Framework\System\Windows\Markup\XamlTypeMapper.cs (19)
918as PropertyInfo; 1195internal bool IsAllowedPropertySet(PropertyInfo pi) 1203internal bool IsAllowedPropertyGet(PropertyInfo pi) 1211static internal bool IsAllowedPropertySet(PropertyInfo pi, bool allowProtected, out bool isPublic) 1224static private bool IsAllowedPropertyGet(PropertyInfo pi, bool allowProtected, out bool isPublic) 1894internal PropertyInfo GetXmlLangProperty( 1991private PropertyInfo PropertyInfoFromName( 1998PropertyInfo info = null; 2040PropertyInfo[] infos = ownerType.GetProperties( 2142PropertyInfo propertyInfo = propertyMember as PropertyInfo; 2187PropertyInfo propertyInfo = propertyMember as PropertyInfo; 2901internal static object GetInternalPropertyValue(ParserContext pc, object rootElement, PropertyInfo pi, object target) 2940internal static bool SetInternalPropertyValue(ParserContext pc, object rootElement, PropertyInfo pi, object target, object value) 4236PropertyInfo dpInfo, 4306PropertyInfo dpInfo, 4320public PropertyInfo PropInfo; 4426public PropertyInfo XmlLangProperty;
src\Framework\System\Windows\Media\Animation\Storyboard.cs (2)
775else if( propertyAccessor is PropertyInfo ) 777return ((PropertyInfo)propertyAccessor).Name;
src\Framework\System\Windows\PropertyPath.cs (8)
175PropertyInfo pi; 197out DependencyProperty dp, out PropertyInfo pi, out PropertyDescriptor pd, out DynamicObjectAccessor doa) 205else if ((pi = accessor as PropertyInfo) != null) 655private PropertyInfo GetPropertyHelper(Type ownerType, string propertyName) 657PropertyInfo result = null; 939accessor is PropertyInfo || 948PropertyInfo pi; 954else if ((pi = accessor as PropertyInfo) != null)
src\Framework\System\Windows\PropertyPathConverter.cs (1)
219PropertyInfo pi;
src\Framework\System\Windows\ThemeDictionaryExtension.cs (4)
97PropertyInfo propertyInfo = targetProperty as PropertyInfo; 171private static PropertyInfo _sourceProperty; 173private static PropertyInfo SourceProperty
src\Shared\MS\Internal\WindowsRuntime\ReflectionHelper.cs (2)
388PropertyInfo p = type.GetProperty(propertyName); 427PropertyInfo p = type.GetProperty(propertyName, BindingFlags.Static);
System (21)
compmod\system\componentmodel\ComponentResourceManager.cs (1)
159PropertyInfo prop = null;
compmod\system\componentmodel\design\serialization\InstanceDescriptor.cs (5)
76else if (member is PropertyInfo) { 77PropertyInfo pi = (PropertyInfo)member; 143else if (member is PropertyInfo) { 144return ((PropertyInfo)member).GetValue(null, translatedArguments);
compmod\system\componentmodel\ReflectPropertyDescriptor.cs (3)
86PropertyInfo propInfo; // the property info 126public ReflectPropertyDescriptor(Type componentClass, string name, Type type, PropertyInfo propInfo, MethodInfo getMethod, MethodInfo setMethod, Attribute[] attrs) : this(componentClass, name, type, attrs) { 463PropertyInfo p = t.GetProperty(name, bindingFlags, null, PropertyType, new Type[0], null);
compmod\system\componentmodel\ReflectTypeDescriptionProvider.cs (2)
1239PropertyInfo[] propertyInfos = type.GetProperties(bindingFlags); 1246PropertyInfo propertyInfo = propertyInfos[idx];
net\System\Net\_AutoWebProxyScriptHelper.cs (4)
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) { 226return new PropertyInfo[0];
sys\system\configuration\ApplicationSettingsBase.cs (6)
408private SettingsProperty CreateSetting(PropertyInfo propInfo) { 496PropertyInfo[] properties = SettingsFilter(type.GetProperties(BindingFlags.Instance | BindingFlags.Public)); 712private PropertyInfo[] SettingsFilter(PropertyInfo[] allProps) { 728return (PropertyInfo[]) settingProps.ToArray(typeof(PropertyInfo));
System.Activities (33)
System\Activities\Debugger\XamlMemberExtensions.cs (2)
52PropertyInfo propertyInfo = originalXamlMember.UnderlyingMember as PropertyInfo;
System\Activities\Expressions\ExpressionServices.cs (8)
731if (memberExpression != null && memberExpression.Member is PropertyInfo) 733PropertyInfo property = memberExpression.Member as PropertyInfo; 755if (member.Member is PropertyInfo) 757PropertyInfo property = member.Member as PropertyInfo; 1045if (memberExpressionBody.Member is PropertyInfo) 1121if (memberExpressionBody.Member is PropertyInfo)
System\Activities\Expressions\PropertyReference.cs (4)
15PropertyInfo propertyInfo; 110PropertyInfo propertyInfo; 115public PropertyLocation(PropertyInfo propertyInfo, Func<object, object[], object> getFunc, 175internal PropertyInfo SerializedPropertyInfo
System\Activities\Expressions\PropertyValue.cs (1)
45PropertyInfo propertyInfo = null;
System\Activities\Expressions\ValueTypePropertyReference.cs (4)
17PropertyInfo propertyInfo; 112PropertyInfo propertyInfo; 117public PropertyLocation(PropertyInfo propertyInfo, Func<object, object[], object> getFunc, 173internal PropertyInfo SerializedPropertyInfo
System\Activities\ExpressionUtilities.cs (9)
106PropertyInfo propertyInfo = (PropertyInfo)memberExpression.Member; 732PropertyInfo propertyInfo; 741this.propertyInfo = (PropertyInfo)memberExpression.Member; 782PropertyInfo propertyInfo; 786public PropertyLocation(PropertyInfo propertyInfo, object owner, Location parent) 856internal PropertyInfo SerializedPropertyInfo 1604PropertyInfo propertyInfo = memberInfo as PropertyInfo;
System\Activities\Statements\MethodResolver.cs (2)
554public override PropertyInfo SelectProperty(BindingFlags bindingAttr, PropertyInfo[] match, Type returnType, Type[] indexes, ParameterModifier[] modifiers)
System\Activities\XamlIntegration\ActivityXamlServices.cs (1)
513PropertyInfo schemaContextPropertyInfo = schemaContextType.GetProperty("SchemaContext",
System\Activities\XamlIntegration\FuncFactory.cs (2)
59PropertyInfo propertyInfo = provideValueService.TargetProperty as PropertyInfo;
System.Activities.Core.Presentation (4)
System\Activities\Core\Presentation\FlowchartDesigner.Container.cs (1)
530foreach (PropertyInfo propertyInfo in flowElementType.GetProperties())
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (1)
261PropertyInfo nodesProperty = type.GetProperty("Nodes");
System\ServiceModel\Activities\Presentation\TypeToTreeConverter.cs (2)
31else if (value is PropertyInfo) 33type = ((PropertyInfo)value).PropertyType;
System.Activities.Presentation (49)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ActivityTemplateFactoryBuilderXamlMembers.cs (4)
25PropertyInfo implementationPropertyInfo = typeof(ActivityTemplateFactory).GetProperty(ImplementationPropertyName, BindingFlags.Instance | BindingFlags.NonPublic); 32PropertyInfo namePropertyInfo = typeof(ActivityTemplateFactoryBuilder).GetProperty(NamePropertyName); 39PropertyInfo namePropertyInfo = typeof(ActivityTemplateFactoryBuilder).GetProperty(TargetTypePropertyName); 46PropertyInfo implementationPropertyInfo = typeof(ActivityTemplateFactoryBuilder).GetProperty(ImplementationPropertyName);
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\MultiTargetingTypeResolver.cs (4)
31PropertyInfo[] properties = type.GetProperties(BindingFlags.Public | BindingFlags.Instance | BindingFlags.SetProperty); 32PropertyInfo[] targetProperties = reflectionType.GetProperties(BindingFlags.Public | BindingFlags.Instance | BindingFlags.SetProperty); 40foreach (PropertyInfo propertyInfo in properties) 43foreach (PropertyInfo targetProperty in targetProperties)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\XamlObjectReaderWithSequence.cs (2)
129PropertyInfo property = this.xamlMember.UnderlyingMember as PropertyInfo;
System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateUtilities.cs (11)
21PropertyInfo[] properties = type.GetProperties(BindingFlags.Public | BindingFlags.Instance); 23foreach (PropertyInfo property in properties) 68foreach (PropertyInfo property in GetPropertiesByHeuristics(activity.ItemType)) 82private static List<PropertyInfo> GetPropertiesByHeuristics(Type activityType) 84List<PropertyInfo> result = new List<PropertyInfo>(); 86PropertyInfo[] properties = activityType.GetProperties(BindingFlags.Public | BindingFlags.Instance); 87foreach (PropertyInfo property in properties) 120private class PropertyInfoComparer : IComparer<PropertyInfo> 122public int Compare(PropertyInfo x, PropertyInfo y)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\AttributeDataCache.cs (2)
236PropertyInfo propInfo = info as PropertyInfo;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (16)
341PropertyInfo info = null; 346info = infos[0] as PropertyInfo; 1365public override PropertyInfo[] GetProperties(BindingFlags bindingAttr) 1367PropertyInfo[] infos = _baseReflectionType.GetProperties(bindingAttr); 1374protected override PropertyInfo GetPropertyImpl(string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) 1376PropertyInfo info; 1659PropertyInfo p; 1666else if ((p = info as PropertyInfo) != null) 1743private PropertyInfo MergeProperty(PropertyInfo info) 1759PropertyInfo newInfo = new MetadataPropertyInfo(info, this); 1765info = (PropertyInfo)cache; 1775private PropertyInfo[] MergeProperties(PropertyInfo[] infos) 1802private PropertyInfo _info; 1806internal MetadataPropertyInfo(PropertyInfo info, MetadataType type)
System.Activities.Presentation\System\Activities\Presentation\ExpressionHelper.cs (2)
56PropertyInfo literalValueProperty = expressionType.GetProperty("Value"); 78PropertyInfo variableProperty = expression.GetType().GetProperty("Variable");
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (5)
1024PropertyInfo isReadOnlyProperty; 1025PropertyInfo countProperty; 1026PropertyInfo indexingProperty; 1031PropertyInfo keyProperty; 1032PropertyInfo valueProperty;
System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (2)
466PropertyInfo[] properties = type.GetProperties(); 467foreach (PropertyInfo property in properties)
System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (1)
27static PropertyInfo parentPropertyInfo;
System.ComponentModel.DataAnnotations (3)
DataAnnotations\CompareAttribute.cs (1)
39PropertyInfo otherPropertyInfo = validationContext.ObjectType.GetProperty(OtherProperty);
DataAnnotations\LocalizableString.cs (1)
114PropertyInfo property = this._resourceType.GetProperty(this._propertyValue);
DataAnnotations\ValidationAttribute.cs (1)
240var property = this._errorMessageResourceType.GetProperty(this._errorMessageResourceName, BindingFlags.Public | BindingFlags.Static | BindingFlags.NonPublic);
System.Configuration (5)
System\Configuration\ConfigurationElement.cs (4)
739foreach (PropertyInfo propertyInformation in type.GetProperties(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance)) { 829foreach (PropertyInfo propertyInformation in type.GetProperties(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance)) { 839private static ConfigurationProperty CreateConfigurationPropertyFromAttributes(PropertyInfo propertyInformation) { 976foreach (PropertyInfo pi in GetType().GetProperties()) {
System\Configuration\ConfigurationProperty.cs (1)
79internal ConfigurationProperty(PropertyInfo info) {
System.Core (61)
Microsoft\Scripting\Ast\Expression.cs (4)
355PropertyInfo prop = (PropertyInfo)memberInfo; 399PropertyInfo prop = (PropertyInfo)member.Member;
Microsoft\Scripting\Ast\Expression.DebuggerProxy.cs (1)
185public PropertyInfo Indexer { get { return _node.Indexer; } }
Microsoft\Scripting\Ast\IndexExpression.cs (20)
42private readonly PropertyInfo _indexer; 47PropertyInfo indexer, 89/// Gets the <see cref="PropertyInfo"/> for the property if the expression represents an indexed property, returns null otherwise. 91public PropertyInfo Indexer { 151public static IndexExpression MakeIndex(Expression instance, PropertyInfo indexer, IEnumerable<Expression> arguments) { 217PropertyInfo pi = FindInstanceProperty(instance.Type, propertyName, arguments); 226private static PropertyInfo FindInstanceProperty(Type type, string propertyName, Expression[] arguments) { 229PropertyInfo pi = FindProperty(type, propertyName, arguments, flags); 259private static PropertyInfo FindProperty(Type type, string propertyName, Expression[] arguments, BindingFlags flags) { 264PropertyInfo pi; 265var propertyInfos = members.Map(t => (PropertyInfo)t); 275private static int FindBestProperty(IEnumerable<PropertyInfo> properties, Expression[] args, out PropertyInfo property) { 278foreach (PropertyInfo pi in properties) { 292private static bool IsCompatible(PropertyInfo pi, Expression[] args) { 329/// <param name="indexer">The <see cref="PropertyInfo"/> that represents the property to index.</param> 332public static IndexExpression Property(Expression instance, PropertyInfo indexer, params Expression[] arguments) { 340/// <param name="indexer">The <see cref="PropertyInfo"/> that represents the property to index.</param> 343public static IndexExpression Property(Expression instance, PropertyInfo indexer, IEnumerable<Expression> arguments) { 354private static void ValidateIndexedProperty(Expression instance, PropertyInfo property, ref ReadOnlyCollection<Expression> argList) {
Microsoft\Scripting\Ast\MemberAssignment.cs (3)
84/// <param name="propertyAccessor">The <see cref="PropertyInfo"/> for the property which is being assigned to.</param> 98PropertyInfo pi = member as PropertyInfo;
Microsoft\Scripting\Ast\MemberExpression.cs (13)
65PropertyInfo pi = (PropertyInfo)member; 122private readonly PropertyInfo _property; 123public PropertyExpression(Expression expression, PropertyInfo member) 220PropertyInfo pi = expression.Type.GetProperty(propertyName, BindingFlags.Instance | BindingFlags.Public | BindingFlags.IgnoreCase | BindingFlags.FlattenHierarchy); 241PropertyInfo pi = type.GetProperty(propertyName, BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.IgnoreCase | BindingFlags.FlattenHierarchy); 258public static MemberExpression Property(Expression expression, PropertyInfo property) { 291private static PropertyInfo GetProperty(MethodInfo mi) { 295PropertyInfo[] props = type.GetProperties(flags); 296foreach (PropertyInfo pi in props) { 332PropertyInfo pi = expression.Type.GetProperty(propertyOrFieldName, BindingFlags.Instance | BindingFlags.Public | BindingFlags.IgnoreCase | BindingFlags.FlattenHierarchy); 361PropertyInfo pi = member as PropertyInfo;
Microsoft\Scripting\Ast\MemberMemberBinding.cs (4)
106/// the Member property set to the <see cref="PropertyInfo"/> that represents the property accessed in <paramref name="propertyAccessor"/>, 121/// the Member property set to the <see cref="PropertyInfo"/> that represents the property accessed in <paramref name="propertyAccessor"/>, 132PropertyInfo pi = member as PropertyInfo;
Microsoft\Scripting\Ast\NewExpression.cs (3)
308PropertyInfo pi = member as PropertyInfo; 329PropertyInfo prop = GetProperty(method);
Microsoft\Scripting\Compiler\LambdaCompiler.Address.cs (3)
244if (node.Member.MemberType != MemberTypes.Property || !((PropertyInfo)node.Member).CanWrite) { 258PropertyInfo pi = (PropertyInfo)node.Member;
Microsoft\Scripting\Compiler\LambdaCompiler.Expressions.cs (8)
674EmitCall(objectType, ((PropertyInfo)member).GetSetMethod(true)); 710EmitCall(objectType, ((PropertyInfo)member).GetGetMethod(true)); 803PropertyInfo pi = binding.Member as PropertyInfo; 814if (binding.Member is PropertyInfo && type.IsValueType) { 827if (binding.Member is PropertyInfo && type.IsValueType) { 913PropertyInfo pi = member as PropertyInfo;
Microsoft\Scripting\Compiler\StackSpiller.Bindings.cs (2)
96if (target.Type.IsValueType && _binding.Member is System.Reflection.PropertyInfo) { 166if (target.Type.IsValueType && _binding.Member is System.Reflection.PropertyInfo) {
System.Data (54)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ActivityTemplateFactoryBuilderXamlMembers.cs (4)
25PropertyInfo implementationPropertyInfo = typeof(ActivityTemplateFactory).GetProperty(ImplementationPropertyName, BindingFlags.Instance | BindingFlags.NonPublic); 32PropertyInfo namePropertyInfo = typeof(ActivityTemplateFactoryBuilder).GetProperty(NamePropertyName); 39PropertyInfo namePropertyInfo = typeof(ActivityTemplateFactoryBuilder).GetProperty(TargetTypePropertyName); 46PropertyInfo implementationPropertyInfo = typeof(ActivityTemplateFactoryBuilder).GetProperty(ImplementationPropertyName);
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\MultiTargetingTypeResolver.cs (4)
31PropertyInfo[] properties = type.GetProperties(BindingFlags.Public | BindingFlags.Instance | BindingFlags.SetProperty); 32PropertyInfo[] targetProperties = reflectionType.GetProperties(BindingFlags.Public | BindingFlags.Instance | BindingFlags.SetProperty); 40foreach (PropertyInfo propertyInfo in properties) 43foreach (PropertyInfo targetProperty in targetProperties)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\XamlObjectReaderWithSequence.cs (2)
129PropertyInfo property = this.xamlMember.UnderlyingMember as PropertyInfo;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateUtilities.cs (11)
21PropertyInfo[] properties = type.GetProperties(BindingFlags.Public | BindingFlags.Instance); 23foreach (PropertyInfo property in properties) 68foreach (PropertyInfo property in GetPropertiesByHeuristics(activity.ItemType)) 82private static List<PropertyInfo> GetPropertiesByHeuristics(Type activityType) 84List<PropertyInfo> result = new List<PropertyInfo>(); 86PropertyInfo[] properties = activityType.GetProperties(BindingFlags.Public | BindingFlags.Instance); 87foreach (PropertyInfo property in properties) 120private class PropertyInfoComparer : IComparer<PropertyInfo> 122public int Compare(PropertyInfo x, PropertyInfo y)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\AttributeDataCache.cs (2)
236PropertyInfo propInfo = info as PropertyInfo;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (16)
341PropertyInfo info = null; 346info = infos[0] as PropertyInfo; 1365public override PropertyInfo[] GetProperties(BindingFlags bindingAttr) 1367PropertyInfo[] infos = _baseReflectionType.GetProperties(bindingAttr); 1374protected override PropertyInfo GetPropertyImpl(string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) 1376PropertyInfo info; 1659PropertyInfo p; 1666else if ((p = info as PropertyInfo) != null) 1743private PropertyInfo MergeProperty(PropertyInfo info) 1759PropertyInfo newInfo = new MetadataPropertyInfo(info, this); 1765info = (PropertyInfo)cache; 1775private PropertyInfo[] MergeProperties(PropertyInfo[] infos) 1802private PropertyInfo _info; 1806internal MetadataPropertyInfo(PropertyInfo info, MetadataType type)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ExpressionHelper.cs (2)
56PropertyInfo literalValueProperty = expressionType.GetProperty("Value"); 78PropertyInfo variableProperty = expression.GetType().GetProperty("Variable");
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (5)
1024PropertyInfo isReadOnlyProperty; 1025PropertyInfo countProperty; 1026PropertyInfo indexingProperty; 1031PropertyInfo keyProperty; 1032PropertyInfo valueProperty;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (2)
466PropertyInfo[] properties = type.GetProperties(); 467foreach (PropertyInfo property in properties)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (1)
27static PropertyInfo parentPropertyInfo;
fx\src\data\System\Data\CodeGen\datacache.cs (2)
100System.Reflection.PropertyInfo[] props = typeof(DataRow).GetProperties(); 101foreach(System.Reflection.PropertyInfo p in props) {
fx\src\data\System\Data\Common\SQLTypes\SqlUDTStorage.cs (1)
46System.Reflection.PropertyInfo propInfo = type.GetProperty("Null", System.Reflection.BindingFlags.Public |System.Reflection.BindingFlags.Static);
fx\src\data\System\Data\DataColumn.cs (1)
676System.Reflection.PropertyInfo propInfo = this.dataType.GetProperty("Null", System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Static);
fx\src\data\System\Data\Sql\sqlnorm.cs (1)
105PropertyInfo pi = t.GetProperty("Null",
System.Data.Entity (181)
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (1)
1820foreach (PropertyInfo pi in typeof(TInstance).GetProperties(BindingFlags.Public | BindingFlags.Instance))
System\Data\Common\EntityUtil.cs (3)
2004static internal PropertyInfo GetTopProperty(Type t, string propertyName) 2016static internal PropertyInfo GetTopProperty(ref Type t, string propertyName) 2018PropertyInfo propertyInfo = null;
System\Data\Common\Internal\Materialization\CoordinatorScratchpad.cs (2)
473var propertyInfo = assignment.Member as PropertyInfo;
System\Data\Common\Internal\Materialization\Translator.cs (5)
591private static readonly PropertyInfo EntityWrapperFactory_NullWrapper = typeof(EntityWrapperFactory).GetProperty("NullWrapper", BindingFlags.Static | BindingFlags.NonPublic); 592private static readonly PropertyInfo IEntityWrapper_Entity = typeof(IEntityWrapper).GetProperty("Entity"); 599private static readonly PropertyInfo SnapshotChangeTrackingStrategy_Instance = typeof(SnapshotChangeTrackingStrategy).GetProperty("Instance", BindingFlags.Static | BindingFlags.Public); 1401private static PropertyInfo GetProperty(MethodInfo setterMethod, Type declaringType) 1408foreach (PropertyInfo propertyInfo in declaringType.GetProperties(bindingAttr))
System\Data\Metadata\Edm\EdmProperty.cs (1)
61internal EdmProperty(string name, TypeUsage typeUsage, System.Reflection.PropertyInfo propertyInfo, RuntimeTypeHandle entityDeclaringType)
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (1)
109internal static Action<object, object> CreateNavigationPropertySetter(Type declaringType, PropertyInfo navigationProperty)
System\Data\Metadata\Edm\MetadataPropertyCollection.cs (3)
85foreach (PropertyInfo propertyInfo in clrType.GetProperties(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic)) 109internal ItemPropertyInfo(PropertyInfo propertyInfo, MetadataPropertyAttribute attribute) 119private readonly PropertyInfo _propertyInfo;
System\Data\Metadata\Edm\MetadataPropertyvalue.cs (2)
25internal MetadataPropertyValue(PropertyInfo propertyInfo, MetadataItem item) 33private PropertyInfo _propertyInfo;
System\Data\Metadata\Edm\NavigationProperty.cs (1)
44internal NavigationProperty(string name, TypeUsage typeUsage, System.Reflection.PropertyInfo propertyInfo)
System\Data\Metadata\ObjectLayer\ObjectItemAttributeAssemblyLoader.cs (9)
455PropertyInfo[] properties = structuralType.ClrType.GetProperties(PropertyReflectionBindingFlags); 457foreach (PropertyInfo property in properties) 468PropertyInfo pi = property; 477PropertyInfo local = property; 489PropertyInfo local = property; 515internal void ResolveNavigationProperty(StructuralType declaringType, PropertyInfo propertyInfo) 615private EdmMember LoadScalarProperty(Type clrType, PropertyInfo property, out bool isEntityKeyProperty) 654private void ResolveEnumTypeProperty(StructuralType declaringType, PropertyInfo clrProperty) 692private void ResolveComplexTypeProperty(StructuralType type, PropertyInfo clrProperty)
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (26)
357PropertyInfo[] clrProperties = type.GetProperties(flags); 383private bool TryFindComplexProperties(Type type, StructuralType cspaceType, StructuralType ospaceType, PropertyInfo[] clrProperties, List<Action> referenceResolutionListForCurrentType) 385List<KeyValuePair<EdmProperty, PropertyInfo>> typeClosureToTrack = 386new List<KeyValuePair<EdmProperty, PropertyInfo>>(); 389PropertyInfo clrProperty = clrProperties.FirstOrDefault(p => MemberMatchesByConvention(p, cspaceProperty)); 393new KeyValuePair<EdmProperty, PropertyInfo>( 410var clrp = typeToTrack.Value; 417private bool TryFindNavigationProperties(Type type, StructuralType cspaceType, StructuralType ospaceType, PropertyInfo[] clrProperties, List<Action> referenceResolutionListForCurrentType) 419List<KeyValuePair<NavigationProperty, PropertyInfo>> typeClosureToTrack = 420new List<KeyValuePair<NavigationProperty, PropertyInfo>>(); 423PropertyInfo clrProperty = clrProperties.FirstOrDefault(p => NonPrimitiveMemberMatchesByConvention(p, cspaceProperty)); 430new KeyValuePair<NavigationProperty, PropertyInfo>( 451var clrp = typeToTrack.Value; 485private void CreateAndAddComplexType(Type type, StructuralType ospaceType, EdmProperty cspaceProperty, PropertyInfo clrProperty) 506private void CreateAndAddNavigationProperty(StructuralType cspaceType, StructuralType ospaceType, NavigationProperty cspaceProperty, PropertyInfo clrProperty) 561private bool TryFindAndCreatePrimitiveProperties(Type type, StructuralType cspaceType, StructuralType ospaceType, PropertyInfo[] clrProperties) 565PropertyInfo clrProperty = clrProperties.FirstOrDefault(p => MemberMatchesByConvention(p, cspaceProperty)); 599private bool TryFindAndCreateEnumProperties(Type type, StructuralType cspaceType, StructuralType ospaceType, PropertyInfo[] clrProperties, List<Action> referenceResolutionListForCurrentType) 601var typeClosureToTrack = new List<KeyValuePair<EdmProperty, PropertyInfo>>(); 605PropertyInfo clrProperty = clrProperties.FirstOrDefault(p => MemberMatchesByConvention(p, cspaceProperty)); 608typeClosureToTrack.Add(new KeyValuePair<EdmProperty, PropertyInfo>(cspaceProperty, clrProperty)); 624var clrp = typeToTrack.Value; 638private void CreateAndAddEnumProperty(Type type, StructuralType ospaceType, EdmProperty cspaceProperty, PropertyInfo clrProperty) 719private static bool MemberMatchesByConvention(PropertyInfo clrProperty, EdmMember cspaceMember) 724private static bool NonPrimitiveMemberMatchesByConvention(PropertyInfo clrProperty, EdmMember cspaceMember) 739private void AddScalarMember(Type type, PropertyInfo clrProperty, StructuralType ospaceType, EdmProperty cspaceProperty, EdmType propertyType)
System\Data\Objects\DataRecordObjectView.cs (6)
52/// Return a <see cref="PropertyInfo"/> instance that represents 59/// <see cref="PropertyInfo"/> instance of indexer defined on supplied type 70private static PropertyInfo GetTypedIndexer(Type type) 72PropertyInfo indexer = null; 78System.Reflection.PropertyInfo[] props = type.GetProperties(BindingFlags.Public | BindingFlags.Instance); 123PropertyInfo typedIndexer = GetTypedIndexer(type);
System\Data\Objects\ELinq\ExpressionConverter.cs (1)
244internal static bool CanFuncletizePropertyInfo(PropertyInfo propertyInfo)
System\Data\Objects\ELinq\Funcletizer.cs (2)
261return ExpressionConverter.CanFuncletizePropertyInfo((PropertyInfo)member.Member); 738memberValue = ((PropertyInfo)me.Member).GetValue(instance, null);
System\Data\Objects\ELinq\SpatialPropertyTranslator.cs (10)
35private readonly Dictionary<PropertyInfo, string> propertyFunctionRenames = GetRenamedPropertyFunctions(); 42private static PropertyInfo GetProperty<T, TResult>(Expression<Func<T, TResult>> lambda) 45PropertyInfo property = (PropertyInfo)memberEx.Member; 53private static IEnumerable<PropertyInfo> GetSupportedProperties() 97private static Dictionary<PropertyInfo, string> GetRenamedPropertyFunctions() 99Dictionary<PropertyInfo, string> result = new Dictionary<PropertyInfo, string>(); 150PropertyInfo property = (PropertyInfo)call.Member;
System\Data\Objects\ELinq\Translator.cs (29)
184if (TryGetTranslator((PropertyInfo)memberInfo, out propertyTranslator)) 195private static readonly Dictionary<PropertyInfo, PropertyTranslator> s_propertyTranslators; 202s_propertyTranslators = new Dictionary<PropertyInfo, PropertyTranslator>(); 205foreach (PropertyInfo property in translator.Properties) 220private static bool TryGetTranslator(PropertyInfo propertyInfo, out PropertyTranslator propertyTranslator) 223PropertyInfo nonGenericPropertyInfo = propertyInfo; 364Debug.Assert(clrMember is PropertyInfo, "Navigation property was not a property; should not be allowed by metadata."); 365Type propertyType = ((PropertyInfo)clrMember).PropertyType; 375InitializerMetadata.CreateEntityCollectionInitializer(parent.EdmItemCollection, ((PropertyInfo)clrMember).PropertyType, navProp)); 398foreach (PropertyInfo property in translator.Properties) 424internal static bool CanFuncletizePropertyInfo(PropertyInfo propertyInfo) 441private GenericICollectionTranslator(Type elementType) : base(Enumerable.Empty<PropertyInfo>()) 451internal static bool TryGetPropertyTranslator(PropertyInfo propertyInfo, out PropertyTranslator propertyTranslator) 519private readonly IEnumerable<PropertyInfo> _properties; 520protected PropertyTranslator(params PropertyInfo[] properties) { _properties = properties; } 521protected PropertyTranslator(IEnumerable<PropertyInfo> properties) { _properties = properties; } 522internal IEnumerable<PropertyInfo> Properties { get { return _properties; } } 535private static IEnumerable<PropertyInfo> GetProperties() 566private static readonly Dictionary<PropertyInfo, string> s_propertyRenameMap = new Dictionary<PropertyInfo, string>(2); 571private static IEnumerable<PropertyInfo> GetProperties() 583private static PropertyInfo GetProperty(Type declaringType, string propertyName, BindingFlags bindingFlages, string canonicalFunctionName) 585PropertyInfo propertyInfo = declaringType.GetProperty(propertyName, bindingFlages); 597PropertyInfo property = (PropertyInfo)call.Member; 619private static PropertyInfo GetProperty(Assembly vbAssembly) 637private static PropertyInfo GetProperty() 657private static PropertyInfo GetProperty() 677private static PropertyInfo GetProperty()
System\Data\Objects\ELinq\TypeSystem.cs (5)
121PropertyInfo property = (PropertyInfo)member; 138foreach (PropertyInfo property in method.DeclaringType.GetProperties( 240internal static bool IsImplementationOf(this PropertyInfo propertyInfo, Type interfaceType) 245PropertyInfo interfaceProp = interfaceType.GetProperty(propertyInfo.Name, BindingFlags.Public | BindingFlags.Instance);
System\Data\Objects\Internal\EntityProxyFactory.cs (34)
307public Func<object, object> CreateBaseGetter(Type declaringType, PropertyInfo propertyInfo) 346public Action<object, object> CreateBaseSetter(Type declaringType, PropertyInfo propertyInfo) 460PropertyInfo property = EntityUtil.GetTopProperty(proxyType, member.Name); 597internal static bool CanProxyGetter(PropertyInfo clrProperty) 603internal static bool CanProxySetter(PropertyInfo clrProperty) 641public List<PropertyInfo> BaseGetters 649public List<PropertyInfo> BaseSetters 674PropertyInfo baseProperty = EntityUtil.GetTopProperty(BaseType, member.Name); 734private void EmitBaseGetter(TypeBuilder typeBuilder, PropertyBuilder propertyBuilder, PropertyInfo baseProperty) 754private void EmitBaseSetter(TypeBuilder typeBuilder, PropertyBuilder propertyBuilder, PropertyInfo baseProperty) 845PropertyInfo clrProperty = EntityUtil.GetTopProperty(ospaceEntityType.ClrType, member.Name); 870public bool EmitMember(TypeBuilder typeBuilder, EdmMember member, PropertyBuilder propertyBuilder, PropertyInfo baseProperty, BaseProxyImplementor baseImplementor) 939private readonly List<PropertyInfo> _baseGetters; 940private readonly List<PropertyInfo> _baseSetters; 944_baseGetters = new List<PropertyInfo>(); 945_baseSetters = new List<PropertyInfo>(); 948public List<PropertyInfo> BaseGetters 953public List<PropertyInfo> BaseSetters 957public void AddBasePropertyGetter(PropertyInfo baseProperty) 962public void AddBasePropertySetter(PropertyInfo baseProperty) 1044private List<KeyValuePair<NavigationProperty, PropertyInfo>> _referenceProperties; 1045private List<KeyValuePair<NavigationProperty, PropertyInfo>> _collectionProperties; 1069_referenceProperties = new List<KeyValuePair<NavigationProperty, PropertyInfo>>(); 1070_collectionProperties = new List<KeyValuePair<NavigationProperty, PropertyInfo>>(); 1087PropertyInfo clrProperty = EntityUtil.GetTopProperty(ospaceEntityType.ClrType, member.Name); 1172foreach (KeyValuePair<NavigationProperty, PropertyInfo> navProperty in _collectionProperties) 1197public bool EmitMember(TypeBuilder typeBuilder, EdmMember member, PropertyBuilder propertyBuilder, PropertyInfo baseProperty, BaseProxyImplementor baseImplementor) 1224private void EmitScalarSetter(TypeBuilder typeBuilder, PropertyBuilder propertyBuilder, PropertyInfo baseProperty, bool isKeyMember) 1345private void EmitReferenceProperty(TypeBuilder typeBuilder, PropertyBuilder propertyBuilder, PropertyInfo baseProperty, NavigationProperty navProperty) 1366_referenceProperties.Add(new KeyValuePair<NavigationProperty,PropertyInfo>(navProperty, baseProperty)); 1369private void EmitCollectionProperty(TypeBuilder typeBuilder, PropertyBuilder propertyBuilder, PropertyInfo baseProperty, NavigationProperty navProperty) 1396_collectionProperties.Add(new KeyValuePair<NavigationProperty, PropertyInfo>(navProperty, baseProperty)); 1516private static readonly PropertyInfo[] s_DataContractProperties = new PropertyInfo[] {
System\Data\Objects\Internal\EntityProxyTypeInfo.cs (2)
46internal EntityProxyTypeInfo(Type proxyType, ClrEntityType ospaceEntityType, DynamicMethod initializeCollections, List<PropertyInfo> baseGetters, List<PropertyInfo> baseSetters)
System\Data\Objects\Internal\LazyLoadBehavior.cs (1)
126PropertyInfo propertyInfo = EntityUtil.GetTopProperty(ospaceEntityType.ClrType, member.Name);
System\Data\Objects\Internal\PocoPropertyAccessorStrategy.cs (3)
50PropertyInfo propertyInfo = EntityUtil.GetTopProperty(ref type, relatedEnd.TargetAccessor.PropertyName); 82PropertyInfo propertyInfo = EntityUtil.GetTopProperty(ref type, relatedEnd.TargetAccessor.PropertyName); 118PropertyInfo property = EntityUtil.GetTopProperty(entityType, propertyName);
System\Data\Query\InternalTrees\ColumnMapFactory.cs (1)
145foreach (PropertyInfo prop in type.GetProperties(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance))
System\Data\SqlClient\SqlSpatialServices.cs (2)
267private PropertyInfo FindSqlGeographyProperty(string propertyName) 282private PropertyInfo FindSqlGeometryProperty(string propertyName)
System\Data\SqlClient\SqlSpatialServices.Generated.cs (30)
968private Singleton<PropertyInfo> ipi_SqlGeography_STSrid; 1004private Singleton<PropertyInfo> ipi_SqlGeography_Lat; 1006private Singleton<PropertyInfo> ipi_SqlGeography_Long; 1008private Singleton<PropertyInfo> ipi_SqlGeography_Z; 1010private Singleton<PropertyInfo> ipi_SqlGeography_M; 1062private Singleton<PropertyInfo> ipi_SqlGeometry_STSrid; 1120private Singleton<PropertyInfo> ipi_SqlGeometry_STX; 1122private Singleton<PropertyInfo> ipi_SqlGeometry_STY; 1124private Singleton<PropertyInfo> ipi_SqlGeometry_Z; 1126private Singleton<PropertyInfo> ipi_SqlGeometry_M; 1174this.ipi_SqlGeography_STSrid = new Singleton<PropertyInfo>(() => { PropertyInfo result = FindSqlGeographyProperty("STSrid"); Debug.Assert(result != null, "Could not retrieve PropertyInfo for SqlGeography member STSrid"); return result; }); 1192this.ipi_SqlGeography_Lat = new Singleton<PropertyInfo>(() => { PropertyInfo result = FindSqlGeographyProperty("Lat"); Debug.Assert(result != null, "Could not retrieve PropertyInfo for SqlGeography member Lat"); return result; }); 1193this.ipi_SqlGeography_Long = new Singleton<PropertyInfo>(() => { PropertyInfo result = FindSqlGeographyProperty("Long"); Debug.Assert(result != null, "Could not retrieve PropertyInfo for SqlGeography member Long"); return result; }); 1194this.ipi_SqlGeography_Z = new Singleton<PropertyInfo>(() => { PropertyInfo result = FindSqlGeographyProperty("Z"); Debug.Assert(result != null, "Could not retrieve PropertyInfo for SqlGeography member Z"); return result; }); 1195this.ipi_SqlGeography_M = new Singleton<PropertyInfo>(() => { PropertyInfo result = FindSqlGeographyProperty("M"); Debug.Assert(result != null, "Could not retrieve PropertyInfo for SqlGeography member M"); return result; }); 1221this.ipi_SqlGeometry_STSrid = new Singleton<PropertyInfo>(() => { PropertyInfo result = FindSqlGeometryProperty("STSrid"); Debug.Assert(result != null, "Could not retrieve PropertyInfo for SqlGeometry member STSrid"); return result; }); 1250this.ipi_SqlGeometry_STX = new Singleton<PropertyInfo>(() => { PropertyInfo result = FindSqlGeometryProperty("STX"); Debug.Assert(result != null, "Could not retrieve PropertyInfo for SqlGeometry member STX"); return result; }); 1251this.ipi_SqlGeometry_STY = new Singleton<PropertyInfo>(() => { PropertyInfo result = FindSqlGeometryProperty("STY"); Debug.Assert(result != null, "Could not retrieve PropertyInfo for SqlGeometry member STY"); return result; }); 1252this.ipi_SqlGeometry_Z = new Singleton<PropertyInfo>(() => { PropertyInfo result = FindSqlGeometryProperty("Z"); Debug.Assert(result != null, "Could not retrieve PropertyInfo for SqlGeometry member Z"); return result; }); 1253this.ipi_SqlGeometry_M = new Singleton<PropertyInfo>(() => { PropertyInfo result = FindSqlGeometryProperty("M"); Debug.Assert(result != null, "Could not retrieve PropertyInfo for SqlGeometry member M"); return result; });
System\Data\SqlClient\SqlTypesAssembly.cs (1)
79PropertyInfo prop = exp.Type.GetProperty(propertyName, BindingFlags.Instance | BindingFlags.Public);
System.Data.Entity.Design (8)
System\Data\Entity\Design\EntityCodeGenerator.cs (4)
595private PropertyInfo _sourceCsdlPath; 596private PropertyInfo _referenceCsdlPaths; 597private PropertyInfo _errors; 598private PropertyInfo _edmToObjectNamespaceMap;
System\Data\EntityModel\Emitters\CommentEmitter.cs (1)
70PropertyInfo pi = item.GetType().GetProperty("FullName");
System\Data\EntityModel\Emitters\Utils.cs (3)
118else if(member is PropertyInfo) 120return ShouldReserveName((PropertyInfo)member); 149private static bool ShouldReserveName(PropertyInfo member)
System.Data.Linq (60)
ChangeDirector.cs (4)
298(mm.Member is PropertyInfo && ((PropertyInfo)mm.Member).CanWrite) 415PropertyInfo pi = (PropertyInfo)mi;
DataServices.cs (3)
222: Expression.Property(serverItem, (PropertyInfo)metaMember.Member); 262Expression mem = (member.Member is PropertyInfo) 263? Expression.Property(e, (PropertyInfo)member.Member)
Mapping\Accessors.cs (3)
90internal static MetaAccessor Create(Type objectType, PropertyInfo pi, MetaAccessor storageAccessor) { 134PropertyInfo pi; 140internal Accessor(PropertyInfo pi, DGet<T, V> dget, DSet<T, V> dset, DRSet<T, V> drset, MetaAccessor<T,V2> storage) {
Mapping\AttributedMetaModel.cs (6)
139PropertyInfo[] props = type.GetProperties(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly); 140foreach (PropertyInfo pi in props) { 620PropertyInfo[] pis = TypeSystem.GetAllProperties(this.type, flags).ToArray(); 623PropertyInfo pi = pis[i]; 1269PropertyInfo pi = (PropertyInfo)mi;
Mapping\MappedMetaModel.cs (9)
109PropertyInfo[] props = type.GetProperties(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly); 110foreach (PropertyInfo pi in props) { 671PropertyInfo[] pis = TypeSystem.GetAllProperties(this.type, flags).ToArray(); 673foreach (PropertyInfo pi in pis) { 1174PropertyInfo pi = (PropertyInfo)mi; 1672foreach (PropertyInfo pi in this.type.GetProperties(flags)) { 1823PropertyInfo pi = (PropertyInfo)mi;
SortableBindingList.cs (1)
72PropertyInfo defaultComparer = comparerType.GetProperty("Default");
SqlClient\Common\InheritanceRules.cs (2)
28PropertyInfo pi = mi as PropertyInfo;
SqlClient\Common\TypeSystem.cs (7)
75PropertyInfo pi = mi as PropertyInfo; 95internal static IEnumerable<PropertyInfo> GetAllProperties(Type type, BindingFlags flags) { 96Dictionary<MetaPosition, PropertyInfo> seen = new Dictionary<MetaPosition, PropertyInfo>(); 99foreach (PropertyInfo pi in currentType.GetProperties(flags)) { 110private static bool IsPrivate(PropertyInfo pi) {
SqlClient\Query\QueryConverter.cs (1)
899foreach (PropertyInfo pi in mi.DeclaringType.GetProperties(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic)) {
SqlClient\Query\SqlBinder.cs (3)
918else if (m.Member is PropertyInfo) { 919PropertyInfo p = (PropertyInfo)m.Member;
SqlClient\Query\Translator.cs (3)
174: Expression.Property(parameterAsDeclaring, (PropertyInfo)metaMember.Member); 491PropertyInfo pi = mi as PropertyInfo;
SqlClient\Reader\ObjectReaderCompiler.cs (13)
887PropertyInfo pi = (PropertyInfo)m.Member; 1067PropertyInfo piCanDeferLoad = orbType.GetProperty("CanDeferLoad"); 1148PropertyInfo pi = member as PropertyInfo; 1184if (m is FieldInfo || (m is PropertyInfo && ((PropertyInfo)m).CanWrite)) { 1246if (m is FieldInfo || (m is PropertyInfo && ((PropertyInfo)m).CanWrite)) { 2196PropertyInfo pi = (PropertyInfo)mi; 2209PropertyInfo pi = (PropertyInfo)mi;
SqlClient\SqlProvider.cs (2)
1158PropertyInfo piPrecision = p.GetType().GetProperty("Precision"); 1162PropertyInfo piScale = p.GetType().GetProperty("Scale");
SqlClient\SqlTypeSystemProvider.cs (3)
985PropertyInfo piSqlDbType = parameter.GetType().GetProperty("SqlDbType"); 990PropertyInfo piPrecision = parameter.GetType().GetProperty("Precision"); 994PropertyInfo piScale = parameter.GetType().GetProperty("Scale");
System.Data.Services (19)
System\Data\Services\IgnorePropertiesAttribute.cs (1)
92PropertyInfo property = type.GetProperty(propertyName, bindingFlags);
System\Data\Services\Parsing\FunctionDescription.cs (1)
145return Expression.Property(arguments[0], (PropertyInfo)this.member);
System\Data\Services\Providers\BaseServiceProvider.cs (1)
318PropertyInfo propertyInfo = this.GetResourceType(target).GetPropertyInfo(resourceProperty);
System\Data\Services\Providers\DataServiceProviderWrapper.cs (1)
448PropertyInfo propertyInfo = resourceType.GetPropertyInfo(resourceProperty);
System\Data\Services\Providers\ObjectContextServiceProvider.cs (1)
1396PropertyInfo propertyInfo = resourceType.InstanceType.GetProperty(member.Name);
System\Data\Services\Providers\ReflectionServiceProvider.cs (7)
194internal static bool IsPropertyKeyProperty(PropertyInfo property, out ResourceKeyKind keyKind) 251PropertyInfo[] properties = this.Type.GetProperties(WebUtil.PublicInstanceBindingFlags); 252foreach (PropertyInfo property in properties) 314PropertyInfo propertyInfo = this.Type.GetProperty(resourceContainer.Name, WebUtil.PublicInstanceBindingFlags); 435foreach (PropertyInfo property in type.GetProperties(WebUtil.PublicInstanceBindingFlags | BindingFlags.DeclaredOnly)) 617PropertyInfo[] properties = parentResourceType.InstanceType.GetProperties(bindingFlags); 618foreach (PropertyInfo property in properties)
System\Data\Services\Providers\ResourceType.cs (7)
97private Dictionary<ResourceProperty, PropertyInfo> propertyInfosDeclaredOnThisType = new Dictionary<ResourceProperty, PropertyInfo>(ReferenceEqualityComparer<ResourceProperty>.Instance); 922internal PropertyInfo GetPropertyInfo(ResourceProperty resourceProperty) 927PropertyInfo propertyInfo = null; 1097private PropertyInfo GetPropertyInfoDecaredOnThisType(ResourceProperty resourceProperty) 1104this.propertyInfosDeclaredOnThisType = new Dictionary<ResourceProperty, PropertyInfo>(ReferenceEqualityComparer<ResourceProperty>.Instance); 1107PropertyInfo propertyInfo;
System.Data.Services.Client (47)
parent\Server\System\Data\Services\Providers\EntityPropertyMappingInfo.cs (1)
152PropertyInfo pi = element.GetType().GetProperty(srcPathPart, BindingFlags.Instance | BindingFlags.Public);
System\Data\Services\Client\ALinq\InputBinder.cs (4)
113Stack<PropertyInfo> nestedAccesses = new Stack<PropertyInfo>(); 119nestedAccesses.Push((PropertyInfo)memberRef.Member); 150PropertyInfo currentProp = nestedAccesses.Peek();
System\Data\Services\Client\ALinq\PathBox.cs (1)
99internal void AppendToPath(PropertyInfo pi)
System\Data\Services\Client\ALinq\ProjectionAnalyzer.cs (4)
406PropertyInfo pi = null; 508PropertyInfo propertyInfo = member as PropertyInfo; 640PropertyInfo pi = null;
System\Data\Services\Client\ALinq\ResourceBinder.cs (27)
204Dictionary<PropertyInfo, ConstantExpression> keyValues; 220Dictionary<PropertyInfo, ConstantExpression> inputKeyValues; 275private static void SetKeyPredicate(ResourceSetExpression rse, Dictionary<PropertyInfo, ConstantExpression> keyValues) 282rse.KeyPredicate = new Dictionary<PropertyInfo, ConstantExpression>(EqualityComparer<PropertyInfo>.Default); 354out Dictionary<PropertyInfo, ConstantExpression> keyValues) 364PropertyInfo property; 370keyValues = new Dictionary<PropertyInfo, ConstantExpression>(EqualityComparer<PropertyInfo>.Default); 420private static Expression BuildKeyPredicateFilter(InputReferenceExpression input, Dictionary<PropertyInfo, ConstantExpression> keyValuesDictionary) 427foreach (KeyValuePair<PropertyInfo, ConstantExpression> keyValue in keyValuesDictionary) 1190PropertyInfo pi; 1415PropertyInfo pi; 1455internal static bool MatchNonPrivateReadableProperty(Expression e, out PropertyInfo propInfo) 1474internal static bool MatchNonPrivateReadableProperty(MemberExpression me, out PropertyInfo propInfo) 1482PropertyInfo pi = (PropertyInfo)me.Member; 1499internal static bool MatchKeyProperty(Expression expression, out PropertyInfo property) 1504PropertyInfo pi; 1522internal static List<PropertyInfo> GetKeyProperties(Type type) 1526var result = new List<PropertyInfo>(); 1538internal static bool MatchKeyComparison(Expression e, out PropertyInfo keyProperty, out ConstantExpression keyValue) 1744PropertyInfo[] properties = ne.Type.GetProperties(BindingFlags.Public | BindingFlags.Instance); 2375private sealed class PropertyInfoEqualityComparer : IEqualityComparer<PropertyInfo> 2395public bool Equals(PropertyInfo left, PropertyInfo right) 2414public int GetHashCode(PropertyInfo obj)
System\Data\Services\Client\ALinq\ResourceSetExpression.cs (2)
41private Dictionary<PropertyInfo, ConstantExpression> keyFilter; 126internal Dictionary<PropertyInfo, ConstantExpression> KeyPredicate
System\Data\Services\Client\ALinq\TypeSystem.cs (5)
28private static readonly Dictionary<PropertyInfo, MethodInfo> propertiesAsMethodsMap; 103propertiesAsMethodsMap = new Dictionary<PropertyInfo, MethodInfo>(EqualityComparer<PropertyInfo>.Default); 148internal static bool TryGetPropertyAsMethod(PropertyInfo pi, out MethodInfo mi) 174internal static bool IsPrivate(PropertyInfo pi)
System\Data\Services\Client\ClientType.cs (2)
114foreach (PropertyInfo pinfo in type.GetProperties(BindingFlags.Public | BindingFlags.Instance)) 877internal ClientProperty(PropertyInfo property, Type propertyType, bool keyProperty)
System\Data\Services\Client\Util.cs (1)
462foreach (var property in collection.GetType().GetProperties(System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.Public))
System.Data.Services.Design (4)
System\Data\EntityModel\Emitters\CommentEmitter.cs (1)
63PropertyInfo pi = item.GetType().GetProperty("FullName");
System\Data\EntityModel\Emitters\Utils.cs (3)
104else if (member is PropertyInfo) 106return ShouldReserveName((PropertyInfo)member); 135private static bool ShouldReserveName(PropertyInfo member)
System.Drawing (10)
commonui\System\Drawing\Advanced\ImageFormatConverter.cs (8)
71PropertyInfo[] props = GetProperties(); 73PropertyInfo prop = props[i]; 99PropertyInfo targetProp = null; 101PropertyInfo[] props = GetProperties(); 102foreach(PropertyInfo p in props) { 126private PropertyInfo[] GetProperties() { 140PropertyInfo[] props = GetProperties(); 142PropertyInfo prop = props[i];
commonui\System\Drawing\ColorConverter.cs (2)
337PropertyInfo[] props = enumType.GetProperties(); 340PropertyInfo prop = props[i];
System.Management (5)
Instrumentation\SchemaMapping.cs (5)
209 if(!(field is FieldInfo || field is PropertyInfo)) 223 else if (field is PropertyInfo) 225 PropertyInfo pi = field as PropertyInfo; 250 t2 = (field as PropertyInfo).PropertyType;
System.Runtime.Serialization (51)
System\Runtime\Serialization\ClassDataContract.cs (4)
880PropertyInfo property = (PropertyInfo)member; 931PropertyInfo property = member as PropertyInfo;
System\Runtime\Serialization\CodeGenerator.cs (4)
758PropertyInfo property = memberInfo as PropertyInfo; 801PropertyInfo property = memberInfo as PropertyInfo;
System\Runtime\Serialization\DataMember.cs (5)
223return ((PropertyInfo)MemberInfo).PropertyType; 279PropertyInfo property = (PropertyInfo)memberInfo; 300PropertyInfo property = (PropertyInfo)memberInfo;
System\Runtime\Serialization\Json\JsonFormatGeneratorStatics.cs (16)
26static PropertyInfo collectionItemNameProperty; 32static PropertyInfo extensionDataProperty; 62static PropertyInfo localNameProperty; 65static PropertyInfo namespaceProperty; 71static PropertyInfo nodeTypeProperty; 92static PropertyInfo typeHandleProperty; 98static PropertyInfo useSimpleDictionaryFormatReadProperty; 101static PropertyInfo useSimpleDictionaryFormatWriteProperty; 142public static PropertyInfo CollectionItemNameProperty 166public static PropertyInfo ExtensionDataProperty 274public static PropertyInfo LocalNameProperty 286public static PropertyInfo NamespaceProperty 322public static PropertyInfo NodeTypeProperty 406public static PropertyInfo TypeHandleProperty 430public static PropertyInfo UseSimpleDictionaryFormatReadProperty 442public static PropertyInfo UseSimpleDictionaryFormatWriteProperty
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (3)
218void ThrowIfCannotSerializeReadOnlyTypes(PropertyInfo serializationExceptionMessageProperty) 481PropertyInfo genericDictionaryKeyProperty = genericDictionaryKeyValueType.GetProperty(JsonGlobals.KeyString); 482PropertyInfo genericDictionaryValueProperty = genericDictionaryKeyValueType.GetProperty(JsonGlobals.ValueString);
System\Runtime\Serialization\XmlFormatGeneratorStatics.cs (18)
70static PropertyInfo extensionDataProperty; 71internal static PropertyInfo ExtensionDataProperty 213static PropertyInfo nodeTypeProperty; 214internal static PropertyInfo NodeTypeProperty 883static PropertyInfo namespaceProperty; 884internal static PropertyInfo NamespaceProperty 935static PropertyInfo childElementNamespacesProperty; 936internal static PropertyInfo ChildElementNamespacesProperty 948static PropertyInfo collectionItemNameProperty; 949internal static PropertyInfo CollectionItemNameProperty 961static PropertyInfo childElementNamespaceProperty; 962internal static PropertyInfo ChildElementNamespaceProperty 1026static PropertyInfo serializeReadOnlyTypesProperty; 1027internal static PropertyInfo SerializeReadOnlyTypesProperty 1039static PropertyInfo classSerializationExceptionMessageProperty; 1040internal static PropertyInfo ClassSerializationExceptionMessageProperty 1052static PropertyInfo collectionSerializationExceptionMessageProperty; 1053internal static PropertyInfo CollectionSerializationExceptionMessageProperty
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (1)
213void ThrowIfCannotSerializeReadOnlyTypes(PropertyInfo serializationExceptionMessageProperty)
System.ServiceModel (23)
System\ServiceModel\Activation\SystemWebHelper.cs (8)
80PropertyInfo rolesEnabledPropertyInfo = roleType.GetProperty("Enabled"); 85PropertyInfo rolesProviderPropertyInfo = roleType.GetProperty("Provider"); 122PropertyInfo roleProvidersPropertyInfo = roleType.GetProperty("Providers"); 129PropertyInfo itemPropertyInfo = roleProviderCollection.GetType().GetProperty("Item", new Type[] { typeof(string) }); 157PropertyInfo membershipProviderPropertyInfo = membershipType.GetProperty("Provider"); 185PropertyInfo membershipProvidersPropertyInfo = membershipType.GetProperty("Providers"); 191PropertyInfo itemPropertyInfo = membershipProviderCollection.GetType().GetProperty("Item", new Type[] { typeof(string) }); 230PropertyInfo applicationLevelPropertyInfo = webContextType.GetProperty("ApplicationLevel");
System\ServiceModel\Configuration\ConfigurationHelpers.cs (2)
297PropertyInfo elementPresent = element.GetType().GetProperty("ElementPresent", BindingFlags.Instance | BindingFlags.NonPublic); 305static void SetIsPresentWithAssert(PropertyInfo elementPresent, ConfigurationElement element, bool value)
System\ServiceModel\Description\OperationGenerator.cs (2)
1016PropertyInfo property = member as PropertyInfo;
System\ServiceModel\Description\TypeLoader.cs (3)
1271PropertyInfo property = memberInfo as PropertyInfo; 1309memberType = ((PropertyInfo)memberInfo).PropertyType;
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (1)
555part.Type = (member.MemberType == MemberTypes.Property) ? ((PropertyInfo)member).PropertyType : ((FieldInfo)member).FieldType;
System\ServiceModel\Dispatcher\OperationFormatter.cs (2)
593return ((PropertyInfo)members[index]).GetValue(instance, null); 606((PropertyInfo)members[index]).SetValue(instance, value, null);
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (1)
41this.taskTResultGetMethod = ((PropertyInfo)taskMethod.ReturnType.GetMember(ResultMethodName)[0]).GetGetMethod();
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (4)
301PropertyInfo property = member as PropertyInfo; 359PropertyInfo property = member as PropertyInfo;
System.Web (76)
Compilation\ClientBuildManagerTypeDescriptionProviderBridge.cs (4)
42PropertyInfo runtimePropInfo = type.GetProperty(name, bindingAttr, null /* binder */, returnType, types, null /* modifiers */); 49PropertyInfo reflectionPropertyInfo = reflectionType.GetProperty(name, bindingAttr, null /* binder */, returnType, reflectionTypes, null /* modifiers */); 95PropertyInfo[] runtimeProperties = type.GetProperties(bindingFlags); 102PropertyInfo[] reflectionProperties = reflectionType.GetProperties(bindingFlags);
Compilation\CodeDOMUtility.cs (2)
31internal /*public*/ static CodeExpression GenerateExpressionForValue(PropertyInfo propertyInfo, object value, Type valueType) { 110else if (desc.MemberInfo is PropertyInfo) {
Compilation\CompilationUtil.cs (1)
552PropertyInfo pi = ci.GetType().GetProperty("ProviderOptions",
Compilation\DelayLoadType.cs (2)
140public override PropertyInfo[] GetProperties(BindingFlags bindingAttr) { 144protected override PropertyInfo GetPropertyImpl(string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) {
ModelBinding\DataAnnotationsModelMetadata.cs (2)
20PropertyInfo displayColumnProperty = ModelType.GetProperty(_displayColumnAttribute.DisplayColumn, BindingFlags.Public | BindingFlags.IgnoreCase | BindingFlags.Instance); 33private static void ValidateDisplayColumnAttribute(DisplayColumnAttribute displayColumnAttribute, PropertyInfo displayColumnProperty, Type modelType) {
parent\DataAnnotations\DataAnnotations\LocalizableString.cs (1)
114PropertyInfo property = this._resourceType.GetProperty(this._propertyValue);
Profile\HttpProfileBase.cs (4)
403PropertyInfo[] baseProps = typeof(ProfileBase).GetProperties(); 405foreach (PropertyInfo baseProp in baseProps) 410PropertyInfo[] props = baseType.GetProperties(); 411foreach (PropertyInfo prop in props) {
UI\CollectionBuilder.cs (1)
49PropertyInfo propInfo = TargetFrameworkUtil.GetProperty(parentBuilder.ControlType,
UI\ControlBuilder.cs (15)
800if (memberInfo is PropertyInfo) { 802PropertyInfo propInfo = ((PropertyInfo)memberInfo); 902if (memberInfo is PropertyInfo) { 903PropertyInfo propInfo = ((PropertyInfo)memberInfo); 995if (memberInfo is PropertyInfo) { 996PropertyInfo propInfo = ((PropertyInfo)memberInfo); 1159if (memberInfo is PropertyInfo) { 1161PropertyInfo propInfo = ((PropertyInfo)memberInfo); 1586PropertyInfo pInfo = TargetFrameworkUtil.GetProperty(_controlType, tagName, BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.IgnoreCase); 1730PropertyInfo pInfo = TargetFrameworkUtil.GetProperty(_controlType, tagName, BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.IgnoreCase); 3077private void ValidatePersistable(PropertyInfo propInfo, bool usingSetAttribute,
UI\DataBinder.cs (2)
276PropertyInfo propInfo = 338PropertyInfo propInfo = container.GetType().GetProperty(dataItemPropertyName,
UI\Page.cs (1)
6383PropertyInfo supportsPartialRenderingProperty = scriptManagerType.GetProperty("SupportsPartialRendering");
UI\PropertyEntry.cs (2)
23private PropertyInfo _propertyInfo; 66public PropertyInfo PropertyInfo {
UI\PropertyMapper.cs (1)
40PropertyInfo propInfo = null;
UI\TargetFrameworkUtil.cs (9)
22private ConcurrentDictionary<Tuple<string, int>, PropertyInfo> _properties; 43internal ConcurrentDictionary<Tuple<string, int>, PropertyInfo> Properties { 46_properties = new ConcurrentDictionary<Tuple<string, int>, PropertyInfo>(); 167internal static PropertyInfo GetProperty(Type type, string name, BindingFlags bindingAttr, 181PropertyInfo result = null; 192private static PropertyInfo GetPropertyHelper(Type type, string name, BindingFlags bindingAttr, 205PropertyInfo propInfo = reflectionType.GetProperty(name, bindingAttr, null /* binder */, 485private static PropertyInfo GetMostSpecificProperty(Type type, string name, BindingFlags additionalFlags, Type returnType, Type[] types) { 488PropertyInfo propInfo;
UI\Util.cs (2)
576PropertyInfo propInfo = null; 609internal static bool IsMultiInstanceTemplateProperty(PropertyInfo pInfo) {
UI\WebControls\DataGrid.cs (1)
888PropertyInfo itemProp = dataSourceType.GetProperty("Item", BindingFlags.Public | BindingFlags.Instance, null, null, new Type[] { typeof(int) }, null);
UI\WebControls\GridViewColumnsGenerator.cs (1)
45PropertyInfo itemProp = dataSourceType.GetProperty("Item", BindingFlags.Public | BindingFlags.Instance, null, null, new Type[] { typeof(int) }, null);
UI\WebControls\ModelDataSourceView.cs (1)
314var propInfo = o.GetType().GetProperty(name);
UI\WebParts\BlobPersonalizationState.cs (2)
844PropertyInfo pi = property.PropertyInfo; 1164PropertyInfo pi = property.PropertyInfo;
UI\WebParts\PersonalizablePropertyEntry.cs (3)
17private PropertyInfo _propertyInfo; 21public PersonalizablePropertyEntry(PropertyInfo pi, PersonalizableAttribute attr) { 39public PropertyInfo PropertyInfo {
UI\WebParts\PersonalizableTypeEntry.cs (7)
22private PropertyInfo[] _propertyInfos; 38PropertyInfo[] propertyInfos = new PropertyInfo[_propertyEntries.Count]; 61PropertyInfo[] props = _type.GetProperties(flags); 71PropertyInfo pi = props[i]; 100Type declaringTypeX = ((PropertyInfo)x).DeclaringType; 101Type declaringTypeY = ((PropertyInfo)y).DeclaringType;
UI\WebParts\WebPartManager.cs (4)
2241PropertyInfo pi = null; 2248pi = (PropertyInfo)data.First; 3011PropertyInfo pi = null; 4219private bool ShouldExportProperty(PropertyInfo propertyInfo, Type propertyValueType,
Util\ExecutionContextUtil.cs (1)
24PropertyInfo propInfo = typeof(ExecutionContext).GetProperty("PreAllocatedDefault", BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static);
Util\FastPropertyAccessor.cs (7)
63PropertyInfo propInfo, FieldInfo fieldInfo) { 255private static void GetPropertyInfo(Type type, string propertyName, out PropertyInfo propInfo, out FieldInfo fieldInfo, out Type declaringType) { 323PropertyInfo propInfo = null; 385PropertyInfo propInfo = null; 399private static PropertyInfo GetPropertyMostSpecific(Type type, string name) { 400PropertyInfo propInfo; 425PropertyInfo propInfo = null;
System.Web.DataVisualization (20)
Common\Converters\AxisConverters.cs (2)
77 PropertyInfo propertyInfo = context.Instance.GetType().GetProperty("IntervalType"); 153 PropertyInfo propertyInfo = context.Instance.GetType().GetProperty("intervalType");
Common\Utilities\XmlSerializer.cs (18)
365 PropertyInfo[] properties = objectToReset.GetType().GetProperties(); 369 foreach(PropertyInfo pi in properties) 631internal bool IsChartBaseProperty(object objectToSerialize, object parent, PropertyInfo pi) 755 PropertyInfo pi = list.GetType().GetProperty("Item", itemType, new Type[] {typeof(string)} ); 862internal bool ShouldSerializeAsAttribute(PropertyInfo pi, object parent) 910internal bool SerializeICollAsAtribute(PropertyInfo pi, object objectToSerialize) 1503PropertyInfo[] properties = objectToSerialize.GetType().GetProperties(); 1507 foreach(PropertyInfo pi in properties) 2150 PropertyInfo pi = obj.GetType().GetProperty(attrName); 2366 PropertyInfo[] properties = objectToSerialize.GetType().GetProperties(); 2370 foreach(PropertyInfo pi in properties) 2960PropertyInfo listItemPI = objectToDeserialize.GetType().GetProperty("Item", new Type[] { typeof(int) }); 3019 PropertyInfo[] properties = objectToDeserialize.GetType().GetProperties(); 3026 PropertyInfo pi = null; 3067 private bool SetPropertyValue(object obj, PropertyInfo pi, BinaryReader reader, bool skipElement) 3226 private PropertyInfo ReadPropertyInfo(object objectToDeserialize, object parent, PropertyInfo[] properties, BinaryReader reader) 3238 foreach(PropertyInfo pi in properties)
System.Web.DynamicData (23)
DynamicData\DynamicControl.cs (1)
198var propInfo = ucType.GetProperty(entry.Key, BindingFlags.Public | BindingFlags.Instance | BindingFlags.IgnoreCase);
DynamicData\IMetaColumn.cs (1)
19PropertyInfo EntityTypeProperty { get; }
DynamicData\MetaColumn.cs (1)
99public PropertyInfo EntityTypeProperty { get { return Provider.EntityTypeProperty; } }
DynamicData\ModelProviders\ColumnProvider.cs (1)
148public virtual PropertyInfo EntityTypeProperty { get; protected set; }
DynamicData\ModelProviders\DLinqAssociationProvider.cs (1)
80ToColumn = parentEntityDataContext.ColumnLookup[(PropertyInfo)association.OtherMember.Member];
DynamicData\ModelProviders\DLinqColumnProvider.cs (2)
138public override PropertyInfo EntityTypeProperty { 139get { return (PropertyInfo)Member.Member; }
DynamicData\ModelProviders\DLinqDataModelProvider.cs (6)
12private Dictionary<PropertyInfo, DLinqColumnProvider> _columnLookup = new Dictionary<PropertyInfo, DLinqColumnProvider>(); 23foreach (PropertyInfo prop in ContextType.GetProperties()) { 41private Type GetEntityType(PropertyInfo prop) { 50private void ProcessTable(LinqMetaTable table, LinqMetaType rowType, string name, PropertyInfo prop) { 57internal Dictionary<PropertyInfo, DLinqColumnProvider> ColumnLookup {
DynamicData\ModelProviders\DLinqTableProvider.cs (8)
13private PropertyInfo _prop; 15public DLinqTableProvider(DLinqDataModelProvider dataModel, MetaType rowType, string name, PropertyInfo prop) 29foreach (PropertyInfo propInfo in GetOrderedProperties(rowType.Type)) { 39AddColumn(dataModel, member, (PropertyInfo)member.Member); 45private void AddColumn(DLinqDataModelProvider dataModel, MetaDataMember member, PropertyInfo propInfo) { 59private IEnumerable<PropertyInfo> GetOrderedProperties(Type type) { 61return new PropertyInfo[0]; 62PropertyInfo[] props = type.GetProperties(BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance);
DynamicData\ModelProviders\EFColumnProvider.cs (1)
87public override PropertyInfo EntityTypeProperty {
DynamicData\ModelProviders\EFTableProvider.cs (1)
43var property = entityClrType.GetProperty(propertyName);
System.Web.Entity (8)
System\Data\WebControls\EntityDataSourceMemberPath.cs (1)
31private readonly PropertyInfo propertyInfo;
System\Data\WebControls\EntityDataSourceUtil.cs (2)
259internal static PropertyInfo GetPropertyInfo(Type type, string name) 264PropertyInfo propertyInfo = type.GetProperty(name, BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance, null, null, Type.EmptyTypes, null);
System\Data\WebControls\EntityDataSourceViewSchema.cs (5)
63PropertyInfo[] infos = type.GetProperties(BindingFlags.Public | BindingFlags.Instance); 125private static PropertyInfo GetTypedIndexer(Type type) 127PropertyInfo indexer = null; 133System.Reflection.PropertyInfo[] props = type.GetProperties(BindingFlags.Public | BindingFlags.Instance); 163PropertyInfo typedIndexer = GetTypedIndexer(type);
System.Web.Extensions (20)
Compilation\WCFModel\SchemaMerger.cs (7)
218PropertyInfo[] properties = itemType.GetProperties(); 219foreach (PropertyInfo property in properties) 249private static bool CompareSchemaPropertyValues(PropertyInfo propertyInfo, object originalValue, object newValue, out string differentLocation) 555PropertyInfo nameProperty = itemType.GetProperty("Name"); 574private static string GetSchemaPropertyNameInXml(PropertyInfo property, object value1, object value2) 692private static bool IsPersistedProperty(PropertyInfo property) 715private static bool ShouldIgnoreSchemaProperty(PropertyInfo property)
Script\Serialization\JavaScriptSerializer.cs (2)
264PropertyInfo[] props = type.GetProperties(BindingFlags.Public | BindingFlags.Instance | BindingFlags.GetProperty); 265foreach (PropertyInfo propInfo in props) {
Script\Serialization\ObjectConverter.cs (1)
52PropertyInfo propInfo = serverType.GetProperty(memberName,
UI\BundleReflectionHelper.cs (1)
119PropertyInfo bundleResolverCurrentProperty = bundleResolverType.GetProperty("Current", BindingFlags.Static | BindingFlags.Public);
UI\WebControls\ContextDataSourceView.cs (1)
125return ((PropertyInfo)mi).PropertyType;
UI\WebControls\Dynamic.cs (4)
127PropertyInfo[] props = this.GetType().GetProperties(BindingFlags.Instance | BindingFlags.Public); 1208return member is PropertyInfo ? 1209Expression.Property(instance, (PropertyInfo)member) : 1416OfType<PropertyInfo>().
UI\WebControls\LinqDataSourceView.cs (4)
380PropertyInfo property = tableMemberInfo as PropertyInfo; 709PropertyInfo property = member as PropertyInfo;
System.Web.Mobile (2)
UI\MobileControls\Design\DeviceFilterEditorDialog.cs (2)
313PropertyInfo[] properties = type.GetProperties(); 314foreach(PropertyInfo property in properties)
System.Web.Services (12)
System\Web\Services\Protocols\PatternMatcher.cs (7)
74else if (memberInfo is PropertyInfo) { 75((PropertyInfo)memberInfo).SetValue(target, matchType == null ? MatchString(text) : MatchClass(text), new object[0]); 81Type fieldType = memberInfo is FieldInfo ? ((FieldInfo)memberInfo).FieldType : ((PropertyInfo)memberInfo).PropertyType; 115Type fieldType = memberInfo is FieldInfo ? ((FieldInfo)memberInfo).FieldType : ((PropertyInfo)memberInfo).PropertyType; 157if (memberInfo is PropertyInfo) { 158PropertyInfo propertyInfo = (PropertyInfo)memberInfo;
System\Web\Services\Protocols\Scalars.cs (4)
299((PropertyInfo)memberInfo).SetValue(target, value, emptyObjectArray); 308return ((PropertyInfo)memberInfo).GetValue(target, emptyObjectArray); 323return ((PropertyInfo)memberInfo).CanRead; 330return ((PropertyInfo)memberInfo).CanWrite;
System\Web\Services\Protocols\SoapReflector.cs (1)
457soapHeader.headerType = ((PropertyInfo)soapHeader.memberInfo).PropertyType;
System.Windows.Forms (52)
winforms\Managed\System\WinForms\AccessibleObject.cs (8)
2531PropertyInfo IReflect.GetProperty(string name, BindingFlags bindingAttr) { 2541PropertyInfo IReflect.GetProperty(string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) { 2551PropertyInfo[] IReflect.GetProperties(BindingFlags bindingAttr) { 2611if (member != null && member.Length > 0 && member[0] is PropertyInfo) { 2612MethodInfo getMethod = ((PropertyInfo)member[0]).GetGetMethod(); 3295PropertyInfo IReflect.GetProperty(string name, BindingFlags bindingAttr) { 3299PropertyInfo IReflect.GetProperty(string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) { 3303PropertyInfo[] IReflect.GetProperties(BindingFlags bindingAttr) {
winforms\Managed\System\WinForms\AxHost.cs (23)
2877PropertyInfo[] propInfos = this.GetType().GetProperties(BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance); 2879foreach(PropertyInfo propInfo in propInfos) 2895PropertyInfo propInfo = (PropertyInfo)propertyInfos[propName]; 4016PropertyInfo IReflect.GetProperty(String name, BindingFlags bindingAttr) { 4020PropertyInfo IReflect.GetProperty(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) { 4024PropertyInfo[] IReflect.GetProperties(BindingFlags bindingAttr) { 4025return new PropertyInfo[0]; 5302PropertyInfo IReflect.GetProperty(String name, BindingFlags bindingAttr) { 5306PropertyInfo IReflect.GetProperty(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) { 5310PropertyInfo[] IReflect.GetProperties(BindingFlags bindingAttr) { 5311return new PropertyInfo[0]; 6381PropertyInfo IReflect.GetProperty(String name, BindingFlags bindingAttr) { 6382PropertyInfo prop = GetP().GetType().GetProperty(name, bindingAttr); 6389PropertyInfo IReflect.GetProperty(String name, BindingFlags bindingAttr, Binder binder,Type returnType, Type[] types, ParameterModifier[] modifiers) { 6390PropertyInfo prop = GetP().GetType().GetProperty(name, bindingAttr, binder, returnType, types, modifiers); 6397PropertyInfo[] IReflect.GetProperties(BindingFlags bindingAttr) { 6398PropertyInfo[] extenderProps = this.GetType().GetProperties(bindingAttr); 6399PropertyInfo[] ctlProps = GetP().GetType().GetProperties(bindingAttr); 6409PropertyInfo[] props = new PropertyInfo[extenderProps.Length + ctlProps.Length]; 6411foreach(PropertyInfo prop in extenderProps) { 6415foreach(PropertyInfo prop in ctlProps) {
winforms\Managed\System\WinForms\BindingMAnagerBase.cs (2)
152System.Reflection.PropertyInfo[] itemProps = listType.GetProperties(); 168System.Reflection.PropertyInfo[] props = listType.GetProperties();
winforms\Managed\System\WinForms\CursorConverter.cs (9)
64PropertyInfo[] props = GetProperties(); 66PropertyInfo prop = props[i]; 96PropertyInfo[] props = GetProperties(); 100PropertyInfo prop = props[i]; 126PropertyInfo[] props = GetProperties(); 127foreach(PropertyInfo prop in props) { 153private PropertyInfo[] GetProperties() { 167PropertyInfo[] props = GetProperties(); 169PropertyInfo prop = props[i];
winforms\Managed\System\WinForms\HtmlToClrEventProxy.cs (3)
93System.Reflection.PropertyInfo[] IReflect.GetProperties(System.Reflection.BindingFlags bindingAttr) { 96System.Reflection.PropertyInfo IReflect.GetProperty(string name, System.Reflection.BindingFlags bindingAttr) { 99System.Reflection.PropertyInfo IReflect.GetProperty(string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, Type returnType, Type[] types, System.Reflection.ParameterModifier[] modifiers) {
winforms\Managed\System\WinForms\ListBindingHelper.cs (6)
250PropertyInfo indexer = GetTypedIndexer(listType); 331PropertyInfo indexer = GetTypedIndexer(type); 546private static PropertyInfo GetTypedIndexer(Type type) 548PropertyInfo indexer = null; 554System.Reflection.PropertyInfo[] props = type.GetProperties(BindingFlags.Public | BindingFlags.Instance); 586PropertyInfo indexer = GetTypedIndexer(targetType);
winforms\Managed\System\WinForms\WinFormsUtils.cs (1)
767PropertyInfo runningOnV4_5_Property = binaryCompatibitlityType.GetProperty(propertyName, Reflection.BindingFlags.Public | Reflection.BindingFlags.NonPublic | Reflection.BindingFlags.Static);
System.Windows.Forms.DataVisualization (20)
Common\Converters\AxisConverters.cs (2)
77 PropertyInfo propertyInfo = context.Instance.GetType().GetProperty("IntervalType"); 153 PropertyInfo propertyInfo = context.Instance.GetType().GetProperty("intervalType");
Common\Utilities\XmlSerializer.cs (18)
365 PropertyInfo[] properties = objectToReset.GetType().GetProperties(); 369 foreach(PropertyInfo pi in properties) 631internal bool IsChartBaseProperty(object objectToSerialize, object parent, PropertyInfo pi) 755 PropertyInfo pi = list.GetType().GetProperty("Item", itemType, new Type[] {typeof(string)} ); 862internal bool ShouldSerializeAsAttribute(PropertyInfo pi, object parent) 910internal bool SerializeICollAsAtribute(PropertyInfo pi, object objectToSerialize) 1503PropertyInfo[] properties = objectToSerialize.GetType().GetProperties(); 1507 foreach(PropertyInfo pi in properties) 2150 PropertyInfo pi = obj.GetType().GetProperty(attrName); 2366 PropertyInfo[] properties = objectToSerialize.GetType().GetProperties(); 2370 foreach(PropertyInfo pi in properties) 2960PropertyInfo listItemPI = objectToDeserialize.GetType().GetProperty("Item", new Type[] { typeof(int) }); 3019 PropertyInfo[] properties = objectToDeserialize.GetType().GetProperties(); 3026 PropertyInfo pi = null; 3067 private bool SetPropertyValue(object obj, PropertyInfo pi, BinaryReader reader, bool skipElement) 3226 private PropertyInfo ReadPropertyInfo(object objectToDeserialize, object parent, PropertyInfo[] properties, BinaryReader reader) 3238 foreach(PropertyInfo pi in properties)
System.Workflow.Activities (62)
Common\CompModHelpers.cs (2)
632internal static Type GetBaseType(PropertyInfo property, object owner, IServiceProvider serviceProvider) 659internal static AccessTypes GetAccessType(PropertyInfo property, object owner, IServiceProvider serviceProvider)
Common\Walker.cs (6)
44private PropertyInfo currentProperty = null; 56internal WalkerEventArgs(Activity currentActivity, object currentValue, PropertyInfo currentProperty, object currentPropertyOwner) 77public PropertyInfo CurrentProperty 191PropertyInfo[] props = obj.GetType().GetProperties(BindingFlags.Public | BindingFlags.Instance); 192foreach (PropertyInfo prop in props) 266private static DesignerSerializationVisibility GetSerializationVisibility(PropertyInfo prop)
CorrelationValidator.cs (2)
762PropertyInfo[] publicProperties = correlationParameterType.GetProperties(); 763foreach (PropertyInfo propertyInfo in publicProperties)
Designers\StateDesigner.cs (6)
2386protected override PropertyInfo[] GetProperties(WorkflowMarkupSerializationManager serializationManager, object obj) 2388List<PropertyInfo> properties = new List<PropertyInfo>(); 2392foreach (PropertyInfo property in base.GetProperties(serializationManager, obj)) 2422private PropertyInfo realPropertyInfo = null; 2425internal ExtendedPropertyInfo(PropertyInfo propertyInfo, GetValueHandler getValueHandler)
Designers\StateDesignerConnector.cs (3)
255protected override PropertyInfo[] GetProperties(WorkflowMarkupSerializationManager serializationManager, object obj) 262List<PropertyInfo> properties = new List<PropertyInfo>(base.GetProperties(serializationManager, obj));
InvokeSchedule.cs (1)
282PropertyInfo propertyInfo = null;
LocalService\CorrelationResolver.cs (1)
199type = ((PropertyInfo)mInfo).PropertyType;
LocalService\DataExchangeServiceBinder.cs (2)
92public override PropertyInfo SelectProperty(BindingFlags bindingAttr, 93PropertyInfo[] match,
Rules\Design\Dialogs\IntellisenseTextBox.cs (3)
357if (item is PropertyInfo) 359MethodInfo mi = ((PropertyInfo)item).GetGetMethod(true); 361mi = ((PropertyInfo)item).GetSetMethod(true);
Rules\Executor.cs (2)
94private PropertyInfo propertyInfo; 98public RulePropertyResult(PropertyInfo propertyInfo, object targetObject, object[] indexerArguments)
Rules\Expressions.cs (6)
1098PropertyInfo pi = validation.ResolveProperty(targetType, propGetExpr.PropertyName, bindingFlags); 1184PropertyInfo pi = propExprInfo.PropertyInfo; 1214PropertyInfo pi = propExprInfo.PropertyInfo; 2386PropertyInfo pi = propExprInfo.PropertyInfo; 2453PropertyInfo pi = propExprInfo.PropertyInfo; 2497PropertyInfo pi = propExprInfo.PropertyInfo;
Rules\Parser\Parser.cs (6)
316PropertyInfo prop = (PropertyInfo)member; 827PropertyInfo prop = (PropertyInfo)mi; 1628PropertyInfo propInfo = member as PropertyInfo;
Rules\RuleAction.cs (1)
145PropertyInfo property = currentType.GetProperty(parts[i], bindingFlags);
Rules\RuleAttributes.cs (1)
147PropertyInfo property = currentType.GetProperty(parts[i], bindingFlags);
Rules\RuleValidation.cs (20)
122private PropertyInfo propertyInfo; 127internal RulePropertyExpressionInfo(PropertyInfo pi, Type exprType, bool needsParamsExpansion) 134internal PropertyInfo PropertyInfo 2385PropertyInfo pi = (PropertyInfo)member; 2408internal PropertyInfo ResolveProperty(Type targetType, string propertyName, BindingFlags bindingFlags) 2411PropertyInfo pi = GetProperty(targetType, propertyName, bindingFlags); 2439private static PropertyInfo GetProperty(Type targetType, string propertyName, BindingFlags bindingFlags) 2447PropertyInfo pi = (PropertyInfo)members[m]; 3558List<PropertyInfo> indexerProperties = GetIndexerProperties(candidateTypes, bindingFlags); 3585PropertyInfo pi = (PropertyInfo)bestCandidate.Member; 3593private static List<PropertyInfo> GetIndexerProperties(List<Type> candidateTypes, BindingFlags bindingFlags) 3595List<PropertyInfo> indexerProperties = new List<PropertyInfo>(); 3605PropertyInfo[] properties = targetType.GetProperties(bindingFlags); 3608PropertyInfo pi = properties[p]; 3638private static List<CandidateMember> GetCandidateIndexers(List<PropertyInfo> indexerProperties, List<Argument> arguments, out ValidationError error) 3645foreach (PropertyInfo indexerProp in indexerProperties)
System.Workflow.ComponentModel (243)
AuthoringOM\Bind.cs (39)
128memberType = (eventArgs.MemberInfo as PropertyInfo).PropertyType; 129if (!(eventArgs.MemberInfo as PropertyInfo).CanRead) 135targetObject = (eventArgs.MemberInfo as PropertyInfo).GetValue(targetObject, null); 139memberType = (eventArgs.MemberInfo as PropertyInfo).PropertyType; 140if (!(eventArgs.MemberInfo as PropertyInfo).CanRead) 146targetObject = (eventArgs.MemberInfo as PropertyInfo).GetValue(targetObject, eventArgs.IndexParameters); 150memberType = (eventArgs.MemberInfo as PropertyInfo).PropertyType; 151targetObject = (eventArgs.MemberInfo as PropertyInfo).GetValue(targetObject, BindingFlags.GetProperty, null, eventArgs.IndexParameters, CultureInfo.InvariantCulture); 219obj = (eventArgs.MemberInfo as PropertyInfo).GetValue(parentObj, null); 225obj = (eventArgs.MemberInfo as PropertyInfo).GetValue(parentObj, eventArgs.IndexParameters); 239else if (memberInfo is PropertyInfo) 241if ((memberInfo as PropertyInfo).CanWrite) 242(memberInfo as PropertyInfo).SetValue(parentObj, value, args); 279if (memberInfo is PropertyInfo) 280memberType = ((PropertyInfo)memberInfo).PropertyType; 709if (memberInfo is FieldInfo || memberInfo is PropertyInfo || memberInfo is EventInfo) 795if (memberInfo is FieldInfo || memberInfo is PropertyInfo || memberInfo is EventInfo) 857else if (memberInfo is PropertyInfo && (memberInfo as PropertyInfo).PropertyType == typeof(ActivityBind) && dataSourceObject != null) 980if (validationContext.Property is PropertyInfo) 982type = Helpers.GetBaseType(validationContext.Property as PropertyInfo, validationContext.PropertyOwner, serviceProvider); 1008if (validationContext.Property is PropertyInfo) 1010accessType = Helpers.GetAccessType(validationContext.Property as PropertyInfo, validationContext.PropertyOwner, serviceProvider); 1082if (!(eventArgs.MemberInfo as PropertyInfo).CanRead) 1096value = (eventArgs.MemberInfo as PropertyInfo).GetValue(value, null); 1117value = (eventArgs.MemberInfo as PropertyInfo).GetValue(value, BindingFlags.GetProperty, null, eventArgs.IndexParameters, CultureInfo.InvariantCulture); 1159internal static PropertyInfo GetMatchedPropertyInfo(Type memberType, string[] aryArgName, object[] args) 1174PropertyInfo getProperty = new ActivityBindPropertyInfo(memberType, getMember[0] as MethodInfo, setMember[0] as MethodInfo, string.Empty, null); 1185PropertyInfo propertyInfo = memberInfo as PropertyInfo; 1197internal static bool MatchIndexerParameters(PropertyInfo propertyInfo, string[] argNames, object[] args) 1243PropertyInfo propertyInfo = memberInfo as PropertyInfo; 1441else if (newMemberInfo is PropertyInfo) 1444PropertyInfo memberPropertyInfo = newMemberInfo as PropertyInfo; 1537PropertyInfo arrayPropertyInfo = BindHelpers.GetMatchedPropertyInfo(propertyType, arrayArgName, arguments); 1592private PropertyInfo originalPropertyInfo; //in vb fields get returned as properties 1594public ActivityBindPropertyInfo(Type declaringType, MethodInfo getMethod, MethodInfo setMethod, string propertyName, PropertyInfo originalPropertyInfo)
AuthoringOM\Compiler\TypeSystem\DesignTimeType.cs (19)
30private PropertyInfo[] properties = null; 406public override PropertyInfo[] GetProperties(BindingFlags bindingAttr) 408return GetMembersHelper<PropertyInfo>(bindingAttr, ref this.properties, true); 428members.AddRange(GetMembersHelper<PropertyInfo>(bindingAttr, new MemberSignature(name, null, null), ref this.properties)); 727else if (memberInfo is PropertyInfo) 730PropertyInfo propertyInfo = memberInfo as PropertyInfo; 805if (type == typeof(PropertyInfo)) 888if (typeof(PropertyInfo).IsAssignableFrom(type)) 972protected override PropertyInfo GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) 974return GetMemberHelper<PropertyInfo>(bindingAttr, new MemberSignature(name, types, null), ref this.properties); 1044if ((type == typeof(PropertyInfo)) && (this.properties == null)) 1045this.properties = GetCodeDomMembers<PropertyInfo>().ToArray(); 1054EnsureMembers(typeof(PropertyInfo)); 1060foreach (PropertyInfo propertyInfo in this.properties) 1182if ((memberInfoType == typeof(PropertyInfo)) && (member is CodeMemberProperty)) 1225else if (memberInfo is PropertyInfo) 1227PropertyInfo propertyInfo = memberInfo as PropertyInfo;
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (14)
347public override PropertyInfo[] GetProperties(BindingFlags bindingAttr) 349List<PropertyInfo> propInfos = new List<PropertyInfo>(); 350foreach (PropertyInfo propInfo in this.runtimeType.GetProperties(bindingAttr)) 436private PropertyInfo EnsurePropertyWrapped(PropertyInfo realInfo) 438PropertyInfo wrapperInfo = (PropertyInfo)this.memberMapping[realInfo]; 460if (memberInfo is PropertyInfo) 461returnMemberInfo = EnsurePropertyWrapped(memberInfo as PropertyInfo); 720protected override PropertyInfo GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) 722foreach (PropertyInfo propInfo in this.runtimeType.GetProperties(bindingAttr)) 946private PropertyInfo propertyInfo = null; 949public RTPropertyInfoWrapper(RTTypeWrapper rtTypeWrapper, PropertyInfo propertyInfo)
AuthoringOM\Compiler\TypeSystem\TypeProvider.cs (4)
207public Func<PropertyInfo, object, bool> IsSupportedPropertyResolver 222Dictionary<PropertyInfo, bool> supportedProperties = null; 263public bool IsSupportedProperty(PropertyInfo property, object declaringInstance) 283supportedProperties = new Dictionary<PropertyInfo, bool>();
AuthoringOM\Compiler\Validation\BindValidator.cs (19)
172Type memberType = (memberInfo is FieldInfo ? (memberInfo as FieldInfo).FieldType : (memberInfo as PropertyInfo).PropertyType); 183if (memberInfo is PropertyInfo) 185PropertyInfo pathPropertyInfo = memberInfo as PropertyInfo; 290PropertyInfo propertyInfo = null; 369Type memberType = (memberInfo is FieldInfo ? (memberInfo as FieldInfo).FieldType : (memberInfo as PropertyInfo).PropertyType); 380if (memberInfo is PropertyInfo) 382PropertyInfo pathPropertyInfo = memberInfo as PropertyInfo; 692else if (memberInfo is PropertyInfo) 845if (memberInfo == null || (memberInfo is PropertyInfo && !(memberInfo as PropertyInfo).CanRead)) 855else if (memberInfo is PropertyInfo) 856memberType = ((PropertyInfo)(memberInfo)).PropertyType; 879if (memberInfo == null || (memberInfo is PropertyInfo && !(memberInfo as PropertyInfo).CanRead)) 893else if (memberInfo is PropertyInfo) 894memberType = ((PropertyInfo)(memberInfo)).PropertyType; 940propertyValidationContext = new PropertyValidationContext(refActivity, memberInfo as PropertyInfo, memberInfo.Name);
AuthoringOM\Compiler\Validation\PropertyValidationContext.cs (1)
14public PropertyValidationContext(object propertyOwner, PropertyInfo propertyInfo, string propertyName)
AuthoringOM\Compiler\Validation\Validator.cs (1)
101internal protected ValidationErrorCollection ValidateProperty(PropertyInfo propertyInfo, object propertyOwner, object propertyValue, ValidationManager manager)
AuthoringOM\Design\ActivityDesignerLayoutSerializers.cs (21)
105protected internal override PropertyInfo[] GetProperties(WorkflowMarkupSerializationManager serializationManager, object obj) 112List<PropertyInfo> properties = new List<PropertyInfo>(base.GetProperties(serializationManager, obj)); 117PropertyInfo nameProperty = activityDesigner.GetType().GetProperty("Name", BindingFlags.Instance | BindingFlags.NonPublic); 131protected internal override PropertyInfo[] GetProperties(WorkflowMarkupSerializationManager serializationManager, object obj) 133List<PropertyInfo> properties = new List<PropertyInfo>(base.GetProperties(serializationManager, obj)); 144protected internal override PropertyInfo[] GetProperties(WorkflowMarkupSerializationManager serializationManager, object obj) 152PropertyInfo[] properties = base.GetProperties(serializationManager, obj); 156List<PropertyInfo> serializableProperties = new List<PropertyInfo>(); 157foreach (PropertyInfo property in properties) 183protected internal override PropertyInfo[] GetProperties(WorkflowMarkupSerializationManager serializationManager, object obj) 190List<PropertyInfo> properties = new List<PropertyInfo>(base.GetProperties(serializationManager, obj)); 363protected internal override PropertyInfo[] GetProperties(WorkflowMarkupSerializationManager serializationManager, object obj) 365List<PropertyInfo> properties = new List<PropertyInfo>(); 413protected internal override PropertyInfo[] GetProperties(WorkflowMarkupSerializationManager serializationManager, object obj) 415List<PropertyInfo> properties = new List<PropertyInfo>();
AuthoringOM\Design\ComponentSerializationService.cs (13)
100internal static PropertyInfo GetProperty(Type type, string name, BindingFlags bindingFlags) 102PropertyInfo propertyInfo = null; 111PropertyInfo[] properties = type.GetProperties(bindingFlags); 112foreach (PropertyInfo prop in properties) 325PropertyInfo propertyInfo = XomlComponentSerializationService.GetProperty(obj.GetType(), (this.memberList[loop] as PropertyDescriptor).Name, BindingFlags.Public | BindingFlags.Instance); 443private PropertyInfo property = null; 452internal PropertySegment(IServiceProvider serviceProvider, object obj, PropertyInfo property) 490internal PropertyInfo[] GetProperties(IServiceProvider serviceProvider) 516PropertyInfo propInfo = XomlComponentSerializationService.GetProperty(this.obj.GetType(), propDesc.Name, BindingFlags.Public | BindingFlags.Instance); 542return properties.ToArray(typeof(PropertyInfo)) as PropertyInfo[]; 596private PropertyInfo realPropInfo = null; 600internal PropertySegmentPropertyInfo(PropertySegment propertySegment, PropertyInfo realPropInfo)
AuthoringOM\Design\CustomActivityDesigner.cs (4)
410PropertyInfo[] properties = customActivityType.GetProperties(BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance); 411foreach (PropertyInfo property in properties) 534PropertyInfo[] properties = customActivityType.GetProperties(BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance); 535foreach (PropertyInfo property in properties)
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (13)
492if (member is PropertyInfo) 493getterMethodInfos.Add((member as PropertyInfo).GetGetMethod()); 573PropertyInfo[] GetProperties(Type type) 575List<PropertyInfo> members = new List<PropertyInfo>(); 600foreach (PropertyInfo property in GetProperties(typeToGetPropertiesOn)) 860else if (this.pathInfo.MemberInfo is PropertyInfo) 863PropertyInfo propertyInfo = this.pathInfo.MemberInfo as PropertyInfo; 1236PropertyInfo property1 = member1 as PropertyInfo; 1237PropertyInfo property2 = member2 as PropertyInfo;
AuthoringOM\Design\PropertyDescriptors.cs (6)
498else if (memberInfo is PropertyInfo) 500PropertyInfo propertyInfo = memberInfo as PropertyInfo; 559else if (matchingMember is PropertyInfo) 561MethodInfo getMethod = ((PropertyInfo)matchingMember).GetGetMethod(); 562MethodInfo setMethod = ((PropertyInfo)matchingMember).GetSetMethod();
AuthoringOM\Design\WorkflowInlining.cs (2)
372foreach (PropertyInfo parameterProperty in this.targetWorkflowType.GetProperties()) 426PropertyInfo parameterProperty = Activity.GetType().GetProperty("ParameterBindings", BindingFlags.Instance | BindingFlags.Public);
AuthoringOM\ScheduleChanges.cs (4)
891protected internal override PropertyInfo[] GetProperties(WorkflowMarkupSerializationManager serializationManager, object obj) 893List<PropertyInfo> properties = new List<PropertyInfo>(base.GetProperties(serializationManager, obj)); 896foreach (PropertyInfo property in obj.GetType().GetProperties(BindingFlags.Public | BindingFlags.Instance | BindingFlags.FlattenHierarchy))
AuthoringOM\Serializer\CollectionMarkupSerializer.cs (2)
44protected internal override PropertyInfo[] GetProperties(WorkflowMarkupSerializationManager serializationManager, object obj) 46return new PropertyInfo[] { };
AuthoringOM\Serializer\CompositeActivityTypeDescriptor.cs (1)
40PropertyInfo propInfo = typeof(CompositeActivity).GetProperty("CanModifyActivities", BindingFlags.NonPublic | BindingFlags.Instance);
AuthoringOM\Serializer\DictionaryMarkupSerializer.cs (2)
44protected internal override PropertyInfo[] GetProperties(WorkflowMarkupSerializationManager serializationManager, object obj) 46return new PropertyInfo[] { };
AuthoringOM\Serializer\DictionarySurrogate.cs (2)
24PropertyInfo keysProperty = obj.GetType().GetProperty("Keys"); 30PropertyInfo valuesProperty = obj.GetType().GetProperty("Values");
AuthoringOM\Serializer\ExtendedPropertyInfo.cs (6)
35private PropertyInfo realPropertyInfo = null; 41internal ExtendedPropertyInfo(PropertyInfo propertyInfo, GetValueHandler getValueHandler, SetValueHandler setValueHandler, GetQualifiedNameHandler qualifiedNameHandler) 49internal ExtendedPropertyInfo(PropertyInfo propertyInfo, GetValueHandler getValueHandler, SetValueHandler setValueHandler, GetQualifiedNameHandler qualifiedNameHandler, WorkflowMarkupSerializationManager manager) 55internal PropertyInfo RealPropertyInfo 212internal static bool IsExtendedProperty(WorkflowMarkupSerializationManager manager, IList<PropertyInfo> propInfos, XmlQualifiedName xmlQualifiedName) 214foreach (PropertyInfo propInfo in propInfos)
AuthoringOM\Serializer\MarkupExtensionSerializer.cs (4)
100List<PropertyInfo> properties = new List<PropertyInfo>(); 103foreach (PropertyInfo serializableProperty in properties) 163Debug.Assert((PropertyInfo)serializationManager.Context.Current == serializableProperty, "Serializer did not remove an object it pushed into stack.");
AuthoringOM\Serializer\ModifyActivitiesPropertyDescriptor.cs (2)
23private PropertyInfo propInfo = null; 25public ModifyActivitiesPropertyDescriptor(PropertyInfo propInfo)
AuthoringOM\Serializer\PropertySegmentSerializer.cs (1)
20protected internal override PropertyInfo[] GetProperties(WorkflowMarkupSerializationManager serializationManager, object obj)
AuthoringOM\Serializer\StringCollectionMarkupSerializer.cs (2)
14protected internal override PropertyInfo[] GetProperties(WorkflowMarkupSerializationManager manager, object obj) 16return new PropertyInfo[] { };
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (53)
299List<PropertyInfo> props = new List<PropertyInfo>(); 364PropertyInfo property = WorkflowMarkupSerializer.LookupProperty(props, propName); 374Debug.Assert((PropertyInfo)serializationManager.Context.Current == property, "Serializer did not remove an object it pushed into stack."); 464PropertyInfo property = WorkflowMarkupSerializer.LookupProperty(props, propertyName); 470PropertyInfo prop = WorkflowMarkupSerializer.LookupProperty(props, dependencyProperty.Name); 493Debug.Assert((PropertyInfo)serializationManager.Context.Current == property, "Serializer did not remove an object it pushed into stack."); 635List<PropertyInfo> properties = new List<PropertyInfo>(); 751foreach (PropertyInfo propInfo in properties) 779if (propertyObj is PropertyInfo) 781PropertyInfo property = propertyObj as PropertyInfo; 850if (propertyObj is PropertyInfo && contentProperty.Property == (PropertyInfo)propertyObj) 859else if (propertyObj is PropertyInfo) 863Attribute[] attributes = Attribute.GetCustomAttributes(propertyObj as PropertyInfo, typeof(DefaultValueAttribute), true); 963if (propertyObj is PropertyInfo) 965PropertyInfo property = propertyObj as PropertyInfo; 989if (propertyObj is PropertyInfo && (PropertyInfo)propertyObj == contentProperty.Property) 1154PropertyInfo property = serializationManager.Context.Current as PropertyInfo; 1360protected internal virtual PropertyInfo[] GetProperties(WorkflowMarkupSerializationManager serializationManager, object obj) 1367List<PropertyInfo> properties = new List<PropertyInfo>(); 1374foreach (PropertyInfo property in obj.GetType().GetProperties(BindingFlags.Public | BindingFlags.Instance | BindingFlags.FlattenHierarchy)) 1458List<PropertyInfo> pis = new List<PropertyInfo>(); 1509PropertyInfo propertyInfo = obj1 as PropertyInfo; 1513propValue = (obj1 as PropertyInfo).GetValue(dependencyObject, null); 1616List<PropertyInfo> pis = new List<PropertyInfo>(); 1620PropertyInfo pi = LookupProperty(pis, dependencyProperty.Name); 1800PropertyInfo property = serializationManager.Context.Current as PropertyInfo; 1914PropertyInfo property = serializationManager.Context.Current as PropertyInfo; 2007PropertyInfo property = serializationManager.Context.Current as PropertyInfo; 2427private static PropertyInfo LookupProperty(IList<PropertyInfo> properties, string propertyName) 2431foreach (PropertyInfo property in properties) 2613List<PropertyInfo> properties = new List<PropertyInfo>(); 2632PropertyInfo property = WorkflowMarkupSerializer.LookupProperty(properties, argName); 2642Debug.Assert((PropertyInfo)serializationManager.Context.Current == property, "Serializer did not remove an object it pushed into stack."); 2880private PropertyInfo contentProperty; 2966internal PropertyInfo Property 3085private PropertyInfo GetContentProperty(WorkflowMarkupSerializationManager serializationManager, object parentObject) 3087PropertyInfo contentProperty = null;
Shared\CompModHelpers.cs (2)
630internal static Type GetBaseType(PropertyInfo property, object owner, IServiceProvider serviceProvider) 657internal static AccessTypes GetAccessType(PropertyInfo property, object owner, IServiceProvider serviceProvider)
Shared\Walker.cs (6)
43private PropertyInfo currentProperty = null; 55internal WalkerEventArgs(Activity currentActivity, object currentValue, PropertyInfo currentProperty, object currentPropertyOwner) 76public PropertyInfo CurrentProperty 190PropertyInfo[] props = obj.GetType().GetProperties(BindingFlags.Public | BindingFlags.Instance); 191foreach (PropertyInfo prop in props) 265private static DesignerSerializationVisibility GetSerializationVisibility(PropertyInfo prop)
System.Workflow.Runtime (31)
System\Activities\Statements\Interop.cs (8)
41IList<PropertyInfo> outputPropertyDefinitions; 177internal IList<PropertyInfo> OutputPropertyDefinitions 205this.outputPropertyDefinitions = new List<PropertyInfo>(); 222PropertyInfo[] bodyProperties = this.ActivityType.GetProperties(); 225foreach (PropertyInfo propertyInfo in bodyProperties) 502PropertyInfo property = this.ActivityType.GetProperty(name); 617PropertyInfo[] bodyProperties = this.ActivityType.GetProperties(); 622PropertyInfo property = bodyProperties[i];
System\Activities\Statements\InteropEnvironment.cs (5)
307public static bool HasPropertyNameCollision(IList<PropertyInfo> properties) 311foreach (PropertyInfo propertyInfo in properties) 324foreach (PropertyInfo propertyInfo in properties) 336public static bool IsBindable(PropertyInfo propertyInfo) 346public static bool IsBindableOrMetaProperty(PropertyInfo propertyInfo, out bool isMetaProperty)
System\Activities\Statements\InteropExecutor.cs (6)
43IList<PropertyInfo> outputProperties; 69public InteropExecutor(Guid instanceId, Activity rootActivity, IList<PropertyInfo> outputProperties, Activity activityDefinition) 404public void Reload(Activity definitionActivity, IList<PropertyInfo> outputProperties) 450void PrivateInitialize(Activity rootActivity, Guid instanceId, IList<PropertyInfo> outputProperties, Activity workflowDefinition) 471PropertyInfo propertyInfo; 508foreach (PropertyInfo property in this.outputProperties)
Tracking\PropertyHelper.cs (2)
193PropertyInfo[] properties = t.GetProperties(BindingFlags.Public | 199foreach (PropertyInfo p in properties)
WorkflowDefinitionDispenser.cs (8)
37private Dictionary<Type, List<PropertyInfo>> workflowOutParameters; 54this.workflowOutParameters = new Dictionary<Type, List<PropertyInfo>>(); 59internal ReadOnlyCollection<PropertyInfo> GetOutputParameters(Activity rootActivity) 66return new ReadOnlyCollection<PropertyInfo>(this.workflowOutParameters[workflowType]); 328List<PropertyInfo> outputParameters = null; 338outputParameters = new List<PropertyInfo>(); 341PropertyInfo[] properties = workflowType.GetProperties(); 342foreach (PropertyInfo property in properties)
WorkflowExecutor.cs (1)
368PropertyInfo propertyInfo = this.WorkflowDefinition.GetType().GetProperty(arg);
WorkflowRuntime.cs (1)
1272foreach (PropertyInfo property in _workflowDefinitionDispenser.GetOutputParameters(exec.RootActivity))
System.WorkflowServices (12)
System\Workflow\Activities\ContractType.cs (12)
31private PropertyInfo[] properties = null; 338members.AddRange(GetMembersHelper<PropertyInfo>(bindingAttr, new MemberSignature(name, null, null), ref this.properties)); 390public override PropertyInfo[] GetProperties(BindingFlags bindingAttr) 392return GetMembersHelper<PropertyInfo>(bindingAttr, ref this.properties, true); 480protected override PropertyInfo GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) 482return GetMemberHelper<PropertyInfo>(bindingAttr, new MemberSignature(name, types, null), ref this.properties); 555else if (memberInfo is PropertyInfo) 558PropertyInfo propertyInfo = memberInfo as PropertyInfo; 733else if (memberInfo is PropertyInfo) 735PropertyInfo propertyInfo = memberInfo as PropertyInfo;
System.Xml (33)
System\Xml\Core\BinaryCompatibility.cs (1)
32PropertyInfo property = binaryCompatabilityType.GetProperty(propertyName, BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static);
System\Xml\Serialization\CodeGenerator.cs (8)
696private static MethodInfo GetPropertyMethodFromBaseType(PropertyInfo propertyInfo, bool isGetter) { 700PropertyInfo currentProperty; 742PropertyInfo property = (PropertyInfo)memberInfo; 774PropertyInfo property = (PropertyInfo)memberInfo; 808PropertyInfo property = (PropertyInfo)memberInfo;
System\Xml\Serialization\Models.cs (7)
154else if (memberInfo is PropertyInfo) 155model = GetPropertyModel((PropertyInfo)memberInfo); 189FieldModel GetPropertyModel(PropertyInfo propertyInfo) { 203internal static bool CheckPropertyRead(PropertyInfo propertyInfo) { 261PropertyInfo specifiedProperty = memberInfo.DeclaringType.GetProperty(memberInfo.Name + "Specified"); 272if (memberInfo is PropertyInfo) { 273readOnly = !((PropertyInfo)memberInfo).CanWrite;
System\Xml\Serialization\SourceInfo.cs (1)
156((FieldInfo)MemberInfo).FieldType : ((PropertyInfo)MemberInfo).PropertyType;
System\Xml\Serialization\Types.cs (10)
965PropertyInfo propertyInfo = memberInfo as PropertyInfo; 975static bool CanWriteProperty(PropertyInfo propertyInfo, TypeDesc typeDesc) { 1058foreach (PropertyInfo info in currentInfo.DeclaredProperties) 1141PropertyInfo p = enumerator.ReturnType.GetProperty("Current"); 1160internal static PropertyInfo GetDefaultIndexer(Type type, string memberInfo) { 1171PropertyInfo indexer = null; 1175if (defaultMembers[i] is PropertyInfo) { 1176PropertyInfo defaultProp = (PropertyInfo)defaultMembers[i];
System\Xml\Serialization\XmlReflectionImporter.cs (1)
1272PropertyInfo info = structModel.Type.GetProperty(choice.MemberName, BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static);
System\Xml\Serialization\XmlSerializationILGen.cs (1)
571Type memType = (memInfo.MemberType == MemberTypes.Field) ? ((FieldInfo)memInfo).FieldType : ((PropertyInfo)memInfo).PropertyType;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
2811ilg.ConvertValue(stackType, memInfo.MemberType == MemberTypes.Field ? ((FieldInfo)memInfo).FieldType : ((PropertyInfo)memInfo).PropertyType);
System\Xml\Serialization\XmlSerializationWriter.cs (2)
3421typeof(FieldInfo).FullName, typeof(PropertyInfo).FullName, 3547PropertyInfo defaultIndexer = TypeScope.GetDefaultIndexer(type, null);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
2387PropertyInfo propInfo = initValue.ILG.GetVariableType(fixup).GetProperty(vars[1]);
WindowsBase (5)
Base\MS\Internal\ComponentModel\AttachedPropertyMethodSelector.cs (2)
149public override PropertyInfo SelectProperty(BindingFlags bindingAttr, PropertyInfo[] match, Type returnType, Type[] indexes, ParameterModifier[] modifiers)
Base\System\Windows\Markup\InternalTypeHelper.cs (2)
47protected internal abstract object GetPropertyValue(PropertyInfo propertyInfo, object target, CultureInfo culture); 52protected internal abstract void SetPropertyValue(PropertyInfo propertyInfo, object target, object value, CultureInfo culture);
Base\System\Windows\Markup\TypeConverterHelper.cs (1)
49MemberInfo memberInfo = dpOrPiOrMi as PropertyInfo;