1 write to _xamlType
System.Xaml (1)
System\Xaml\Schema\XamlTypeInvoker.cs (1)
31
_xamlType
= type ?? throw new ArgumentNullException(nameof(type));
30 references to _xamlType
System.Xaml (30)
System\Xaml\Schema\XamlTypeInvoker.cs (30)
49
get { return
_xamlType
?.SetMarkupExtensionHandler; }
54
get { return
_xamlType
?.SetTypeConverterHandler; }
67
if (!
_xamlType
.IsCollection)
75
itemType =
_xamlType
.SchemaContext.GetXamlType(item.GetType());
79
itemType =
_xamlType
.ItemType;
85
throw new XamlSchemaException(SR.Format(SR.NoAddMethodFound,
_xamlType
, itemType));
101
if (!
_xamlType
.IsDictionary)
109
itemType =
_xamlType
.SchemaContext.GetXamlType(item.GetType());
113
itemType =
_xamlType
.ItemType;
119
throw new XamlSchemaException(SR.Format(SR.NoAddMethodFound,
_xamlType
, itemType));
128
if (!
_xamlType
.UnderlyingType.IsValueType && (arguments is null || arguments.Length == 0))
137
return Activator.CreateInstance(
_xamlType
.UnderlyingType, arguments);
143
if (IsUnknown ||
_xamlType
.ItemType is null)
149
if (contentType ==
_xamlType
.ItemType ||
150
(
_xamlType
.AllowedContentTypes.Count == 1 && contentType.CanAssignTo(
_xamlType
.ItemType)))
152
return
_xamlType
.AddMethod;
156
if (!
_xamlType
.IsCollection)
166
addMethods.Add(
_xamlType
.ItemType,
_xamlType
.AddMethod);
167
foreach (XamlType type in
_xamlType
.AllowedContentTypes)
170
_xamlType
.UnderlyingType, type.UnderlyingType);
207
return
_xamlType
.GetEnumeratorMethod;
219
if (!
_xamlType
.IsCollection && !
_xamlType
.IsDictionary)
234
Type type =
_xamlType
.UnderlyingType.UnderlyingSystemType;
244
get { return
_xamlType
is null ||
_xamlType
.UnderlyingType is null; }
274
object inst = FormatterServices.GetUninitializedObject(type.
_xamlType
.UnderlyingType);
308
Type underlyingType = type.
_xamlType
.UnderlyingType.UnderlyingSystemType;