1 write to _xamlType
System.Xaml (1)
System\Xaml\Schema\XamlTypeInvoker.cs (1)
32
_xamlType
= type ?? throw new ArgumentNullException(nameof(type));
30 references to _xamlType
System.Xaml (30)
System\Xaml\Schema\XamlTypeInvoker.cs (30)
50
get { return
_xamlType
?.SetMarkupExtensionHandler; }
55
get { return
_xamlType
?.SetTypeConverterHandler; }
68
if (!
_xamlType
.IsCollection)
76
itemType =
_xamlType
.SchemaContext.GetXamlType(item.GetType());
80
itemType =
_xamlType
.ItemType;
86
throw new XamlSchemaException(SR.Format(SR.NoAddMethodFound,
_xamlType
, itemType));
102
if (!
_xamlType
.IsDictionary)
110
itemType =
_xamlType
.SchemaContext.GetXamlType(item.GetType());
114
itemType =
_xamlType
.ItemType;
120
throw new XamlSchemaException(SR.Format(SR.NoAddMethodFound,
_xamlType
, itemType));
129
if (!
_xamlType
.UnderlyingType.IsValueType && (arguments is null || arguments.Length == 0))
138
return Activator.CreateInstance(
_xamlType
.UnderlyingType, arguments);
144
if (IsUnknown ||
_xamlType
.ItemType is null)
150
if (contentType ==
_xamlType
.ItemType ||
151
(
_xamlType
.AllowedContentTypes.Count == 1 && contentType.CanAssignTo(
_xamlType
.ItemType)))
153
return
_xamlType
.AddMethod;
157
if (!
_xamlType
.IsCollection)
167
addMethods.Add(
_xamlType
.ItemType,
_xamlType
.AddMethod);
168
foreach (XamlType type in
_xamlType
.AllowedContentTypes)
171
_xamlType
.UnderlyingType, type.UnderlyingType);
208
return
_xamlType
.GetEnumeratorMethod;
220
if (!
_xamlType
.IsCollection && !
_xamlType
.IsDictionary)
235
Type type =
_xamlType
.UnderlyingType.UnderlyingSystemType;
245
get { return
_xamlType
is null ||
_xamlType
.UnderlyingType is null; }
275
object inst = FormatterServices.GetUninitializedObject(type.
_xamlType
.UnderlyingType);
309
Type underlyingType = type.
_xamlType
.UnderlyingType.UnderlyingSystemType;