1 write to _xamlType
System.Xaml (1)
System\Xaml\Schema\XamlTypeInvoker.cs (1)
40
_xamlType
= type ?? throw new ArgumentNullException(nameof(type));
33 references to _xamlType
System.Xaml (33)
System\Xaml\Schema\XamlTypeInvoker.cs (33)
57
get { return
_xamlType
!= null ?
_xamlType
.SetMarkupExtensionHandler : null; }
62
get { return
_xamlType
!= null ?
_xamlType
.SetTypeConverterHandler : null; }
76
if (!
_xamlType
.IsCollection)
83
itemType =
_xamlType
.SchemaContext.GetXamlType(item.GetType());
87
itemType =
_xamlType
.ItemType;
92
throw new XamlSchemaException(SR.Format(SR.NoAddMethodFound,
_xamlType
, itemType));
108
if (!
_xamlType
.IsDictionary)
115
itemType =
_xamlType
.SchemaContext.GetXamlType(item.GetType());
119
itemType =
_xamlType
.ItemType;
124
throw new XamlSchemaException(SR.Format(SR.NoAddMethodFound,
_xamlType
, itemType));
132
if (!
_xamlType
.UnderlyingType.IsValueType && (arguments == null || arguments.Length == 0))
140
return Activator.CreateInstance(
_xamlType
.UnderlyingType, arguments);
146
if (IsUnknown ||
_xamlType
.ItemType == null)
152
if (contentType ==
_xamlType
.ItemType ||
153
(
_xamlType
.AllowedContentTypes.Count == 1 && contentType.CanAssignTo(
_xamlType
.ItemType)))
155
return
_xamlType
.AddMethod;
159
if (!
_xamlType
.IsCollection)
169
addMethods.Add(
_xamlType
.ItemType,
_xamlType
.AddMethod);
170
foreach (XamlType type in
_xamlType
.AllowedContentTypes)
173
_xamlType
.UnderlyingType, type.UnderlyingType);
209
return
_xamlType
.GetEnumeratorMethod;
221
if (!
_xamlType
.IsCollection && !
_xamlType
.IsDictionary)
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;