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