Implemented interface member:
property
PropertyType
System.Runtime.InteropServices._PropertyInfo.PropertyType
11 overrides of PropertyType
mscorlib (2)
system\reflection\emit\propertybuilder.cs (1)
231public override Type PropertyType {
system\reflection\propertyinfo.cs (1)
507public override Type PropertyType
PresentationFramework (1)
src\Framework\MS\Internal\Data\IndexerPropertyInfo.cs (1)
74public override Type PropertyType
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1823public override Type PropertyType { get { return _info.PropertyType; } }
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1823public override Type PropertyType { get { return _info.PropertyType; } }
System.Workflow.Activities (1)
Designers\StateDesigner.cs (1)
2457public override Type PropertyType
System.Workflow.ComponentModel (5)
AuthoringOM\Bind.cs (1)
1623public override Type PropertyType
AuthoringOM\Compiler\TypeSystem\PropertyInfo.cs (1)
43public override Type PropertyType
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (1)
1005public override Type PropertyType
AuthoringOM\Design\ComponentSerializationService.cs (1)
622public override Type PropertyType
AuthoringOM\Serializer\ExtendedPropertyInfo.cs (1)
97public override Type PropertyType
382 references to PropertyType
mscorlib (18)
system\attribute.cs (1)
124property.PropertyType,
system\defaultbinder.cs (6)
651if (candidates[i].PropertyType.IsPrimitive) { 653!CanConvertPrimitive((RuntimeType)returnType.UnderlyingSystemType,(RuntimeType)candidates[i].PropertyType.UnderlyingSystemType)) 657if (!candidates[i].PropertyType.IsAssignableFrom(returnType)) 676int newMin = FindMostSpecificType(candidates[currentMin].PropertyType, candidates[i].PropertyType,returnType); 800if (returnType != null && returnType != match[i].PropertyType)
system\diagnostics\eventing\eventsource.cs (2)
3188if (p.PropertyType.IsEnum) 3190value = Enum.Parse(p.PropertyType, value.ToString());
System\Diagnostics\Eventing\TraceLogging\TypeAnalysis.cs (1)
56var propertyType = propertyInfo.PropertyType;
system\reflection\customattribute.cs (3)
388properties[i].Name, CustomAttributeEncoding.Property, InitCustomAttributeType((RuntimeType)properties[i].PropertyType)); 620type = property.PropertyType; 663((PropertyInfo)m_memberInfo).PropertyType;
system\reflection\emit\customattributebuilder.cs (1)
185Type propType = namedProperties[i].PropertyType;
system\rttype.cs (1)
3298if ((object)returnType != null && !returnType.IsEquivalentTo(firstCandidate.PropertyType))
system\runtime\interopservices\windowsruntime\custompropertyimpl.cs (1)
136return m_property.PropertyType;
system\runtime\serialization\formatters\binary\binaryobjectinfo.cs (2)
410objectType = ((PropertyInfo)objMember).PropertyType; 882objectType = ((PropertyInfo)objMember).PropertyType;
PresentationBuildTasks (5)
Framework\System\Windows\Markup\XamlReaderHelper.cs (4)
3883return IsAssignableToIXmlSerializable(pi.PropertyType); 4589if (typeof(IList).IsAssignableFrom(pi.PropertyType)) 4593else if (!IsAssignableToIXmlSerializable(pi.PropertyType)) 4928if( propertyInfo.PropertyType.IsAssignableFrom(typeof(string)) )
Framework\System\Windows\Markup\XamlTypeMapper.cs (1)
2145propertyType = propertyInfo.PropertyType;
PresentationCore (3)
Core\CSharp\System\Windows\Diagnostics\XamlSourceInfoHelper.cs (3)
85if (s_sourceBamlUriProperty == null || s_sourceBamlUriProperty.PropertyType != typeof(Uri) || 86s_elementLineNumberProperty == null || s_elementLineNumberProperty.PropertyType != typeof(int) || 87s_elementLinePositionProperty == null || s_elementLinePositionProperty.PropertyType != typeof(int))
PresentationFramework (10)
src\Framework\MS\Internal\Data\PropertyPathWorker.cs (2)
1156sourceType = pi1.PropertyType; 1212sourceType = pi.PropertyType;
src\Framework\MS\Internal\Helper.cs (1)
672memberType = propertyInfo.PropertyType;
src\Framework\System\Windows\Data\CollectionView.cs (1)
1516list.Add(new ItemPropertyInfo(pi.Name, pi.PropertyType, pi));
src\Framework\System\Windows\Markup\BamlRecordReader.cs (4)
2042if (typeof(IXmlSerializable).IsAssignableFrom(pi.PropertyType)) 3724propertyType = propertyInfo.PropertyType; 3863value = OptionallyMakeNullable(propertyInfo.PropertyType, value, propertyInfo.Name); 5910return this.PropertyInfo.PropertyType;
src\Framework\System\Windows\Markup\BamlRecords.cs (1)
4920validType = propInfo.PropertyType;
src\Framework\System\Windows\Markup\XamlTypeMapper.cs (1)
2145propertyType = propertyInfo.PropertyType;
System (4)
compmod\system\componentmodel\ComponentResourceManager.cs (1)
174if (prop != null && prop.CanWrite && (kvp.Value == null || prop.PropertyType.IsInstanceOfType(kvp.Value))) {
compmod\system\componentmodel\ReflectTypeDescriptionProvider.cs (1)
1269propertyInfo.PropertyType,
sys\system\configuration\ApplicationSettingsBase.cs (2)
414sp.PropertyType = propInfo.PropertyType; 469sp.SerializeAs = GetSerializeAs(propInfo.PropertyType);
System.Activities (1)
System\Activities\XamlIntegration\FuncFactory.cs (1)
63propertyType = propertyInfo.PropertyType;
System.Activities.Core.Presentation (1)
System\ServiceModel\Activities\Presentation\TypeToTreeConverter.cs (1)
33type = ((PropertyInfo)value).PropertyType;
System.Activities.Presentation (9)
System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateUtilities.cs (6)
25if (property.PropertyType.IsGenericType) 28if (property.PropertyType.GetGenericTypeDefinition() == typeof(DelegateInArgument<>)) 33else if (property.PropertyType.GetGenericTypeDefinition() == typeof(DelegateOutArgument<>)) 42argument.Type = property.PropertyType.GetGenericArguments()[0]; 91property.PropertyType.IsSubclassOf(typeof(ActivityDelegate)) && 92TypeUtilities.CanCreateInstanceUsingDefaultConstructor(property.PropertyType))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\AttributeDataCache.cs (1)
238return targetType.GetProperty(propInfo.Name, _getInfoBindingFlags, null, propInfo.PropertyType, ToTypeArray(propInfo.GetIndexParameters()), null);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (2)
350if (info != null) reflectMemberType = TypeDescriptor.GetReflectionType(info.PropertyType); 1823public override Type PropertyType { get { return _info.PropertyType; } }
System.ComponentModel.DataAnnotations (2)
DataAnnotations\LocalizableString.cs (1)
120if (!this._resourceType.IsVisible || property == null || property.PropertyType != typeof(string)) {
DataAnnotations\ValidationAttribute.cs (1)
258if (property.PropertyType != typeof(string)) {
System.Configuration (3)
System\Configuration\ConfigurationElement.cs (1)
747Type propertyType = propertyInformation.PropertyType;
System\Configuration\ConfigurationProperty.cs (2)
127Type propertyType = info.PropertyType; 155info.PropertyType,
System.Core (10)
Microsoft\Scripting\Ast\IndexExpression.cs (4)
75return _indexer.PropertyType; 362if (property.PropertyType.IsByRef) throw Error.PropertyCannotHaveRefType(); 363if (property.PropertyType == typeof(void)) throw Error.PropertyTypeCannotBeVoid(); 381if (property.PropertyType != valueType) throw Error.PropertyTyepMustMatchSetter();
Microsoft\Scripting\Ast\MemberAssignment.cs (1)
105memberType = pi.PropertyType;
Microsoft\Scripting\Ast\MemberExpression.cs (1)
133get { return _property.PropertyType; }
Microsoft\Scripting\Ast\MemberMemberBinding.cs (1)
139memberType = pi.PropertyType;
Microsoft\Scripting\Ast\NewExpression.cs (2)
315memberType = pi.PropertyType; 331memberType = prop.PropertyType;
Microsoft\Scripting\Compiler\LambdaCompiler.Expressions.cs (1)
914if (pi != null) return pi.PropertyType;
System.Data (10)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateUtilities.cs (6)
25if (property.PropertyType.IsGenericType) 28if (property.PropertyType.GetGenericTypeDefinition() == typeof(DelegateInArgument<>)) 33else if (property.PropertyType.GetGenericTypeDefinition() == typeof(DelegateOutArgument<>)) 42argument.Type = property.PropertyType.GetGenericArguments()[0]; 91property.PropertyType.IsSubclassOf(typeof(ActivityDelegate)) && 92TypeUtilities.CanCreateInstanceUsingDefaultConstructor(property.PropertyType))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\AttributeDataCache.cs (1)
238return targetType.GetProperty(propInfo.Name, _getInfoBindingFlags, null, propInfo.PropertyType, ToTypeArray(propInfo.GetIndexParameters()), null);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (2)
350if (info != null) reflectMemberType = TypeDescriptor.GetReflectionType(info.PropertyType); 1823public override Type PropertyType { get { return _info.PropertyType; } }
fx\src\data\System\Data\Sql\sqlnorm.cs (1)
107if (pi == null || pi.PropertyType != t) {
System.Data.Entity (56)
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (1)
1822if (pi.CanRead && typeof(TRequired).IsAssignableFrom(pi.PropertyType))
System\Data\Common\Internal\Materialization\CoordinatorScratchpad.cs (1)
480_userArgumentType = propertyInfo.PropertyType;
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (2)
112Type realType = navigationProperty.PropertyType; 136gen.Emit(OpCodes.Castclass, navigationProperty.PropertyType);
System\Data\Metadata\ObjectLayer\ObjectItemAttributeAssemblyLoader.cs (14)
474if ((Nullable.GetUnderlyingType(property.PropertyType) ?? property.PropertyType).IsEnum) 476TrackClosure(property.PropertyType); 487TrackClosure(property.PropertyType); 536if (!TryGetLoadedType(propertyInfo.PropertyType, out propertyType) || !(propertyType.BuiltInTypeKind == BuiltInTypeKind.EntityType || propertyType.BuiltInTypeKind == BuiltInTypeKind.CollectionType)) 540SessionData.EdmItemErrors.Add(new EdmItemError(System.Data.Entity.Strings.Validator_OSpace_InvalidNavPropReturnType(propertyInfo.Name, propertyInfo.DeclaringType.FullName, propertyInfo.PropertyType.FullName), null)); 626if (!TryGetPrimitiveType(property.PropertyType, out primitiveType)) 630SessionData.EdmItemErrors.Add(new EdmItemError(System.Data.Entity.Strings.Validator_OSpace_ScalarPropertyNotPrimitive(property.Name, property.DeclaringType.FullName, property.PropertyType.FullName), null)); 659(Nullable.GetUnderlyingType(clrProperty.PropertyType) ?? clrProperty.PropertyType).IsEnum, 664if (!TryGetLoadedType(clrProperty.PropertyType, out propertyType) || !Helper.IsEnumType(propertyType)) 671clrProperty.PropertyType.FullName), null)); 699if (!TryGetLoadedType(clrProperty.PropertyType, out propertyType) || propertyType.BuiltInTypeKind != BuiltInTypeKind.ComplexType) 703SessionData.EdmItemErrors.Add(new EdmItemError(System.Data.Entity.Strings.Validator_OSpace_ComplexPropertyNotComplex(clrProperty.Name, clrProperty.DeclaringType.FullName, clrProperty.PropertyType.FullName), null));
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (9)
406TrackClosure(typeToTrack.Value.PropertyType); 445TrackClosure(typeToTrack.Value.PropertyType); 569if (TryGetPrimitiveType(clrProperty.PropertyType, out propertyType)) 584string message = Strings.Validator_OSpace_Convention_NonPrimitiveTypeProperty(clrProperty.Name, type.FullName, clrProperty.PropertyType.FullName); 620TrackClosure(typeToTrack.Value.PropertyType); 726return !clrProperty.PropertyType.IsValueType && !clrProperty.PropertyType.IsAssignableFrom(typeof(string)) && clrProperty.Name == cspaceMember.Name; 754bool nullableFacetValue = !isKeyMember && (!clrProperty.PropertyType.IsValueType || Nullable.GetUnderlyingType(clrProperty.PropertyType) != null);
System\Data\Objects\DataRecordObjectView.cs (2)
82if (props[idx].GetIndexParameters().Length > 0 && props[idx].PropertyType != typeof(object)) 127itemType = typedIndexer.PropertyType;
System\Data\Objects\ELinq\Translator.cs (3)
365Type propertyType = ((PropertyInfo)clrMember).PropertyType; 375InitializerMetadata.CreateEntityCollectionInitializer(parent.EdmItemCollection, ((PropertyInfo)clrMember).PropertyType, navProp)); 462propertyInfo.PropertyType.Equals(typeof(int)))
System\Data\Objects\ELinq\TypeSystem.cs (1)
128type = property.PropertyType;
System\Data\Objects\Internal\EntityProxyFactory.cs (17)
467MakeGenericMethod(proxyType, property.PropertyType). 675PropertyBuilder propertyBuilder = TypeBuilder.DefineProperty(member.Name, System.Reflection.PropertyAttributes.None, baseProperty.PropertyType, Type.EmptyTypes); 743MethodBuilder getterBuilder = typeBuilder.DefineMethod("get_" + baseProperty.Name, getterAccess | getterAttributes, baseProperty.PropertyType, Type.EmptyTypes); 763MethodBuilder setterBuilder = typeBuilder.DefineMethod("set_" + baseProperty.Name, methodAccess | methodAttributes, null, new Type[] { baseProperty.PropertyType }); 888Type interceptorType = typeof(Func<,,>).MakeGenericType(typeBuilder, baseProperty.PropertyType, typeof(bool)); 893MethodBuilder getterBuilder = typeBuilder.DefineMethod("get_" + baseProperty.Name, getterAccess | getterAttributes, baseProperty.PropertyType, Type.EmptyTypes); 904generator.DeclareLocal(baseProperty.PropertyType); // T value 1021gen.Emit(OpCodes.Castclass, _baseSetters[i].PropertyType); 1106if (clrProperty.PropertyType.IsGenericType && 1107clrProperty.PropertyType.GetGenericTypeDefinition() == typeof(ICollection<>)) 1175MethodInfo getRelatedCollection = s_GetRelatedCollection.MakeGenericMethod(EntityUtil.GetCollectionElementType(navProperty.Value.PropertyType)); 1230MethodBuilder setterBuilder = typeBuilder.DefineMethod("set_" + baseProperty.Name, methodAccess | methodAttributes, null, new Type[] { baseProperty.PropertyType }); 1247Type propertyType = baseProperty.PropertyType; 1351MethodInfo specificGetRelatedReference = s_GetRelatedReference.MakeGenericMethod(baseProperty.PropertyType); 1352MethodInfo specificEntityReferenceSetValue = typeof(EntityReference<>).MakeGenericType(baseProperty.PropertyType).GetMethod("set_Value"); ; 1354MethodBuilder setterBuilder = typeBuilder.DefineMethod("set_" + baseProperty.Name, methodAccess | methodAttributes, null, new Type[] { baseProperty.PropertyType }); 1376MethodBuilder setterBuilder = typeBuilder.DefineMethod("set_" + baseProperty.Name, methodAccess | methodAttributes, null, new Type[] { baseProperty.PropertyType });
System\Data\Objects\Internal\LazyLoadBehavior.cs (1)
128Type propertyValueType = propertyInfo.PropertyType;
System\Data\Objects\Internal\PocoPropertyAccessorStrategy.cs (1)
121navPropType = property.PropertyType;
System\Data\Query\InternalTrees\ColumnMapFactory.cs (4)
148var propertyUnderlyingType = Nullable.GetUnderlyingType(prop.PropertyType) ?? prop.PropertyType; 149Type propType = propertyUnderlyingType.IsEnum ? propertyUnderlyingType.GetEnumUnderlyingType() : prop.PropertyType; 159Expression.Bind(prop, Expression.Parameter(prop.PropertyType, "placeholder")),
System.Data.Linq (12)
Mapping\Accessors.cs (7)
93Type dgetType = typeof(DGet<,>).MakeGenericType(objectType, pi.PropertyType); 98throw Error.CouldNotCreateAccessorToProperty(objectType, pi.PropertyType, pi); 103dset = Delegate.CreateDelegate(typeof(DSet<,>).MakeGenericType(objectType, pi.PropertyType), pi.GetSetMethod(true), true); 109new Type[] { objectType.MakeByRefType(), pi.PropertyType }, 120drset = mset.CreateDelegate(typeof(DRSet<,>).MakeGenericType(objectType, pi.PropertyType)); 124Type saType = (storageAccessor != null) ? storageAccessor.Type : pi.PropertyType; 126typeof(Accessor<,,>).MakeGenericType(objectType, pi.PropertyType, saType),
Mapping\AttributedMetaModel.cs (1)
141Type pt = pi.PropertyType;
Mapping\MappedMetaModel.cs (1)
111Type pt = pi.PropertyType;
SqlClient\Common\TypeSystem.cs (1)
76if (pi != null) return pi.PropertyType;
SqlClient\SqlTypeSystemProvider.cs (2)
992piPrecision.SetValue(parameter, Convert.ChangeType(sqlType.Precision, piPrecision.PropertyType, CultureInfo.InvariantCulture), null); 996piScale.SetValue(parameter, Convert.ChangeType(sqlType.Scale, piScale.PropertyType, CultureInfo.InvariantCulture), null);
System.Data.Services (8)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (3)
1401propertyType = ResourceType.GetPrimitiveResourceType(propertyInfo.PropertyType); 1421propertyType = knownTypes[propertyInfo.PropertyType]; 1425propertyType = knownTypes[propertyInfo.PropertyType];
System\Data\Services\Providers\ReflectionServiceProvider.cs (5)
200if (WebUtil.IsPrimitiveType(property.PropertyType) && 201!property.PropertyType.IsGenericType) 256Type elementType = BaseServiceProvider.GetIQueryableElement(property.PropertyType); 631Type resourcePropertyType = property.PropertyType; 637Type collectionType = GetIEnumerableElement(property.PropertyType);
System.Data.Services.Client (6)
System\Data\Services\Client\ALinq\PathBox.cs (1)
104Type t = TypeSystem.GetElementType(pi.PropertyType);
System\Data\Services\Client\ALinq\ProjectionAnalyzer.cs (1)
511return propertyInfo.PropertyType;
System\Data\Services\Client\ALinq\ProjectionRewriter.cs (1)
49!(le.Parameters[0].Type.GetProperties().Any(p => p.PropertyType == proposedParameterType))) // lambda parameter must have public property that is same as proposed type.
System\Data\Services\Client\ClientType.cs (2)
138Type ptype = pinfo.PropertyType; // class / interface / value 885this.NullablePropertyType = property.PropertyType;
System\Data\Services\Client\Util.cs (1)
469if (typeof(DataServiceQueryContinuation).IsAssignableFrom(property.PropertyType))
System.Drawing (1)
commonui\System\Drawing\ColorConverter.cs (1)
341if (prop.PropertyType == typeof(Color)) {
System.Management (1)
Instrumentation\SchemaMapping.cs (1)
250 t2 = (field as PropertyInfo).PropertyType;
System.Runtime.Serialization (4)
System\Runtime\Serialization\CodeGenerator.cs (1)
759memberType = property.PropertyType;
System\Runtime\Serialization\DataMember.cs (3)
223return ((PropertyInfo)MemberInfo).PropertyType; 282return DataContract.MethodRequiresMemberAccess(getMethod) || !DataContract.IsTypeVisible(property.PropertyType); 303return DataContract.MethodRequiresMemberAccess(setMethod) || !DataContract.IsTypeVisible(property.PropertyType);
System.ServiceModel (2)
System\ServiceModel\Description\TypeLoader.cs (1)
1309memberType = ((PropertyInfo)memberInfo).PropertyType;
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (1)
555part.Type = (member.MemberType == MemberTypes.Property) ? ((PropertyInfo)member).PropertyType : ((FieldInfo)member).FieldType;
System.Web (17)
parent\DataAnnotations\DataAnnotations\LocalizableString.cs (1)
120if (!this._resourceType.IsVisible || property == null || property.PropertyType != typeof(string)) {
Profile\HttpProfileBase.cs (1)
455SettingsProperty sp = new SettingsProperty(prop.Name, prop.PropertyType, prov, readOnly, defaultValue, serializeAs, settings, false, true);
UI\CollectionBuilder.cs (2)
51SetControlType(propInfo.PropertyType); 67_itemType = propInfo.PropertyType;
UI\ControlBuilder.cs (5)
821entry.Type = propInfo.PropertyType; 912memberType = propInfo.PropertyType; 1016memberType = propInfo.PropertyType; 1179entry.Type = propInfo.PropertyType; 1737childType = pInfo.PropertyType;
UI\PropertyMapper.cs (1)
84currentType = propInfo.PropertyType;
UI\Util.cs (1)
602return propInfo.PropertyType;
UI\WebControls\DataGrid.cs (1)
890sampleItemType = itemProp.PropertyType;
UI\WebControls\GridViewColumnsGenerator.cs (1)
47sampleItemType = itemProp.PropertyType;
UI\WebParts\WebPartManager.cs (3)
2265Type valType = ((pi != null) ? pi.PropertyType : ((val != null) ? val.GetType() : typeof(object))); 3045if ((pi != null) && ((pi.PropertyType == type) || (type == null))) { 3081TypeConverter converter = TypeDescriptor.GetConverter(pi.PropertyType);
Util\FastPropertyAccessor.cs (1)
76propertyType = propInfo.PropertyType;
System.Web.DataVisualization (38)
Common\Utilities\XmlSerializer.cs (38)
398 if(pi.CanRead && pi.PropertyType.GetInterface("IList", true) != null) 846ci = pi.PropertyType.GetConstructor(Type.EmptyTypes); 850throw (new InvalidOperationException(SR.ExceptionChartSerializerDefaultConstructorUndefined(pi.PropertyType.ToString()))); 886 if(!pi.PropertyType.IsClass) 892 if(pi.PropertyType == typeof(string) || 893 pi.PropertyType == typeof(Font) || 894 pi.PropertyType == typeof(Color) || 895 pi.PropertyType == typeof(System.Drawing.Image)) 1530if (pi.CanRead && pi.PropertyType.GetInterface("ICollection", true) != null && !this.SerializeICollAsAtribute(pi, objectToSerialize)) 2156 if(pi.PropertyType == typeof(string)) 2161 else if(pi.PropertyType == typeof(Font)) 2166 else if(pi.PropertyType == typeof(Color)) 2172 else if(pi.PropertyType == typeof(Unit)) 2178 else if(pi.PropertyType == typeof(System.Drawing.Image)) 2378if (pi.CanRead && pi.PropertyType.GetInterface("ICollection", true) != null && !this.SerializeICollAsAtribute(pi, objectToSerialize)) 2967if ((SerializerBase.GetStringHashCode(listItemPI.PropertyType.Name)) == typeHash) 2969typeName = listItemPI.PropertyType.Name; 2973Assembly assembly = listItemPI.PropertyType.Assembly; 2983if (type.IsSubclassOf(listItemPI.PropertyType)) 3074 if(pi.PropertyType == typeof(bool)) 3078 else if(pi.PropertyType == typeof(double)) 3082 else if(pi.PropertyType == typeof(string)) 3086 else if(pi.PropertyType == typeof(int)) 3090 else if(pi.PropertyType == typeof(long)) 3094 else if(pi.PropertyType == typeof(float)) 3098 else if(pi.PropertyType.IsEnum) 3101 objValue = Enum.Parse(pi.PropertyType, reader.ReadString()); 3103 else if(pi.PropertyType == typeof(byte)) 3109 else if(pi.PropertyType == typeof(Unit)) 3115 else if(pi.PropertyType == typeof(Font)) 3121 else if(pi.PropertyType == typeof(Color)) 3127 else if(pi.PropertyType == typeof(DateTime)) 3133 else if(pi.PropertyType == typeof(Size)) 3141 else if(pi.PropertyType == typeof(Margins) ) 3153 else if(pi.PropertyType == typeof(double[])) 3167 else if(pi.PropertyType == typeof(Color[])) 3181 else if(pi.PropertyType == typeof(System.Drawing.Image)) 3247if (pi.CanRead && pi.PropertyType.GetInterface("ICollection", true) != null)
System.Web.DynamicData (4)
DynamicData\DynamicControl.cs (1)
201var value = PropertyConverter.ObjectFromString(propInfo.PropertyType, propInfo, entry.Value);
DynamicData\ModelProviders\DLinqDataModelProvider.cs (3)
43if (prop.PropertyType.IsGenericType && 44prop.PropertyType.GetGenericTypeDefinition() == typeof(Table<>)) 45return prop.PropertyType.GetGenericArguments()[0];
System.Web.Entity (2)
System\Data\WebControls\EntityDataSourceViewSchema.cs (2)
137if (props[idx].GetIndexParameters().Length > 0 && props[idx].PropertyType != typeof(object)) 167itemType = typedIndexer.PropertyType;
System.Web.Extensions (5)
Compilation\WCFModel\SchemaMerger.cs (3)
259if (typeof(XmlAttribute[]) == propertyInfo.PropertyType) 279if (typeof(System.Collections.ICollection).IsAssignableFrom(propertyInfo.PropertyType)) 717Type propertyType = property.PropertyType;
Script\Serialization\ObjectConverter.cs (1)
60if (!ConvertObjectToTypeMain(propertyValue, propInfo.PropertyType, serializer, throwOnError, out propertyValue)) {
UI\WebControls\ContextDataSourceView.cs (1)
125return ((PropertyInfo)mi).PropertyType;
System.Web.Services (4)
System\Web\Services\Protocols\PatternMatcher.cs (3)
81Type fieldType = memberInfo is FieldInfo ? ((FieldInfo)memberInfo).FieldType : ((PropertyInfo)memberInfo).PropertyType; 115Type fieldType = memberInfo is FieldInfo ? ((FieldInfo)memberInfo).FieldType : ((PropertyInfo)memberInfo).PropertyType; 171memberType = propertyInfo.PropertyType;
System\Web\Services\Protocols\SoapReflector.cs (1)
457soapHeader.headerType = ((PropertyInfo)soapHeader.memberInfo).PropertyType;
System.Windows.Forms (10)
winforms\Managed\System\WinForms\BindingMAnagerBase.cs (5)
155if ("Item".Equals(itemProps[i].Name) && itemProps[i].PropertyType != typeof(object)) 156return TypeDescriptor.GetProperties(itemProps[i].PropertyType, new Attribute[] {new BrowsableAttribute(true)}); 173if ("Item".Equals(props[i].Name) && props[i].PropertyType != typeof(object)) { 176itemProps = TypeDescriptor.GetProperties(props[i].PropertyType, new Attribute[] {new BrowsableAttribute(true)}); 205return this.GetItemProperties(props[i].PropertyType, offset + 1, dataSources, listAccessors);
winforms\Managed\System\WinForms\ListBindingHelper.cs (5)
253itemType = indexer.PropertyType; 334name = indexer.PropertyType.Name; 557if (props[idx].GetIndexParameters().Length > 0 && props[idx].PropertyType != typeof(object)) { 588if (indexer != null && !typeof(ICustomTypeDescriptor).IsAssignableFrom(indexer.PropertyType)) { 589Type type = indexer.PropertyType;
System.Windows.Forms.DataVisualization (38)
Common\Utilities\XmlSerializer.cs (38)
398 if(pi.CanRead && pi.PropertyType.GetInterface("IList", true) != null) 846ci = pi.PropertyType.GetConstructor(Type.EmptyTypes); 850throw (new InvalidOperationException(SR.ExceptionChartSerializerDefaultConstructorUndefined(pi.PropertyType.ToString()))); 886 if(!pi.PropertyType.IsClass) 892 if(pi.PropertyType == typeof(string) || 893 pi.PropertyType == typeof(Font) || 894 pi.PropertyType == typeof(Color) || 895 pi.PropertyType == typeof(System.Drawing.Image)) 1530if (pi.CanRead && pi.PropertyType.GetInterface("ICollection", true) != null && !this.SerializeICollAsAtribute(pi, objectToSerialize)) 2156 if(pi.PropertyType == typeof(string)) 2161 else if(pi.PropertyType == typeof(Font)) 2166 else if(pi.PropertyType == typeof(Color)) 2172 else if(pi.PropertyType == typeof(Unit)) 2178 else if(pi.PropertyType == typeof(System.Drawing.Image)) 2378if (pi.CanRead && pi.PropertyType.GetInterface("ICollection", true) != null && !this.SerializeICollAsAtribute(pi, objectToSerialize)) 2967if ((SerializerBase.GetStringHashCode(listItemPI.PropertyType.Name)) == typeHash) 2969typeName = listItemPI.PropertyType.Name; 2973Assembly assembly = listItemPI.PropertyType.Assembly; 2983if (type.IsSubclassOf(listItemPI.PropertyType)) 3074 if(pi.PropertyType == typeof(bool)) 3078 else if(pi.PropertyType == typeof(double)) 3082 else if(pi.PropertyType == typeof(string)) 3086 else if(pi.PropertyType == typeof(int)) 3090 else if(pi.PropertyType == typeof(long)) 3094 else if(pi.PropertyType == typeof(float)) 3098 else if(pi.PropertyType.IsEnum) 3101 objValue = Enum.Parse(pi.PropertyType, reader.ReadString()); 3103 else if(pi.PropertyType == typeof(byte)) 3109 else if(pi.PropertyType == typeof(Unit)) 3115 else if(pi.PropertyType == typeof(Font)) 3121 else if(pi.PropertyType == typeof(Color)) 3127 else if(pi.PropertyType == typeof(DateTime)) 3133 else if(pi.PropertyType == typeof(Size)) 3141 else if(pi.PropertyType == typeof(Margins) ) 3153 else if(pi.PropertyType == typeof(double[])) 3167 else if(pi.PropertyType == typeof(Color[])) 3181 else if(pi.PropertyType == typeof(System.Drawing.Image)) 3247if (pi.CanRead && pi.PropertyType.GetInterface("ICollection", true) != null)
System.Workflow.Activities (13)
Common\CompModHelpers.cs (1)
651return property.PropertyType;
CorrelationValidator.cs (1)
768tempParameterType = propertyInfo.PropertyType;
Designers\StateDesigner.cs (1)
2461return this.realPropertyInfo.PropertyType;
InvokeSchedule.cs (1)
295Type parameterType = propertyInfo.PropertyType;
LocalService\CorrelationResolver.cs (1)
199type = ((PropertyInfo)mInfo).PropertyType;
Rules\Expressions.cs (2)
1109if (pi.PropertyType == null) 1153return new RulePropertyExpressionInfo(pi, pi.PropertyType, false);
Rules\RuleAction.cs (1)
148currentType = property.PropertyType;
Rules\RuleAttributes.cs (1)
150currentType = property.PropertyType;
Rules\RuleValidation.cs (4)
2391IsAuthorized(pi.PropertyType); 2434IsAuthorized(pi.PropertyType); 3588IsAuthorized(pi.PropertyType); 3590return new RulePropertyExpressionInfo(pi, pi.PropertyType, bestCandidate.IsExpanded);
System.Workflow.ComponentModel (61)
AuthoringOM\Bind.cs (9)
128memberType = (eventArgs.MemberInfo as PropertyInfo).PropertyType; 139memberType = (eventArgs.MemberInfo as PropertyInfo).PropertyType; 150memberType = (eventArgs.MemberInfo as PropertyInfo).PropertyType; 280memberType = ((PropertyInfo)memberInfo).PropertyType; 857else if (memberInfo is PropertyInfo && (memberInfo as PropertyInfo).PropertyType == typeof(ActivityBind) && dataSourceObject != null) 1246if (propertyInfo.PropertyType != null) 1247return propertyInfo.PropertyType; 1551newPropertyType = arrayPropertyInfo.PropertyType; 1630return this.originalPropertyInfo.PropertyType;
AuthoringOM\Compiler\TypeSystem\DesignTimeType.cs (1)
1237this.returnType = propertyInfo.PropertyType;
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (2)
725if (matchName && (returnType == null || (returnType.Equals(propInfo.PropertyType)))) 1007get { return this.rtTypeWrapper.ResolveTypeFromTypeSystem(this.propertyInfo.PropertyType); }
AuthoringOM\Compiler\Validation\BindValidator.cs (9)
172Type memberType = (memberInfo is FieldInfo ? (memberInfo as FieldInfo).FieldType : (memberInfo as PropertyInfo).PropertyType); 326else if (propertyInfo.PropertyType == null) 334if ((bind.Path == null || bind.Path.Length == 0) && (validationContext.TargetType != null && !ActivityBindValidator.DoesTargetTypeMatch(validationContext.TargetType, propertyInfo.PropertyType, validationContext.Access))) 336error = new ValidationError(SR.GetString(SR.Error_PropertyTypeMismatch, GetFullPropertyName(manager), propertyInfo.PropertyType.FullName, validationContext.TargetType.FullName), ErrorNumbers.Error_PropertyTypeMismatch); 341memberInfo = MemberBind.GetMemberInfo(propertyInfo.PropertyType, bind.Path); 354error = MemberBind.ValidateTypesInPath(propertyInfo.PropertyType, bind.Path); 369Type memberType = (memberInfo is FieldInfo ? (memberInfo as FieldInfo).FieldType : (memberInfo as PropertyInfo).PropertyType); 856memberType = ((PropertyInfo)(memberInfo)).PropertyType; 894memberType = ((PropertyInfo)(memberInfo)).PropertyType;
AuthoringOM\Design\ComponentSerializationService.cs (1)
627return this.realPropInfo.PropertyType;
AuthoringOM\Design\CustomActivityDesigner.cs (4)
413if (property.PropertyType != null) 414cpc.Add(CreateCustomProperty(serviceProvider, customActivityType, property, property.PropertyType)); 541property.PropertyType.FullName == customProperty.oldPropertyType) 548memberCreationService.RemoveProperty(customActivityType.FullName, property.Name, property.PropertyType);
AuthoringOM\Design\PropertyDescriptors.cs (1)
508addMember = (getAccessor != null && TypeProvider.IsAssignable(memberType, propertyInfo.PropertyType));
AuthoringOM\Design\WorkflowInlining.cs (1)
404PropertyDescriptor prop = new ParameterInfoBasedPropertyDescriptor(Type.GetType(InvokeWorkflowRef), parameterProperty.Name, parameterProperty.PropertyType, ReservedParameterNames.Contains(parameterProperty.Name), DesignOnlyAttribute.Yes);
AuthoringOM\Design\XomlDesignerLoader.cs (1)
718args.CurrentProperty.PropertyType == typeof(System.Type) &&
AuthoringOM\Serializer\ExtendedPropertyInfo.cs (1)
101return this.realPropertyInfo.PropertyType;
AuthoringOM\Serializer\MarkupExtensionSerializer.cs (2)
107WorkflowMarkupSerializer propSerializer = serializationManager.GetSerializer(serializableProperty.PropertyType, typeof(WorkflowMarkupSerializer)) as WorkflowMarkupSerializer; 110serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerNotAvailable, serializableProperty.PropertyType.FullName)));
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (28)
793if (propertyValue == null && TypeProvider.IsAssignable(typeof(Type), property.PropertyType)) 809propertyInfoType = property.PropertyType; 1037(contentProperty.Property == null || contentProperty.Property.PropertyType != typeof(object))) 1161if (defaultValueAttr.Value is IConvertible && value is IConvertible && object.Equals(Convert.ChangeType(defaultValueAttr.Value, property.PropertyType, CultureInfo.InvariantCulture), Convert.ChangeType(value, property.PropertyType, CultureInfo.InvariantCulture))) 1383if (!(obj is CodeObject) || !typeof(ICollection).IsAssignableFrom(property.PropertyType)) 1512if (propValue != null && propertyInfo.PropertyType.IsAssignableFrom(propValue.GetType())) 1622(value == null || pi.PropertyType.IsAssignableFrom(value.GetType()))) 1922propertyType = property.PropertyType; 2012if (memberValue is string && TypeProvider.IsAssignable(typeof(Type), property.PropertyType)) 2892this.contentPropertySerializer = this.serializationManager.GetSerializer(this.contentProperty.PropertyType, typeof(WorkflowMarkupSerializer)) as WorkflowMarkupSerializer; 2903else if (!this.contentProperty.PropertyType.IsValueType && 2904!this.contentProperty.PropertyType.IsPrimitive && 2905this.contentProperty.PropertyType != typeof(string) && 2906!IsMarkupExtension(this.contentProperty.PropertyType) && 2909WorkflowMarkupSerializer serializer = serializationManager.GetSerializer(this.contentProperty.PropertyType, typeof(WorkflowMarkupSerializer)) as WorkflowMarkupSerializer; 2912serializationManager.ReportError(CreateSerializationError(SR.GetString(SR.Error_SerializerNotAvailable, this.contentProperty.PropertyType.FullName), reader)); 2917contentPropertyValue = serializer.CreateInstance(serializationManager, this.contentProperty.PropertyType); 2921serializationManager.ReportError(CreateSerializationError(SR.GetString(SR.Error_SerializerCreateInstanceFailed, this.contentProperty.PropertyType.FullName, e.Message), reader)); 2943this.serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerNotAvailableForSerialize, this.contentProperty.PropertyType.FullName))); 3008if (CollectionMarkupSerializer.IsValidCollectionType(this.contentProperty.PropertyType)) 3043if (!this.contentProperty.PropertyType.IsAssignableFrom(content.GetType()) && typeof(string).IsAssignableFrom(content.GetType())) 3047content = this.contentPropertySerializer.DeserializeFromString(this.serializationManager, this.contentProperty.PropertyType, content as string); 3059this.serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_ContentCanNotBeConverted, content as string, contentProperty.Name, this.parentObject.GetType().FullName, this.contentProperty.PropertyType.FullName), contents[0].LineNumber, contents[0].LinePosition)); 3061else if (!contentProperty.PropertyType.IsAssignableFrom(content.GetType())) 3063this.serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_ContentPropertyValueInvalid, content.GetType(), this.contentProperty.Name, this.contentProperty.PropertyType.FullName), contents[0].LineNumber, contents[0].LinePosition)); 3069if (this.contentProperty.PropertyType == typeof(string)) 3071content = new WorkflowMarkupSerializer().DeserializeFromString(this.serializationManager, this.contentProperty.PropertyType, content as string);
Shared\CompModHelpers.cs (1)
649return property.PropertyType;
System.Workflow.Runtime (7)
System\Activities\Statements\Interop.cs (6)
242RuntimeArgument inArgument = new RuntimeArgument(propertyInName, propertyInfo.PropertyType, ArgumentDirection.In); 243RuntimeArgument outArgument = new RuntimeArgument(propertyOutName, propertyInfo.PropertyType, ArgumentDirection.Out); 638InteropProperty descriptor = new LiteralProperty(this, property.Name, property.PropertyType, newAttributes); 647inDescriptor = new ArgumentProperty(this, property.Name + InArgumentSuffix, Argument.Create(property.PropertyType, ArgumentDirection.In), newAttributes); 651inDescriptor = new ArgumentProperty(this, property.Name, Argument.Create(property.PropertyType, ArgumentDirection.In), newAttributes); 655InteropProperty outDescriptor = new ArgumentProperty(this, property.Name + OutArgumentSuffix, Argument.Create(property.PropertyType, ArgumentDirection.Out), newAttributes);
System\Activities\Statements\InteropEnvironment.cs (1)
366if (activityConditionType.IsAssignableFrom(propertyInfo.PropertyType))
System.WorkflowServices (1)
System\Workflow\Activities\ContractType.cs (1)
747this.returnType = propertyInfo.PropertyType;
System.Xml (16)
System\Xml\Serialization\CodeGenerator.cs (2)
743memberType = property.PropertyType; 775memberType = property.PropertyType;
System\Xml\Serialization\Models.cs (5)
192TypeDesc typeDesc = ModelScope.TypeScope.GetTypeDesc(propertyInfo.PropertyType, propertyInfo, true, false); 196CheckSupportedMember(typeDesc, propertyInfo, propertyInfo.PropertyType); 197return new FieldModel(propertyInfo, propertyInfo.PropertyType, typeDesc); 267if (this.checkSpecified != SpecifiedAccessor.None && specifiedProperty.PropertyType != typeof(bool)) { 268throw new InvalidOperationException(Res.GetString(Res.XmlInvalidSpecifiedType, specifiedProperty.Name, specifiedProperty.PropertyType.FullName, typeof(bool).FullName));
System\Xml\Serialization\SourceInfo.cs (1)
156((FieldInfo)MemberInfo).FieldType : ((PropertyInfo)MemberInfo).PropertyType;
System\Xml\Serialization\Types.cs (4)
1142Type currentType = (p == null ? typeof(object) : p.PropertyType); 1193MethodInfo addMethod = type.GetMethod("Add", new Type[] { indexer.PropertyType }); 1195throw new InvalidOperationException(Res.GetString(Res.XmlNoAddMethod, type.FullName, indexer.PropertyType, "ICollection")); 1200return GetDefaultIndexer(type, memberInfo).PropertyType;
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 (1)
3556writer.Write(GetStringForTypeof(CodeIdentifier.GetCSharpName(defaultIndexer.PropertyType), elementUseReflection));
System\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
2389initValue.ILG.ConvertValue(propInfo.PropertyType, localA.LocalType);