1 write to _xamlType
System.Xaml (1)
System\Xaml\Schema\XamlTypeInvoker.cs (1)
32
_xamlType
= type ?? throw new ArgumentNullException(nameof(type));
32 references to _xamlType
System.Xaml (32)
System\Xaml\Schema\XamlTypeInvoker.cs (32)
49
get { return
_xamlType
is not null ?
_xamlType
.SetMarkupExtensionHandler : null; }
54
get { return
_xamlType
is not null ?
_xamlType
.SetTypeConverterHandler : null; }
68
if (!
_xamlType
.IsCollection)
75
itemType =
_xamlType
.SchemaContext.GetXamlType(item.GetType());
79
itemType =
_xamlType
.ItemType;
84
throw new XamlSchemaException(SR.Format(SR.NoAddMethodFound,
_xamlType
, itemType));
100
if (!
_xamlType
.IsDictionary)
107
itemType =
_xamlType
.SchemaContext.GetXamlType(item.GetType());
111
itemType =
_xamlType
.ItemType;
116
throw new XamlSchemaException(SR.Format(SR.NoAddMethodFound,
_xamlType
, itemType));
124
if (!
_xamlType
.UnderlyingType.IsValueType && (arguments is null || arguments.Length == 0))
132
return Activator.CreateInstance(
_xamlType
.UnderlyingType, arguments);
138
if (IsUnknown ||
_xamlType
.ItemType is null)
144
if (contentType ==
_xamlType
.ItemType ||
145
(
_xamlType
.AllowedContentTypes.Count == 1 && contentType.CanAssignTo(
_xamlType
.ItemType)))
147
return
_xamlType
.AddMethod;
151
if (!
_xamlType
.IsCollection)
161
addMethods.Add(
_xamlType
.ItemType,
_xamlType
.AddMethod);
162
foreach (XamlType type in
_xamlType
.AllowedContentTypes)
165
_xamlType
.UnderlyingType, type.UnderlyingType);
201
return
_xamlType
.GetEnumeratorMethod;
213
if (!
_xamlType
.IsCollection && !
_xamlType
.IsDictionary)
227
Type type =
_xamlType
.UnderlyingType.UnderlyingSystemType;
236
get { return
_xamlType
is null ||
_xamlType
.UnderlyingType is null; }
266
object inst = FormatterServices.GetUninitializedObject(type.
_xamlType
.UnderlyingType);
297
Type underlyingType = type.
_xamlType
.UnderlyingType.UnderlyingSystemType;