2 types derived from XamlType
PresentationFramework (2)
System\Windows\Markup\Baml2006\WpfXamlType.cs (1)
14
internal class WpfXamlType :
XamlType
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (1)
411
private class VisibilityMaskingXamlType :
XamlType
5 instantiations of XamlType
System.Xaml (5)
System\Xaml\Context\XamlContext.cs (1)
288
xamlType = new
XamlType
(typeName.Namespace, typeName.Name, typeArgs, SchemaContext);
System\Xaml\Parser\XamlAttribute.cs (1)
154
XamlType attachedOwnerType = new
XamlType
(string.Empty, propName.OwnerName, null, context.SchemaContext);
System\Xaml\Parser\XamlScanner.cs (1)
544
return new
XamlType
(xmlns, name.Name, null, _parserContext.SchemaContext);
System\Xaml\Schema\XamlTypeTypeConverter.cs (1)
111
result = new
XamlType
(typeName.Namespace, typeName.Name, typeArgs, schemaContext);
System\Xaml\XamlSchemaContext.cs (1)
554
xamlType = new
XamlType
(alias, type, this, null, null);
691 references to XamlType
PresentationFramework (134)
MS\Internal\Helper.cs (1)
617
System.Xaml.
XamlType
xt = sc.GetXamlType(targetType);
System\Windows\Controls\ItemsPanelTemplate.cs (1)
114
System.Xaml.
XamlType
panelType = templateHolder.SchemaContext.GetXamlType(typeof(Panel));
System\Windows\Controls\ItemsPresenter.cs (1)
312
System.Xaml.
XamlType
xType = (Template.Template as TemplateContent).RootType;
System\Windows\FrameworkTemplate.cs (3)
570
internal static bool IsNameScope(
XamlType
type)
683
public
XamlType
Type { get; set; }
1062
internal static bool IsNameProperty(XamlMember member,
XamlType
owner)
System\Windows\Markup\Baml2006\Baml2006KeyRecord.cs (1)
97
public StaticResource(
XamlType
type, XamlSchemaContext schemaContext)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (17)
189
public override
XamlType
Type
811
XamlType
type = BamlSchemaContext.GetXamlType(_binaryReader.ReadInt16());
877
XamlType
xamlType = BamlSchemaContext.GetXamlType(keyId);
1126
XamlType
type;
1307
XamlType
type = _context.SchemaContext.GetXamlType(typeId);
1477
private XamlMember GetProperty(Int16 propertyId,
XamlType
parentType)
1638
XamlType
extensionType = BamlSchemaContext.GetXamlType((short)(-extensionTypeId));
1854
XamlType
type = BamlSchemaContext.GetXamlType(_binaryReader.ReadInt16());
1939
XamlType
xamlType = BamlSchemaContext.GetXamlType(optimizedResource.KeyId);
2029
private string Logic_GetFullyQualifiedNameForType(
XamlType
type)
2341
private void InjectPropertyAndFrameIfNeeded(
XamlType
elementType, SByte flags)
2350
XamlType
parentType = _context.CurrentFrame.XamlType;
2409
XamlType
parentPropertyType = parentProperty.Type;
2483
private void EmitGoItemsPreamble(
XamlType
parentPropertyType)
2502
XamlType
type)
2594
XamlType
declaringType = BamlSchemaContext.GetXamlType(reader.ReadInt16());
2641
XamlType
type = _context.SchemaContext.GetXamlType(System.Windows.Markup.SystemKeyConverter.GetSystemClassType(keyId));
System\Windows\Markup\Baml2006\Baml2006ReaderFrame.cs (1)
33
public
XamlType
XamlType { get; set; }
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (25)
41
public override ICollection<
XamlType
> GetAllXamlTypes(string xamlNamespace)
51
public override
XamlType
GetXamlType(Type type)
56
protected override
XamlType
GetXamlType(string xamlNamespace, string name, params
XamlType
[] typeArguments)
62
foreach (
XamlType
typeArg in typeArguments)
80
internal
XamlType
ResourceDictionaryType { get { return _resourceDictionaryType.Value; } }
82
internal
XamlType
EventSetterType { get { return _eventSetterType.Value; } }
90
internal
XamlType
StaticResourceExtensionType { get { return _staticResourceExtensionType.Value; } }
145
XamlType
xamlType;
159
internal
XamlType
GetXamlType(Int16 typeId)
162
XamlType
xamlType;
189
internal XamlMember GetProperty(Int16 propertyId,
XamlType
parentType)
200
XamlType
declaringType = GetXamlType(bamlProperty.DeclaringTypeId);
235
XamlType
declaringType;
273
internal
XamlType
GetPropertyDeclaringType(Int16 propertyId)
541
private
XamlType
ResolveBamlType(BamlType bamlType, Int16 typeId)
547
XamlType
xType = _parentSchemaContext.GetXamlType(type);
583
private bool TryGetBamlType(Int16 typeId, out BamlType bamlType, out
XamlType
xamlType)
593
xamlType = type as
XamlType
;
669
private static readonly Lazy<
XamlType
> _resourceDictionaryType
670
= new Lazy<
XamlType
>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(ResourceDictionary)));
672
private static readonly Lazy<
XamlType
> _eventSetterType
673
= new Lazy<
XamlType
>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(EventSetter)));
684
private static readonly Lazy<
XamlType
> _staticResourceExtensionType
685
= new Lazy<
XamlType
>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(StaticResourceExtension)));
System\Windows\Markup\Baml2006\ThemeKnownTypeHelper.cs (1)
10
public abstract
XamlType
GetKnownXamlType(string name);
System\Windows\Markup\Baml2006\WpfKnownMember.cs (3)
66
XamlType
declaringType,
78
XamlType
declaringType,
190
protected override
XamlType
LookupType()
System\Windows\Markup\Baml2006\WpfKnownType.cs (3)
327
protected override IList<
XamlType
> LookupPositionalParameters(int paramCount)
331
List<
XamlType
> xTypes = null;
335
xTypes = new List<
XamlType
>();
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (22)
33
private Dictionary<Type,
XamlType
> _masterTypeTable;
56
_masterTypeTable = new Dictionary<Type,
XamlType
>(256);
175
public override
XamlType
GetXamlType(Type type)
179
XamlType
xamlType = GetKnownXamlType(type);
188
private
XamlType
GetUnknownXamlType(Type type)
190
XamlType
xamlType;
204
internal
XamlType
GetKnownXamlType(Type type)
206
XamlType
xamlType;
263
protected override
XamlType
GetXamlType(string xamlNamespace, string name, params
XamlType
[] typeArguments)
268
public
XamlType
GetXamlTypeExposed(string xamlNamespace, string name, params
XamlType
[] typeArguments)
308
XamlType
xamlType = GetXamlType(xamlTypeName);
323
internal
XamlType
ResourceDictionaryType { get { return _resourceDictionaryType.Value; } }
325
internal
XamlType
EventSetterType { get { return _eventSetterType.Value; } }
333
internal
XamlType
StaticResourceExtensionType { get { return _staticResourceExtensionType.Value; } }
358
private static readonly Lazy<
XamlType
> _resourceDictionaryType
359
= new Lazy<
XamlType
>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(ResourceDictionary)));
361
private static readonly Lazy<
XamlType
> _eventSetterType
362
= new Lazy<
XamlType
>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(EventSetter)));
373
private static readonly Lazy<
XamlType
> _staticResourceExtensionType
374
= new Lazy<
XamlType
>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(StaticResourceExtension)));
System\Windows\Markup\Baml2006\WpfSharedXamlSchemaContext.cs (6)
18
public override
XamlType
GetXamlType(Type type)
22
XamlType
xType;
54
internal
XamlType
GetXamlTypeInternal(string xamlNamespace, string name, params
XamlType
[] typeArguments)
59
private Dictionary<Type,
XamlType
> _masterTypeTable = new Dictionary<Type,
XamlType
>();
System\Windows\Markup\Baml2006\WpfXamlMember.cs (2)
89
protected WpfXamlMember(string name,
XamlType
declaringType, bool isAttachable)
148
protected override
XamlType
LookupType()
System\Windows\Markup\Baml2006\WpfXamlType.cs (1)
202
XamlType
type = this;
System\Windows\Markup\DependencyPropertyConverter.cs (8)
183
XamlType
styleXType = schemaContext.GetXamlType(typeof(Style));
184
XamlType
frameworkTemplateXType = schemaContext.GetXamlType(typeof(FrameworkTemplate));
185
XamlType
dataTemplateXType = schemaContext.GetXamlType(typeof(DataTemplate));
186
XamlType
controlTemplateXType = schemaContext.GetXamlType(typeof(ControlTemplate));
188
List<
XamlType
> ceilingTypes = new List<
XamlType
>();
244
XamlType
frameworkTemplateXType = schemaContext.GetXamlType(typeof(FrameworkTemplate));
248
ambientProvider.GetFirstAmbientValue(new
XamlType
[] { frameworkTemplateXType }, templateProperty);
System\Windows\Markup\RoutedEventConverter.cs (3)
86
XamlType
styleXType = schemaContext.GetXamlType(typeof(Style));
88
List<
XamlType
> ceilingTypes = new List<
XamlType
>();
System\Windows\Markup\WpfXamlLoader.cs (3)
287
XamlType
xamlType = xamlReader.Type;
288
XamlType
bindingBaseType = xamlType.SchemaContext.GetXamlType(typeof(BindingBase));
289
XamlType
dynamicResourceType = xamlType.SchemaContext.GetXamlType(typeof(DynamicResourceExtension));
System\Windows\Markup\XamlReader.cs (1)
1192
public
XamlType
Type { get; set; }
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (11)
26
private Dictionary<Type,
XamlType
> _allowedInternalTypes;
92
public override
XamlType
GetXamlType(Type type)
210
protected override
XamlType
GetXamlType(string xamlNamespace, string name, params
XamlType
[] typeArguments)
305
private
XamlType
GetInternalType(Type type,
XamlType
sharedSchemaXamlType)
311
_allowedInternalTypes = new Dictionary<Type,
XamlType
>();
314
XamlType
result;
338
private
XamlType
LookupXamlType(string xamlNamespace, string name,
XamlType
[] typeArguments)
341
XamlType
result;
System\Windows\ResourceDictionary.cs (1)
1219
XamlType
xamlTypeStaticResourceExtension = reader.SchemaContext.GetXamlType(typeof(StaticResourceExtension));
System\Windows\StaticResourceExtension.cs (7)
212
XamlType
feXType = schemaContext.GetXamlType(typeof(FrameworkElement));
213
XamlType
styleXType = schemaContext.GetXamlType(typeof(Style));
214
XamlType
templateXType = schemaContext.GetXamlType(typeof(FrameworkTemplate));
215
XamlType
appXType = schemaContext.GetXamlType(typeof(Application));
216
XamlType
fceXType = schemaContext.GetXamlType(typeof(FrameworkContentElement));
225
XamlType
[] types = new
XamlType
[1] { schemaContext.GetXamlType(typeof(ResourceDictionary)) };
System\Windows\TemplateContent.cs (12)
29
private System.Xaml.
XamlType
_xamlType;
33
public
XamlType
Type
112
public void Push(System.Xaml.
XamlType
xamlType, string name)
307
private void UpdateSharedPropertyNames(string name, List<PropertyValue> sharedProperties,
XamlType
type)
470
XamlType
type = stack.CurrentFrame.Property.Type;
789
XamlType
parentType,
950
XamlType
type = frames.CurrentFrame.Property.Type;
1381
internal
XamlType
RootType { get; private set; }
1383
internal
XamlType
GetTypeForName(string name)
1539
internal Dictionary<string,
XamlType
> _namedTypes;
1540
internal Dictionary<string,
XamlType
> NamedTypes
1545
_namedTypes = new Dictionary<string,
XamlType
>();
PresentationFramework.Aero (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\KnownTypeHelper.cs (1)
20
public override
XamlType
GetKnownXamlType(String name)
PresentationFramework.Aero2 (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\KnownTypeHelper.cs (1)
20
public override
XamlType
GetKnownXamlType(String name)
PresentationFramework.AeroLite (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\KnownTypeHelper.cs (1)
20
public override
XamlType
GetKnownXamlType(String name)
PresentationFramework.Classic (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\KnownTypeHelper.cs (1)
20
public override
XamlType
GetKnownXamlType(String name)
PresentationFramework.Luna (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\KnownTypeHelper.cs (1)
20
public override
XamlType
GetKnownXamlType(String name)
PresentationFramework.Royale (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\KnownTypeHelper.cs (1)
20
public override
XamlType
GetKnownXamlType(String name)
System.Xaml (551)
System\Windows\Markup\PropertyDefinition.cs (1)
19
public
XamlType
Type { get; set; }
System\Windows\Markup\XamlSetMarkupExtensionEventArgs.cs (2)
29
internal
XamlType
CurrentType { get; set; }
36
XamlType
baseType = CurrentType.BaseType;
System\Windows\Markup\XamlSetTypeConverterEventArgs.cs (2)
35
internal
XamlType
CurrentType { get; set; }
41
XamlType
baseType = CurrentType.BaseType;
System\Xaml\Context\NameFixupToken.cs (1)
53
public
XamlType
InstanceType { get; set; }
System\Xaml\Context\ObjectWriterContext.cs (21)
156
XamlType
xamlType = ServiceProvider_ResolveXamlType(qName);
167
internal
XamlType
ServiceProvider_ResolveXamlType(string qName)
172
internal AmbientPropertyValue ServiceProvider_GetFirstAmbientValue(IEnumerable<
XamlType
> ceilingTypes, XamlMember[] properties)
178
internal object ServiceProvider_GetFirstAmbientValue(
XamlType
[] types)
184
internal IEnumerable<AmbientPropertyValue> ServiceProvider_GetAllAmbientValues(IEnumerable<
XamlType
> ceilingTypes, XamlMember[] properties)
190
internal IEnumerable<object> ServiceProvider_GetAllAmbientValues(
XamlType
[] types)
196
internal IEnumerable<AmbientPropertyValue> ServiceProvider_GetAllAmbientValues(IEnumerable<
XamlType
> ceilingTypes, bool searchLiveStackOnly, IEnumerable<
XamlType
> types, XamlMember[] properties)
283
internal
XamlType
GetDestinationType()
307
private List<AmbientPropertyValue> FindAmbientValues(IEnumerable<
XamlType
> ceilingTypesEnumerable,
309
IEnumerable<
XamlType
> types,
321
List<
XamlType
> ceilingTypes = ceilingTypesEnumerable is not null ? new List<
XamlType
>(ceilingTypesEnumerable) : null;
340
foreach (
XamlType
type in types)
426
private List<object> FindAmbientValues(
XamlType
[] types, bool stopAfterFirst)
428
foreach (
XamlType
xamlType in types)
443
foreach (
XamlType
type in types)
515
public
XamlType
CurrentType
521
public
XamlType
ParentType
526
public
XamlType
GrandParentType
902
XamlType
xamlType = rootFrame.XamlType;
System\Xaml\Context\ServiceProviderContext.cs (8)
129
IEnumerable<
XamlType
> ceilingTypes,
146
object IAmbientProvider.GetFirstAmbientValue(params
XamlType
[] types)
150
foreach (
var
type in types)
163
IEnumerable<
XamlType
> ceilingTypes,
180
IEnumerable<object> IAmbientProvider.GetAllAmbientValues(params
XamlType
[] types)
184
foreach (
var
type in types)
197
IEnumerable<
XamlType
> ceilingTypes,
199
IEnumerable<
XamlType
> types,
System\Xaml\Context\XamlCommonFrame.cs (1)
46
public
XamlType
XamlType { get; set; }
System\Xaml\Context\XamlContext.cs (31)
42
public XamlMember GetXamlProperty(
XamlType
xamlType, string propertyName,
XamlType
rootObjectType)
53
public XamlMember GetXamlAttachableProperty(
XamlType
xamlType, string propertyName)
75
public XamlMember GetDottedProperty(
XamlType
tagType, string tagNamespace, XamlPropertyName propName, bool tagIsRoot)
83
XamlType
ownerType = null;
90
XamlType
rootTagType = tagIsRoot ? tagType : null;
129
XamlType
declaringType = ownerTypeMatchesGenericTagType ? tagType : ownerType;
163
public XamlMember GetNoDotAttributeProperty(
XamlType
tagType, XamlPropertyName propName,
173
XamlType
rootTagType = tagIsRoot ? tagType : null;
226
private
XamlType
GetXamlTypeOrUnknown(XamlTypeName typeName)
231
internal
XamlType
GetXamlType(XamlName typeName)
236
internal
XamlType
GetXamlType(XamlName typeName, bool returnUnknownTypesOnFailure)
253
internal
XamlType
GetXamlType(XamlTypeName typeName)
258
internal
XamlType
GetXamlType(XamlTypeName typeName, bool returnUnknownTypesOnFailure)
263
internal
XamlType
GetXamlType(XamlTypeName typeName, bool returnUnknownTypesOnFailure,
269
XamlType
xamlType = _schemaContext.GetXamlType(typeName);
277
XamlType
[] typeArgs = null;
281
typeArgs = new
XamlType
[typeNames.Count];
312
internal
XamlType
ResolveXamlType(string qName, bool skipVisibilityCheck)
335
internal virtual bool IsVisible(XamlMember member,
XamlType
rootObjectType)
340
private XamlMember CreateUnknownMember(
XamlType
declaringType, string name)
345
private XamlMember CreateUnknownAttachableMember(
XamlType
declaringType, string name)
350
private bool PropertyTypeMatchesGenericTagType(
XamlType
tagType, string tagNs, string propNs, string propTypeName)
364
XamlType
propertyType = GetXamlType(propNs, propTypeName, tagType.TypeArguments);
368
private XamlMember GetInstanceOrAttachableProperty(
XamlType
tagType, string propName,
XamlType
rootTagType)
383
private
XamlType
GetXamlType(string ns, string name, IList<
XamlType
> typeArguments)
385
XamlType
[] typeArgArray = new
XamlType
[typeArguments.Count];
387
XamlType
xamlType = _schemaContext.GetXamlType(ns, name, typeArgArray);
System\Xaml\Context\XamlParserContext.cs (5)
113
internal override bool IsVisible(XamlMember member,
XamlType
rootObjectType)
159
internal void InitBracketCharacterCacheForType(
XamlType
extensionType)
168
internal void InitLongestConstructor(
XamlType
xamlType)
192
public
XamlType
CurrentType
287
public
XamlType
CurrentPreviousChildType
System\Xaml\Context\XamlParserFrame.cs (1)
29
public
XamlType
PreviousChildType { get; set; }
System\Xaml\IAmbientProvider.cs (6)
10
AmbientPropertyValue GetFirstAmbientValue(IEnumerable<
XamlType
> ceilingTypes,
12
object GetFirstAmbientValue(params
XamlType
[] types);
14
IEnumerable<AmbientPropertyValue> GetAllAmbientValues(IEnumerable<
XamlType
> ceilingTypes,
17
IEnumerable<object> GetAllAmbientValues(params
XamlType
[] types);
19
IEnumerable<AmbientPropertyValue> GetAllAmbientValues(IEnumerable<
XamlType
> ceilingTypes,
21
IEnumerable<
XamlType
> types,
System\Xaml\InfosetObjects\DeferredWriter.cs (2)
67
public override void WriteStartObject(
XamlType
xamlType)
72
private void WriteObject(
XamlType
xamlType, bool fromMember, string methodName)
System\Xaml\InfosetObjects\XamlNodes.cs (3)
65
Debug.Assert(data is
XamlType
, "XamlNode ctor, StartObject data is not a XamlType");
173
public
XamlType
XamlType
179
return (
XamlType
)_data;
System\Xaml\InfosetObjects\XamlObjectWriter.cs (38)
273
XamlType
xamlType = (_context.CurrentType is null && _context.Depth > 1)
311
public override void WriteStartObject(
XamlType
xamlType)
372
XamlType
rootType = GetXamlType(_rootObjectInstance.GetType());
447
XamlType
xamlType = _context.CurrentType;
676
XamlType
propertyXamlType = property.Type;
776
XamlType
valueXamlType = GetXamlType(value.GetType());
788
XamlType
valueXamlType = GetXamlType(value.GetType());
871
XamlType
parentXamlType = parentProperty.Type;
1070
private object GetKeyFromInstance(object instance,
XamlType
instanceType, IAddLineInfo lineInfo)
1082
private
XamlType
GetXamlType(Type clrType)
1084
XamlType
result = SchemaContext.GetXamlType(clrType);
1118
private bool IsDirectiveAllowedOnNullInstance(XamlMember xamlMember,
XamlType
xamlType)
1140
XamlType
currentType = ctx.CurrentType;
1179
XamlType
ownerType;
1198
XamlType
instType = GetXamlType(inst.GetType());
1232
XamlType
meType = ctx.CurrentType;
1240
IList<
XamlType
> paramTypes = meType.GetPositionalParameters(rawArgs.Count);
1257
XamlType
pparamType = paramTypes[i];
1270
XamlType
xamlType = ctx.ParentType;
1335
XamlType
propertyType = property.Type;
1354
XamlType
declaringType = null;
1366
XamlType
grandParentXamlType = ctx.GrandParentType;
1440
XamlType
dictionaryType = ctx.GrandParentType;
1469
XamlType
xamlType = ctx.CurrentType;
1490
XamlType
xamlType = ctx.CurrentType;
1526
XamlType
xamlType = onParent ? ctx.ParentType : ctx.CurrentType;
1624
XamlType
xamlType = onParent ? ctx.ParentType : ctx.CurrentType;
1695
XamlType
declaringType = null;
1783
XamlType
type = ctx.CurrentType;
1799
XamlType
collectionType = ctx.ParentType;
1800
XamlType
currentType = ctx.CurrentType;
1856
XamlType
itemType = ctx.ParentType.ItemType;
2008
XamlType
ppXamlType = parentProperty.Type;
2067
XamlType
parentType = ctx.ParentType;
2169
object inst,
XamlType
xamlType,
2641
private void ExecutePendingAdds(
XamlType
instanceType, object instance)
2648
XamlType
itemType = pendingAdd.ItemType ?? instanceType.ItemType;
2703
public
XamlType
ItemType { get; set; } // Need this because Add() overload resolution
System\Xaml\InfosetObjects\XamlXmlReader.cs (1)
292
public override
XamlType
Type
System\Xaml\Parser\MePullParser.cs (2)
98
XamlType
xamlType = _tokenizer.TokenType;
469
private XamlNode Logic_StartElement(
XamlType
xamlType, string xamlNamespace)
System\Xaml\Parser\MeScanner.cs (5)
55
private
XamlType
_tokenXamlType;
102
public
XamlType
TokenType
299
XamlType
xamlType = _context.GetXamlType(typeName, false);
323
XamlType
declaringType;
324
XamlType
tagType = _context.CurrentType;
System\Xaml\Parser\XamlAttribute.cs (3)
45
public void Initialize(XamlParserContext context,
XamlType
tagType, string ownerNamespace, bool tagIsRoot)
143
XamlType
tagType, string tagNamespace, bool tagIsRoot)
154
XamlType
attachedOwnerType = new XamlType(string.Empty, propName.OwnerName, null, context.SchemaContext);
System\Xaml\Parser\XamlPullParser.cs (18)
282
XamlType
currentType = _context.CurrentType;
450
XamlType
currentType = _context.CurrentType;
814
private XamlNode Logic_StartObject(
XamlType
xamlType, string xamlNamespace)
826
XamlType
xamlType = _context.CurrentType;
879
XamlType
memberXamlType = member.Type;
907
private XamlNode Logic_StartInitProperty(
XamlType
ownerType)
935
XamlType
previousObject = _context.CurrentPreviousChildType;
945
XamlType
nextXamlType = _xamlScanner.PeekType;
956
private XamlNode Logic_StartGetObjectFromMember(
XamlType
realType)
966
private XamlNode Logic_StartItemsProperty(
XamlType
collectionType)
978
private
XamlType
_arrayExtensionType;
979
private
XamlType
ArrayExtensionType
1023
XamlType
currentType = _context.CurrentType;
1026
XamlType
propertyType = currentProperty.Type;
1028
XamlType
valueElementType = (_xamlScanner.NodeType == ScannerNodeType.TEXT)
1139
XamlType
collectionType = _context.CurrentMember == XamlLanguage.Items ? _context.CurrentType : _context.CurrentMember.Type;
1231
XamlType
propertyType = property.Type;
1234
foreach (
XamlType
allowedType in propertyType.AllowedContentTypes)
System\Xaml\Parser\XamlScanner.cs (5)
71
public
XamlType
PeekType
85
public
XamlType
Type
323
XamlType
errType = CreateErrorXamlType(name, string.Empty);
412
private void ReadPropertyElement(XamlPropertyName name,
XamlType
tagType, string tagNamespace, bool isEmptyTag)
542
private
XamlType
CreateErrorXamlType(XamlName name, string xmlns)
System\Xaml\Parser\XamlScannerNode.cs (1)
30
public
XamlType
Type { get; set; }
System\Xaml\Parser\XamlScannerStack.cs (4)
12
public
XamlType
XamlType { get; set; }
18
public XamlScannerFrame(
XamlType
xamlType, string ns)
35
public void Push(
XamlType
type, string ns)
53
public
XamlType
CurrentType
System\Xaml\ReaderBaseDelegate.cs (1)
41
public override
XamlType
Type
System\Xaml\Replacements\TypeTypeConverter.cs (1)
65
XamlType
xamlType = schemaContextProvider.SchemaContext.GetXamlType(type);
System\Xaml\Runtime\ClrObjectRuntime.cs (12)
44
public override object CreateInstance(
XamlType
xamlType, object[] args)
70
protected virtual object CreateInstanceWithCtor(
XamlType
xamlType, object[] args)
75
public override object CreateWithFactoryMethod(
XamlType
xamlType, string methodName, object[] args)
315
public override void Add(object collection,
XamlType
collectionType, object value,
XamlType
valueXamlType)
332
public override void AddToDictionary(object collection,
XamlType
dictionaryType, object value,
XamlType
valueXamlType, object key)
349
public override IList<object> GetCollectionItems(object collection,
XamlType
collectionType)
374
public override IEnumerable<DictionaryEntry> GetDictionaryItems(object dictionary,
XamlType
dictionaryType)
480
public override void InitializationGuard(
XamlType
xamlType, object obj, bool begin)
525
public override void SetUriBase(
XamlType
xamlType, object obj, Uri baseUri)
718
private IEnumerator GetItems(object collection,
XamlType
collectionType)
System\Xaml\Runtime\DynamicMethodRuntime.cs (1)
194
protected override object CreateInstanceWithCtor(
XamlType
xamlType, object[] args)
System\Xaml\Runtime\PartialTrustTolerantRuntime.cs (11)
57
public override void Add(object collection,
XamlType
collectionType, object value,
XamlType
valueXamlType)
62
public override void AddToDictionary(object collection,
XamlType
dictionaryType, object value,
XamlType
valueXamlType, object key)
133
public override object CreateInstance(
XamlType
xamlType, object[] args)
164
public override object CreateWithFactoryMethod(
XamlType
xamlType, string methodName, object[] args)
317
public override void InitializationGuard(
XamlType
xamlType, object obj, bool begin)
329
public override void SetUriBase(
XamlType
xamlType, object obj, Uri baseUri)
400
public override IList<object> GetCollectionItems(object collection,
XamlType
collectionType)
405
public override IEnumerable<DictionaryEntry> GetDictionaryItems(object dictionary,
XamlType
dictionaryType)
436
private static bool HasDefaultInvoker(
XamlType
xamlType)
System\Xaml\Schema\MemberReflector.cs (3)
63
internal MemberReflector(
XamlType
type, XamlValueConverter<TypeConverter> typeConverter)
189
internal
XamlType
Type { get; set; }
191
internal
XamlType
TargetType { get; set; }
System\Xaml\Schema\TypeReflector.cs (15)
39
private ThreadSafeDictionary<int, IList<
XamlType
>> _positionalParameterTypes;
66
private NullableReference<
XamlType
> _baseType;
171
internal IList<
XamlType
> AllowedContentTypes { get; set; }
187
internal
XamlType
BaseType
214
internal IList<
XamlType
> ContentWrappers { get; set; }
226
internal
XamlType
KeyType { get; set; }
241
internal
XamlType
ItemType { get; set; }
243
internal
XamlType
MarkupExtensionReturnType { get; set; }
259
internal Dictionary<int, IList<
XamlType
>> ReflectedPositionalParameters { get; set; }
295
internal bool TryGetPositionalParameters(int paramCount, out IList<
XamlType
> result)
306
new ThreadSafeDictionary<int, IList<
XamlType
>>(), null);
312
internal IList<
XamlType
> TryAddPositionalParameters(int paramCount, IList<
XamlType
> paramList)
406
internal static XamlMember LookupNameScopeProperty(
XamlType
xamlType)
423
XamlType
ownerXamlType = xamlType.SchemaContext.GetXamlType(ownerType);
System\Xaml\Schema\XamlDirective.cs (3)
32
public XamlDirective(IEnumerable<string> xamlNamespaces, string name,
XamlType
xamlType,
173
protected sealed override
XamlType
LookupTargetType()
184
protected sealed override
XamlType
LookupType()
System\Xaml\Schema\XamlNamespace.cs (15)
21
private ConcurrentDictionary<string,
XamlType
> _typeCache;
22
private ICollection<
XamlType
> _allPublicTypes;
49
_typeCache = XamlSchemaContext.CreateDictionary<string,
XamlType
>();
54
public ICollection<
XamlType
> GetAllXamlTypes() => _allPublicTypes ??= LookupAllTypes();
56
public
XamlType
GetXamlType(string typeName, params
XamlType
[] typeArgs)
72
private
XamlType
TryGetXamlType(string typeName)
75
if (_typeCache.TryGetValue(typeName, out
XamlType
xamlType))
97
private
XamlType
TryGetXamlType(string typeName, Type[] typeArgs)
107
XamlType
openXamlType = TryGetXamlType(mangledTypeName);
153
private Type[] ConvertArrayOfXamlTypesToTypes(
XamlType
[] typeArgs)
204
private ICollection<
XamlType
> LookupAllTypes()
206
List<
XamlType
> xamlTypeList = new List<
XamlType
>();
227
XamlType
xamlType = SchemaContext.GetXamlType(t);
System\Xaml\Schema\XamlTypeInvoker.cs (10)
17
private Dictionary<
XamlType
, MethodInfo> _addMethods;
19
private
XamlType
_xamlType;
29
public XamlTypeInvoker(
XamlType
type)
72
XamlType
itemType;
106
XamlType
itemType;
140
public virtual MethodInfo GetAddMethod(
XamlType
contentType)
165
Dictionary<
XamlType
, MethodInfo> addMethods = new Dictionary<
XamlType
, MethodInfo>();
167
foreach (
XamlType
type in _xamlType.AllowedContentTypes)
189
foreach (KeyValuePair<
XamlType
, MethodInfo> pair in _addMethods)
System\Xaml\Schema\XamlTypeTypeConverter.cs (9)
22
XamlType
result = ConvertStringToXamlType(context, typeName);
39
XamlType
xamlType = value as
XamlType
;
53
internal static string ConvertXamlTypeToString(ITypeDescriptorContext context,
XamlType
xamlType)
65
private static
XamlType
ConvertStringToXamlType(ITypeDescriptorContext context, string typeName)
93
private static
XamlType
GetXamlTypeOrUnknown(XamlSchemaContext schemaContext, XamlTypeName typeName)
95
XamlType
result = schemaContext.GetXamlType(typeName);
101
XamlType
[] typeArgs = null;
104
typeArgs = new
XamlType
[typeName.TypeArguments.Count];
System\Xaml\Schema\XamlValueConverter.cs (3)
22
public
XamlType
TargetType { get; }
24
public XamlValueConverter(Type converterType,
XamlType
targetType)
29
public XamlValueConverter(Type converterType,
XamlType
targetType, string name)
System\Xaml\WriterDelegate.cs (1)
33
public override void WriteStartObject(
XamlType
xamlType)
System\Xaml\XamlBackgroundReader.cs (1)
290
public override
XamlType
Type
System\Xaml\XamlException.cs (4)
141
public
XamlType
ParentType { get; set; }
145
public XamlDuplicateMemberException(XamlMember member,
XamlType
type)
163
ParentType = (
XamlType
)info.GetValue("ParentType", typeof(
XamlType
));
System\Xaml\XamlLanguage.cs (92)
58
private static Lazy<
XamlType
> s_array =
59
new Lazy<
XamlType
>(() => GetXamlType(typeof(ArrayExtension)));
60
private static Lazy<
XamlType
> s_null =
61
new Lazy<
XamlType
>(() => GetXamlType(typeof(NullExtension)));
62
private static Lazy<
XamlType
> s_reference =
63
new Lazy<
XamlType
>(() => GetXamlType(typeof(Reference)));
64
private static Lazy<
XamlType
> s_static =
65
new Lazy<
XamlType
>(() => GetXamlType(typeof(StaticExtension)));
66
private static Lazy<
XamlType
> s_type =
67
new Lazy<
XamlType
>(() => GetXamlType(typeof(TypeExtension)));
68
private static Lazy<
XamlType
> s_string =
69
new Lazy<
XamlType
>(() => GetXamlType(typeof(string)));
70
private static Lazy<
XamlType
> s_double =
71
new Lazy<
XamlType
>(() => GetXamlType(typeof(double)));
72
private static Lazy<
XamlType
> s_int32 =
73
new Lazy<
XamlType
>(() => GetXamlType(typeof(int)));
74
private static Lazy<
XamlType
> s_boolean =
75
new Lazy<
XamlType
>(() => GetXamlType(typeof(bool)));
76
private static Lazy<
XamlType
> s_member =
77
new Lazy<
XamlType
>(() => GetXamlType(typeof(MemberDefinition)));
78
private static Lazy<
XamlType
> s_property =
79
new Lazy<
XamlType
>(() => GetXamlType(typeof(PropertyDefinition)));
80
private static Lazy<
XamlType
> s_xDataHolder =
81
new Lazy<
XamlType
>(() => GetXamlType(typeof(XData)));
83
private static Lazy<
XamlType
> s_object =
84
new Lazy<
XamlType
>(() => GetXamlType(typeof(object)));
85
private static Lazy<
XamlType
> s_listOfObject =
86
new Lazy<
XamlType
>(() => GetXamlType(typeof(List<object>)));
87
private static Lazy<
XamlType
> s_listOfMembers =
88
new Lazy<
XamlType
>(() => GetXamlType(typeof(List<MemberDefinition>)));
89
private static Lazy<
XamlType
> s_listOfAttributes =
90
new Lazy<
XamlType
>(() => GetXamlType(typeof(List<Attribute>)));
92
private static Lazy<
XamlType
> s_markupExtension =
93
new Lazy<
XamlType
>(() => GetXamlType(typeof(MarkupExtension)));
94
private static Lazy<
XamlType
> s_iNameScope =
95
new Lazy<
XamlType
>(() => GetXamlType(typeof(INameScope)));
96
private static Lazy<
XamlType
> s_iXmlSerializable =
97
new Lazy<
XamlType
>(() => GetXamlType(typeof(IXmlSerializable)), true);
99
private static Lazy<
XamlType
> s_positionalParameterDescriptor =
100
new Lazy<
XamlType
>(() => GetXamlType(typeof(PositionalParameterDescriptor)), true);
102
private static Lazy<
XamlType
> s_char =
103
new Lazy<
XamlType
>(() => GetXamlType(typeof(char)), true);
104
private static Lazy<
XamlType
> s_single =
105
new Lazy<
XamlType
>(() => GetXamlType(typeof(float)), true);
106
private static Lazy<
XamlType
> s_byte =
107
new Lazy<
XamlType
>(() => GetXamlType(typeof(byte)), true);
108
private static Lazy<
XamlType
> s_int16 =
109
new Lazy<
XamlType
>(() => GetXamlType(typeof(short)), true);
110
private static Lazy<
XamlType
> s_int64 =
111
new Lazy<
XamlType
>(() => GetXamlType(typeof(long)), true);
112
private static Lazy<
XamlType
> s_decimal =
113
new Lazy<
XamlType
>(() => GetXamlType(typeof(decimal)), true);
114
private static Lazy<
XamlType
> s_uri =
115
new Lazy<
XamlType
>(() => GetXamlType(typeof(Uri)), true);
116
private static Lazy<
XamlType
> s_timespan =
117
new Lazy<
XamlType
>(() => GetXamlType(typeof(TimeSpan)), true);
119
private static Lazy<ReadOnlyCollection<
XamlType
>> s_allTypes =
120
new Lazy<ReadOnlyCollection<
XamlType
>>(GetAllTypes);
188
public static
XamlType
Array { get { return s_array.Value; } }
189
public static
XamlType
Member { get { return s_member.Value; } }
190
public static
XamlType
Null { get { return s_null.Value; } }
191
public static
XamlType
Property { get { return s_property.Value; } }
192
public static
XamlType
Reference { get { return s_reference.Value; } }
193
public static
XamlType
Static { get { return s_static.Value; } }
194
public static
XamlType
Type { get { return s_type.Value; } }
195
public static
XamlType
String { get { return s_string.Value; } }
196
public static
XamlType
Double { get { return s_double.Value; } }
197
public static
XamlType
Int32 { get { return s_int32.Value; } }
198
public static
XamlType
Boolean { get { return s_boolean.Value; } }
199
public static
XamlType
XData { get { return s_xDataHolder.Value; } }
201
public static
XamlType
Object { get { return s_object.Value; } }
202
public static
XamlType
Char { get { return s_char.Value; } }
203
public static
XamlType
Single { get { return s_single.Value; } }
204
public static
XamlType
Byte { get { return s_byte.Value; } }
205
public static
XamlType
Int16 { get { return s_int16.Value; } }
206
public static
XamlType
Int64 { get { return s_int64.Value; } }
207
public static
XamlType
Decimal { get { return s_decimal.Value; } }
208
public static
XamlType
Uri { get { return s_uri.Value; } }
209
public static
XamlType
TimeSpan { get { return s_timespan.Value; } }
211
public static ReadOnlyCollection<
XamlType
> AllTypes { get { return s_allTypes.Value; } }
242
internal static
XamlType
MarkupExtension { get { return s_markupExtension.Value; } }
243
internal static
XamlType
INameScope { get { return s_iNameScope.Value; } }
244
internal static
XamlType
PositionalParameterDescriptor { get { return s_positionalParameterDescriptor.Value; } }
246
internal static
XamlType
IXmlSerializable { get { return s_iXmlSerializable.Value; } }
314
internal static
XamlType
LookupXamlType(string typeNamespace, string typeName)
411
private static ReadOnlyCollection<
XamlType
> GetAllTypes()
413
XamlType
[] result = new
XamlType
[] { Array, Member, Null, Property, Reference, Static, Type, String, Double, Int16, Int32, Int64, Boolean, XData, Object, Char, Single, Byte, Decimal, Uri, TimeSpan };
414
return new ReadOnlyCollection<
XamlType
>(result);
452
private static XamlDirective GetXamlDirective(string name,
XamlType
xamlType,
465
private static
XamlType
GetXamlType(Type type)
467
XamlType
result = s_schemaContext.Value.GetXamlType(type);
System\Xaml\XamlMarkupExtensionWriter.cs (7)
92
private string LookupPrefix(
XamlType
type)
143
public override void WriteStartObject(
XamlType
type)
203
public
XamlType
XamlType
215
public virtual void WriteStartObject(XamlMarkupExtensionWriter writer,
XamlType
type)
309
public override void WriteStartObject(XamlMarkupExtensionWriter writer,
XamlType
type)
501
public override void WriteStartObject(XamlMarkupExtensionWriter writer,
XamlType
type)
572
public override void WriteStartObject(XamlMarkupExtensionWriter writer,
XamlType
type)
System\Xaml\XamlMember.cs (8)
20
private
XamlType
_declaringType;
34
public XamlMember(string name,
XamlType
declaringType, bool isAttachable)
158
public
XamlType
DeclaringType { get { return _declaringType; } }
222
public
XamlType
TargetType
246
public
XamlType
Type
591
return
XamlType
.GetReadOnly(result);
677
protected virtual
XamlType
LookupTargetType()
757
protected virtual
XamlType
LookupType()
System\Xaml\XamlObjectReader.cs (40)
136
public override
XamlType
Type
394
object sourceOrValue, XamlMember property,
XamlType
propertyType, SerializerContext context)
411
XamlType
keyType = propertyType.KeyType;
439
XamlType
actualKeyType = null;
476
XamlType
typeOfValue = context.GetXamlType(entry.Value.GetType());
641
XamlType
declaringType = xamlProperty.DeclaringType;
668
var
memberType = memberInfo.XamlNode.Member.Type;
698
public static MemberMarkupInfo ForSequenceItems(object sourceOrValue, XamlMember property,
XamlType
xamlType, SerializerContext context, bool allowReadOnly)
750
foreach (
var
contentWrapperType in xamlType.ContentWrappers)
801
private static bool ShouldUnwrapDueToWhitespace(string value,
XamlType
xamlType, bool isFirstElementOfCollection, bool isLastElementOfCollection)
1164
var
type = XamlNode.XamlType;
1178
private void FindNamespaceForTypeArguments(IList<
XamlType
> types, SerializerContext context)
1185
foreach (
var
type in types)
1192
private void AddItemsProperty(object value, SerializerContext context,
XamlType
xamlType)
1323
private bool TryAddPositionalParameters(
XamlType
xamlType, MemberInfo member, ICollection arguments, SerializerContext context)
1337
XamlType
paramXamlType = context.GetXamlType(cstrParams[i++].ParameterType);
1422
private bool TryGetDefaultConstructorInfo(
XamlType
type, out MemberInfo member, out ICollection arguments, out bool isComplete)
1433
var
valueXamlType = context.GetXamlType(valueType);
1466
XamlType
xamlType)
1513
private void AddRecordConstructionMembers(object value,
XamlType
valueXamlType, SerializerContext context,
1591
private bool IsPropertyContent(MemberMarkupInfo propertyInfo,
XamlType
containingType)
1609
private void GetConstructorInfo(object value,
XamlType
valueXamlType, SerializerContext context, out MemberInfo member, out ICollection arguments, out bool isComplete)
1710
var
xamlType = objInfo.XamlNode.XamlType;
1771
var
xamlType = context.LocalAssemblyAwareGetXamlType(Object.GetType());
1809
var
type = context.LocalAssemblyAwareGetXamlType(value.GetType());
1811
var
elementType = type.ItemType;
1875
XamlType
owningType = context.GetXamlType(ap.Key.DeclaringType);
1935
XamlType
valueType = context.GetXamlType(value.GetType());
2024
XamlType
xamlType = context.LocalAssemblyAwareGetXamlType(value.GetType());
2066
var
xamlType = context.LocalAssemblyAwareGetXamlType(originalValue.GetType());
2327
private static List<XamlMember> GetXamlSerializableProperties(
XamlType
type, SerializerContext context)
2637
public
XamlType
GetXamlType(Type clrType)
2639
XamlType
result = schemaContext.GetXamlType(clrType);
2649
public
XamlType
LocalAssemblyAwareGetXamlType(Type clrType)
2651
XamlType
result = GetXamlType(clrType);
2704
XamlType
valueXamlType = context.GetXamlType(value.GetType());
2736
public string ConvertXamlTypeToString(
XamlType
type)
2746
XamlType
type = GetXamlType(objectToName.GetType());
3251
XamlType
baseType = member.DeclaringType.BaseType;
3280
private static XamlMember GetExcludedReadOnlyMember(
XamlType
type, string name)
System\Xaml\XamlReader.cs (1)
19
public abstract
XamlType
Type { get; }
System\Xaml\XamlRuntime.cs (10)
23
public abstract object CreateInstance(
XamlType
xamlType, object[] args);
25
public abstract object CreateWithFactoryMethod(
XamlType
xamlType, string methodName, object[] args);
58
public abstract void SetUriBase(
XamlType
xamlType, object obj, Uri baseUri);
62
public abstract void Add(object collection,
XamlType
collectionType, object value,
XamlType
valueXamlType);
64
public abstract void AddToDictionary(object collection,
XamlType
dictionaryType, object value,
XamlType
valueXamlType, object key);
66
public abstract IList<object> GetCollectionItems(object collection,
XamlType
collectionType);
68
public abstract IEnumerable<DictionaryEntry> GetDictionaryItems(object dictionary,
XamlType
dictionaryType);
76
public abstract void InitializationGuard(
XamlType
xamlType, object obj, bool begin);
System\Xaml\XamlSchemaContext.cs (25)
96
public virtual ICollection<
XamlType
> GetAllXamlTypes(string xamlNamespace)
274
public
XamlType
GetXamlType(XamlTypeName xamlTypeName)
287
XamlType
[] typeArgs = null;
290
typeArgs = new
XamlType
[xamlTypeName.TypeArguments.Count];
309
protected internal virtual
XamlType
GetXamlType(string xamlNamespace, string name, params
XamlType
[] typeArguments)
315
foreach (
XamlType
typeArg in typeArguments)
329
XamlType
result = null;
486
private ConcurrentDictionary<Type,
XamlType
> _masterTypeList;
487
private ConcurrentDictionary<ReferenceEqualityTuple<Type,
XamlType
, Type>, object> _masterValueConverterList;
489
private ConcurrentDictionary<
XamlType
, Dictionary<string, SpecialBracketCharacters> > _masterBracketCharacterCache;
498
private ConcurrentDictionary<
XamlType
, Dictionary<string, SpecialBracketCharacters> > MasterBracketCharacterCache
503
Interlocked.CompareExchange(ref _masterBracketCharacterCache, CreateDictionary<
XamlType
, Dictionary<string, SpecialBracketCharacters>>(), null);
509
private ConcurrentDictionary<Type,
XamlType
> MasterTypeList
514
Interlocked.CompareExchange(ref _masterTypeList, CreateDictionary<Type,
XamlType
>(ReferenceEqualityComparer.Instance), null);
520
private ConcurrentDictionary<ReferenceEqualityTuple<Type,
XamlType
, Type>, object> MasterValueConverterList
525
Interlocked.CompareExchange(ref _masterValueConverterList, CreateDictionary<ReferenceEqualityTuple<Type,
XamlType
, Type>, object>(), null);
541
public virtual
XamlType
GetXamlType(Type type)
548
internal
XamlType
GetXamlType(Type type, string alias)
551
XamlType
xamlType = null;
566
internal Dictionary<string, SpecialBracketCharacters> InitBracketCharacterCacheForType(
XamlType
type)
587
private Dictionary<string, SpecialBracketCharacters> BuildBracketCharacterCacheForType(
XamlType
type)
614
Type converterType,
XamlType
targetType)
617
var key = new ReferenceEqualityTuple<Type,
XamlType
, Type>(converterType, targetType, typeof(TConverterBase));
921
internal ReadOnlyCollection<string> GetXamlNamespaces(
XamlType
type)
System\Xaml\XamlSubreader.cs (1)
56
public override
XamlType
Type
System\Xaml\XamlType.cs (68)
18
public class XamlType : IEquatable<
XamlType
>
23
private readonly IList<
XamlType
> _typeArguments;
38
protected XamlType(string typeName, IList<
XamlType
> typeArguments, XamlSchemaContext schemaContext)
45
public XamlType(string unknownTypeNamespace, string unknownTypeName, IList<
XamlType
> typeArguments, XamlSchemaContext schemaContext)
78
public
XamlType
BaseType
144
public IList<
XamlType
> TypeArguments
192
public
XamlType
KeyType
211
public
XamlType
ItemType
230
public IList<
XamlType
> AllowedContentTypes
245
ReadOnlyCollection<
XamlType
>.Empty;
252
public IList<
XamlType
> ContentWrappers
265
ReadOnlyCollection<
XamlType
>.Empty;
328
public
XamlType
MarkupExtensionReturnType
431
public virtual bool CanAssignTo(
XamlType
xamlType)
439
XamlType
curType = this;
446
baseUnderlyingType.Assembly == typeof(
XamlType
).Assembly)
468
public IList<
XamlType
> GetPositionalParameters(int parameterCount)
471
IList<
XamlType
> result;
725
protected virtual IList<
XamlType
> LookupAllowedContentTypes()
727
IList<
XamlType
> contentWrappers = ContentWrappers ?? ReadOnlyCollection<
XamlType
>.Empty;
728
List<
XamlType
> result = new List<
XamlType
>(contentWrappers.Count + 1);
731
foreach (
XamlType
contentWrapper in contentWrappers)
736
XamlType
contentType = contentWrapper.ContentProperty.Type;
747
protected virtual
XamlType
LookupBaseType()
819
protected virtual IList<
XamlType
> LookupContentWrappers()
821
List<
XamlType
> contentWrappers = null;
828
contentWrappers = new List<
XamlType
>(wrapperTypes.Count);
838
IList<
XamlType
> baseWrappers = BaseType.ContentWrappers;
976
protected virtual
XamlType
LookupKeyType()
995
protected virtual
XamlType
LookupItemType()
1026
protected virtual
XamlType
LookupMarkupExtensionReturnType()
1034
XamlType
xamlReturnType = SchemaContext.GetXamlType(returnType);
1161
protected virtual IList<
XamlType
> LookupPositionalParameters(int parameterCount)
1178
IList<
XamlType
> result;
1268
XamlType
innerXamlType = SchemaContext.GetXamlType(typeArgs[0]);
1310
XamlType
innerXamlType = SchemaContext.GetXamlType(typeArgs[0]);
1576
private static ReadOnlyCollection<
XamlType
> GetTypeArguments(IList<
XamlType
> typeArguments)
1583
foreach (
XamlType
typeArg in typeArguments)
1591
return new List<
XamlType
>(typeArguments).AsReadOnly();
1594
private static ReadOnlyCollection<
XamlType
> GetTypeArguments(Type type, XamlSchemaContext schemaContext)
1608
XamlType
[] result = new
XamlType
[types.Length];
1673
Debug.Assert(GetType() != typeof(
XamlType
), "Default GetAllMembers logic should have already captured all writeable properties");
1680
private Dictionary<int, IList<
XamlType
>> LookupAllPositionalParameters()
1687
Dictionary<int, IList<
XamlType
>> result = new Dictionary<int, IList<
XamlType
>>();
1688
XamlType
typeOfType = SchemaContext.GetXamlType(typeof(Type));
1689
XamlType
[] typeVector = new
XamlType
[] { typeOfType };
1694
Dictionary<int, IList<
XamlType
>> ctorDict = new Dictionary<int, IList<
XamlType
>>();
1698
XamlType
[] typeVector = new
XamlType
[parameterInfos.Length];
1703
XamlType
xamlType = SchemaContext.GetXamlType(type);
1822
XamlType
baseType = BaseType;
1836
XamlType
objXamlType = obj as
XamlType
;
1852
foreach (
XamlType
typeArgument in _typeArguments)
1871
public bool Equals(
XamlType
other)
1878
public static bool operator ==(
XamlType
xamlType1,
XamlType
xamlType2)
1923
public static bool operator !=(
XamlType
xamlType1,
XamlType
xamlType2)
1928
private static bool TypeArgumentsAreEqual(
XamlType
xamlType1,
XamlType
xamlType2)
System\Xaml\XamlTypeName.cs (2)
39
public XamlTypeName(
XamlType
xamlType)
46
foreach (
XamlType
argumentType in xamlType.TypeArguments)
System\Xaml\XamlWriter.cs (1)
11
public abstract void WriteStartObject(
XamlType
type);
System\Xaml\XamlXmlWriter.cs (45)
147
XamlType
type = null;
158
public override void WriteStartObject(
XamlType
type)
343
private static
XamlType
GetContainingXamlType(XamlXmlWriter writer)
347
XamlType
containingXamlType = null;
541
private void WriteTypeArguments(
XamlType
type)
553
private void WriteUndefinedNamespaces(
XamlType
type)
573
foreach (
XamlType
arg in type.TypeArguments)
580
private bool TypeArgumentsContainNamespaceThatNeedsDefinition(
XamlType
type)
595
foreach (
XamlType
arg in type.TypeArguments)
607
private string BuildTypeArgumentsString(IList<
XamlType
> typeArguments)
610
foreach (
XamlType
type in typeArguments)
623
private string ConvertXamlTypeToString(
XamlType
typeArgument)
630
private void ConvertXamlTypeToStringHelper(
XamlType
type, StringBuilder builder)
644
foreach (
XamlType
arg in type.TypeArguments)
665
internal static string GetTypeName(
XamlType
type)
681
public
XamlType
Type
781
public virtual void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
818
XamlType
type = frame.Type;
823
XamlType
xamlType = property.IsAttachable ? property.DeclaringType : type;
836
XamlType
owningType = frame.Type;
870
protected static void WriteStartElementForObject(XamlXmlWriter writer,
XamlType
type)
905
XamlType
type = null;
958
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
1029
XamlType
parentType = writer.namespaceScopes.Peek().Type;
1036
XamlType
containingType = writer.namespaceScopes.Peek().Type;
1133
XamlType
parentType = writer.namespaceScopes.Peek().Type;
1170
XamlType
containingType = writer.namespaceScopes.Peek().Type;
1269
XamlType
containingXamlType = GetContainingXamlType(writer);
1369
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
1396
XamlType
memberType = frame.Member.Type;
1448
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
1491
XamlType
containingXamlType = GetContainingXamlType(writer);
1496
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
1537
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
1608
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
1667
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
1717
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
1766
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
1800
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
1905
XamlType
objectXamlType = frame.Type;
1959
private ParameterInfo[] GetParametersInfo(
XamlType
objectXamlType, int numOfParameters)
1961
IList<
XamlType
> paramXamlTypes = objectXamlType.GetPositionalParameters(numOfParameters);
1971
foreach (
var
xamlType in paramXamlTypes)
1994
private List<XamlMember> GetAllPropertiesWithCAA(
XamlType
objectXamlType)
2044
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)