187 references to UnderlyingType
PresentationFramework (84)
System\Windows\Controls\ItemsPresenter.cs (1)
325type = xType.UnderlyingType;
System\Windows\FrameworkTemplate.cs (1)
588if (typeof(ResourceDictionary).IsAssignableFrom(type.UnderlyingType))
System\Windows\Markup\Baml2006\Baml2006Reader.cs (18)
883optimizedStaticResource.KeyValue = xamlType.UnderlyingType; 1062!_context.CurrentFrame.Member.Type.UnderlyingType.IsAssignableFrom(typeof(String))) 1090_xamlNodesWriter.WriteValue(BamlSchemaContext.GetXamlType(typeId).UnderlyingType); 1370if (_context.CurrentFrame.XamlType.UnderlyingType == typeof(EventSetter)) 1375Type currentType = eventProperty.DeclaringType.UnderlyingType; 1385eventProperty.DeclaringType.UnderlyingType); 1529converter = new EnumConverter(_context.CurrentFrame.XamlType.UnderlyingType); 1547Type type = BamlSchemaContext.GetXamlType(_binaryReader.ReadInt16()).UnderlyingType; 1587Type propertyType = property.Type.UnderlyingType; 1680param = BamlSchemaContext.GetXamlType(valueId).UnderlyingType; 1696param = BamlSchemaContext.GetXamlType(valueId).UnderlyingType; 1789typeExtensionType = BamlSchemaContext.GetXamlType(valueId).UnderlyingType; 1825value = BamlSchemaContext.GetXamlType(valueId).UnderlyingType; 1860_xamlNodesWriter.WriteValue(type.UnderlyingType); 1939_xamlNodesWriter.WriteValue(xamlType.UnderlyingType); 2520return Enum.ToObject(type.UnderlyingType, bytes).ToString(); 2594Debug.Assert(property.Type.UnderlyingType == typeof(DependencyProperty)); 2673memberType = BamlSchemaContext.GetPropertyDeclaringType(valueId).UnderlyingType;
System\Windows\Markup\Baml2006\Baml2006ReaderInternal.cs (1)
57property.DeclaringType.UnderlyingType == typeof(System.Windows.ResourceDictionary) &&
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (1)
165return xamlType.UnderlyingType;
System\Windows\Markup\Baml2006\WpfKnownType.cs (3)
363return UnderlyingType.GetCustomAttributes(inherit); 381return UnderlyingType.GetCustomAttributes(attributeType, inherit); 421return UnderlyingType.IsDefined(attributeType, inherit);
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (4)
142_masterTypeTable.Add(bamlType.UnderlyingType, bamlType); 227if (xamlType != null && xamlType.UnderlyingType == type) 233if (xamlType != null && xamlType.UnderlyingType == type) 317return xamlType.UnderlyingType;
System\Windows\Markup\Baml2006\WpfSharedXamlSchemaContext.cs (1)
34if (xType == null || xType.UnderlyingType != type)
System\Windows\Markup\Baml2006\WpfXamlType.cs (12)
98if (UnderlyingType == typeof(ResourceDictionary)) 102else if (typeof(ResourceDictionary).IsAssignableFrom(UnderlyingType)) 104InterfaceMapping map = UnderlyingType.GetInterfaceMap(typeof(System.Windows.Markup.INameScope)); 229name, UnderlyingType); 300if ((property = DependencyProperty.FromName(name, this.UnderlyingType)) != null) 486if (UnderlyingType.IsArray) 490if (typeof(IDictionary).IsAssignableFrom(UnderlyingType)) 494if (typeof(IList).IsAssignableFrom(UnderlyingType)) 499if (typeof(System.Windows.Documents.DocumentReferenceCollection).IsAssignableFrom(UnderlyingType) || 500typeof(System.Windows.Documents.PageContentCollection).IsAssignableFrom(UnderlyingType)) 506if (typeof(ICollection<System.Windows.Data.XmlNamespaceMapping>).IsAssignableFrom(UnderlyingType) 525return typeof(System.Windows.Data.XmlNamespaceMappingCollection).IsAssignableFrom(UnderlyingType);
System\Windows\Markup\DependencyPropertyConverter.cs (2)
136type = schemaContext.GetXamlType(reader.ReadInt16()).UnderlyingType; 264return templateHolder.GetTypeForName(target).UnderlyingType;
System\Windows\Markup\RestrictiveXamlXmlReader.cs (1)
106if ((NodeType == System.Xaml.XamlNodeType.StartObject && !IsAllowedType(Type.UnderlyingType)) ||
System\Windows\Markup\SetterTriggerConditionValueConverter.cs (3)
127if (xamlProperty.Type.UnderlyingType.IsEnum && schemaContext is Baml2006.Baml2006SchemaContext) 129typeConverter = XamlReader.BamlSharedSchemaContext.GetTypeConverter(xamlProperty.Type.UnderlyingType); 155if (xamlProperty != null && xamlProperty.Type.UnderlyingType == typeof(Boolean))
System\Windows\Markup\WpfXamlLoader.cs (3)
279FrameworkPropertyMetadata metadata = prop.GetMetadata(stack.CurrentFrame.Type.UnderlyingType) as FrameworkPropertyMetadata; 389if (typeof(DependencyObject).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType)) 402typeof(Style).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType))
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (1)
382return result == null || result.IsPublic ? result : GetInternalType(result.UnderlyingType, result);
System\Windows\TemplateContent.cs (32)
126(typeof(FrameworkTemplate).IsAssignableFrom(CurrentFrame.Type.UnderlyingType) || 127typeof(Style).IsAssignableFrom(CurrentFrame.Type.UnderlyingType))); 151(typeof(FrameworkTemplate).IsAssignableFrom(CurrentFrame.Type.UnderlyingType) || 152typeof(Style).IsAssignableFrom(CurrentFrame.Type.UnderlyingType))); 319OwnerTemplate.ChildTypeFromChildIndex.Add(childIndex, type.UnderlyingType); 416if (xamlReader.Type.UnderlyingType == typeof(StaticResourceExtension)) 436if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 437typeof(FrameworkContentElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType)) 464if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 465typeof(FrameworkContentElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType)) 489if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 490typeof(FrameworkContentElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType)) 506if (typeof(ContentPresenter).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType)) 527if (typeof(GridViewRowPresenter).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType)) 556if (typeof(GridViewRowPresenter).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType)) 563else if (typeof(ContentPresenter).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType)) 619IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 621IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType)) 667if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 668typeof(FrameworkContentElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType)) 678if (typeof(ContentPresenter).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) 733if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 734typeof(FrameworkContentElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType)) 756Debug.Assert(xamlReader.Type.UnderlyingType == typeof(StaticResourceExtension)); 824if (!typeof(FrameworkElement).IsAssignableFrom(parentType.UnderlyingType) && 825!typeof(FrameworkContentElement).IsAssignableFrom(parentType.UnderlyingType)) 898Type typeofValue = xamlReader.Type.UnderlyingType; 904if (!IsTypeShareable(xamlReader.Type.UnderlyingType)) 920if (typeof(FrameworkTemplate).IsAssignableFrom(xamlReader.Type.UnderlyingType)) 925else if (typeof(Style).IsAssignableFrom(xamlReader.Type.UnderlyingType)) 948if (typeof(StaticResourceExtension).IsAssignableFrom(xamlReader.Type.UnderlyingType)) 1451return _schemaContext.GetXamlType(XamlTypeName.Parse(qualifiedTypeName, this)).UnderlyingType;
System.Xaml (103)
System\Xaml\Context\ObjectWriterContext.cs (3)
166if (xamlType == null || xamlType.UnderlyingType == null) 172return xamlType.UnderlyingType; 904if (xamlType.UnderlyingType != null)
System\Xaml\Context\ServiceProviderContext.cs (1)
390return _xamlContext.GetDestinationType().UnderlyingType;
System\Xaml\Context\XamlParserContext.cs (2)
122allowProtectedForType = rootObjectType.UnderlyingType; 297allowProtectedForType = CurrentType.UnderlyingType;
System\Xaml\InfosetObjects\XamlObjectWriter.cs (4)
1412typeof(IDictionary).IsAssignableFrom(dictionaryType.UnderlyingType) && 1413!IsBuiltInGenericDictionary(dictionaryType.UnderlyingType)) 1827if (itemType.UnderlyingType.IsAssignableFrom(type)) 2189Type rootInstanceType = (curInstance != null) ? curInstance.GetType() : ctx.CurrentType.UnderlyingType;
System\Xaml\Parser\MeScanner.cs (2)
301(xamlType.UnderlyingType != null && 302KS.Eq(xamlType.UnderlyingType.Name, typeName.Name + KnownStrings.Extension)))
System\Xaml\Runtime\ClrObjectRuntime.cs (5)
57throw CreateException(SR.Format(SR.NoConstructor, xamlType.UnderlyingType), ex); 65throw CreateException(SR.Format(SR.ConstructorInvocation, xamlType.UnderlyingType), UnwrapTargetInvocationException(ex)); 76Type type = xamlType.UnderlyingType; 374Type keyType = dictionaryType.KeyType.UnderlyingType; 375Type itemType = dictionaryType.ItemType.UnderlyingType;
System\Xaml\Runtime\DynamicMethodRuntime.cs (1)
192return CreateInstanceWithCtor(xamlType.UnderlyingType, args);
System\Xaml\Schema\TypeReflector.cs (2)
397if (xamlType.UnderlyingType == null) 403object obj = GetCustomAttribute(typeof(XAML3.NameScopePropertyAttribute), xamlType.UnderlyingType);
System\Xaml\Schema\XamlMemberInvoker.cs (1)
121args = new Type[] { _member.TargetType.UnderlyingType ?? typeof(object) };
System\Xaml\Schema\XamlNamespace.cs (3)
109Type openType = openXamlType?.UnderlyingType; 161Debug.Assert(typeArgs[n].UnderlyingType != null); 163clrTypeArgs[n] = typeArgs[n].UnderlyingType;
System\Xaml\Schema\XamlTypeInvoker.cs (9)
132if (!_xamlType.UnderlyingType.IsValueType && (arguments == null || arguments.Length == 0)) 140return Activator.CreateInstance(_xamlType.UnderlyingType, arguments); 173_xamlType.UnderlyingType, type.UnderlyingType); 237Type type = _xamlType.UnderlyingType.UnderlyingSystemType; 252Type type = _xamlType.UnderlyingType.UnderlyingSystemType; 261get { return _xamlType == null || _xamlType.UnderlyingType == null; } 291object inst = FormatterServices.GetUninitializedObject(type._xamlType.UnderlyingType); 322Type underlyingType = type._xamlType.UnderlyingType.UnderlyingSystemType;
System\Xaml\Schema\XamlValueConverter.cs (3)
74TargetType.UnderlyingType != null && TargetType.UnderlyingType.IsEnum) 76return (TConverterBase)(object)new EnumConverter(TargetType.UnderlyingType);
System\Xaml\XamlObjectReader.cs (7)
1654if ((potentialProperty.Type.UnderlyingType == paraminfo.ParameterType) && 1694if (member == null && !valueXamlType.UnderlyingType.IsValueType) 1711if (((MemberMarkupInfo)property).IsFactoryMethod && !xamlType.UnderlyingType.IsNested) 1720if (xamlType.UnderlyingType.IsNested) 2110property.Type.UnderlyingType == parameter.ParameterType) 3225if (member.DeclaringType.UnderlyingType == baseDeclaringType) 3246if (baseType.UnderlyingType == baseDeclaringType)
System\Xaml\XamlSchemaContext.cs (3)
310if (typeArg.UnderlyingType == null) 327result = GetXamlType(result.UnderlyingType); 894Type clrType = type.UnderlyingType;
System\Xaml\XamlType.cs (54)
418Type baseUnderlyingType = xamlType.UnderlyingType; 422Type curUnderlyingType = curType.UnderlyingType; 493if (ItemType == null || UnderlyingType == null) 501if (UnderlyingType != null && ItemType.UnderlyingType != null) 504GetIsReadOnlyMethod(UnderlyingType, ItemType.UnderlyingType); 544if (UnderlyingType == null) 552_reflector.AddMethod = CollectionReflector.LookupAddMethod(UnderlyingType, collectionKind); 562if (GetCollectionKind() == XamlCollectionKind.None || UnderlyingType == null) 569_reflector.GetEnumeratorMethod = CollectionReflector.GetEnumeratorMethod(UnderlyingType); 594Type underlyingType = UnderlyingType; 613if (UnderlyingType == null) 619return UnderlyingType.GetConstructors(); 627if (UnderlyingType == null) 708Type underlyingType = UnderlyingType; 722if (UnderlyingType == null) 728XamlCollectionKind result = CollectionReflector.LookupCollectionKind(UnderlyingType, out addMethod); 738Type underlyingType = UnderlyingType; 828Type underlyingType = UnderlyingType; 862return (UnderlyingType != null) ? new XamlTypeInvoker(this) : null; 877if (UnderlyingType != null) 879return !UnderlyingType.IsValueType || IsNullableGeneric(); 890return UnderlyingType == null; 926else if (UnderlyingType == null && BaseType != null) 949else if (UnderlyingType != null) 951if (UnderlyingType.IsArray) 953result = UnderlyingType.GetElementType(); 984if (UnderlyingType == null) 994if (UnderlyingType == null) 1029if (UnderlyingType == null) 1062if (UnderlyingType == null) 1088if (UnderlyingType == null) 1114Type underlyingType = UnderlyingType; 1170Type underlyingType = UnderlyingType; 1214Type underlyingType = UnderlyingType; 1272if (UnderlyingType != null) 1282typeof(EventHandler<XamlSetMarkupExtensionEventArgs>), UnderlyingType, methodName); 1294if (UnderlyingType != null) 1304typeof(EventHandler<XamlSetTypeConverterEventArgs>), UnderlyingType, methodName); 1395reflector = new TypeReflector(UnderlyingType); 1448foreach (ConstructorInfo ctor in UnderlyingType.GetConstructors(ConstructorBindingFlags)) 1528return UnderlyingType != null 1529&& (KS.Eq(UnderlyingType.Name, KnownStrings.NullableOfT) 1530&& UnderlyingType.Assembly == typeof(Nullable<>).Assembly 1531&& UnderlyingType.Namespace == typeof(Nullable<>).Namespace); 1536if (UnderlyingType == null) 1571if (UnderlyingType == XamlLanguage.Type.UnderlyingType) 1596throw new XamlSchemaException(SR.Format(SR.MarkupExtensionWithDuplicateArity, UnderlyingType, typeVector.Length)); 1738else if (UnderlyingType != null) 1741return UnderlyingType.GetHashCode() ^ 8; 1794return xamlType1.UnderlyingType == xamlType2.UnderlyingType;
System\Xaml\XamlXmlWriter.cs (3)
1890Type objectClrType = objectXamlType.UnderlyingType; 1915if ((potentialProperty.Type.UnderlyingType == paraminfo.ParameterType) && 1954Type underlyingType = xamlType.UnderlyingType;