11 types derived from PropertyInfo
mscorlib (2)
PresentationFramework (1)
System.Activities.Presentation (1)
System.Data (1)
System.Workflow.Activities (1)
System.Workflow.ComponentModel (5)
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\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\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\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)
PresentationCore (6)
PresentationFramework (113)
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;
System (21)
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);
System.Activities (33)
System.Activities.Core.Presentation (4)
System.Activities.Presentation (49)
System.ComponentModel.DataAnnotations (3)
System.Configuration (5)
System.Core (61)
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) {
System.Data (54)
System.Data.Entity (181)
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\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\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\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.Entity.Design (8)
System.Data.Linq (60)
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) {
System.Data.Services (19)
System.Data.Services.Client (47)
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.Design (4)
System.Drawing (10)
System.Management (5)
System.Runtime.Serialization (51)
System.ServiceModel (23)
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);
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;
System.Web.DataVisualization (20)
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)
System.Web.Entity (8)
System.Web.Extensions (20)
System.Web.Mobile (2)
System.Web.Services (12)
System.Windows.Forms (52)
System.Windows.Forms.DataVisualization (20)
System.Workflow.Activities (62)
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\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\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;
System.Workflow.Runtime (31)
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)
WindowsBase (5)