2 types derived from XamlType
PresentationFramework (2)
System\Windows\Markup\Baml2006\WpfXamlType.cs (1)
18
internal class WpfXamlType :
XamlType
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (1)
415
private class VisibilityMaskingXamlType :
XamlType
8 instantiations of XamlType
System.Xaml (5)
System\Xaml\Context\XamlContext.cs (1)
280
xamlType = new
XamlType
(typeName.Namespace, typeName.Name, typeArgs, SchemaContext);
System\Xaml\Parser\XamlAttribute.cs (1)
156
XamlType attachedOwnerType = new
XamlType
(string.Empty, propName.OwnerName, null, context.SchemaContext);
System\Xaml\Parser\XamlScanner.cs (1)
538
return new
XamlType
(xmlns, name.Name, null, _parserContext.SchemaContext);
System\Xaml\Schema\XamlTypeTypeConverter.cs (1)
108
result = new
XamlType
(typeName.Namespace, typeName.Name, typeArgs, schemaContext);
System\Xaml\XamlSchemaContext.cs (1)
535
xamlType = new
XamlType
(alias, type, this, null, null);
System.Xaml.Tests (3)
System\Windows\Markup\XamlSetMarkupExtensionEventArgsTests.cs (1)
15
var type = new
XamlType
("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext());
System\Windows\Markup\XamlSetTypeConverterEventArgsTests.cs (1)
17
var type = new
XamlType
("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext());
System\Windows\Markup\XamlSetValueEventArgsTests.cs (1)
15
var type = new
XamlType
("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext());
696 references to XamlType
PresentationFramework (134)
MS\Internal\Helper.cs (1)
630
System.Xaml.
XamlType
xt = sc.GetXamlType(targetType);
System\Windows\Controls\ItemsPanelTemplate.cs (1)
120
System.Xaml.
XamlType
panelType = templateHolder.SchemaContext.GetXamlType(typeof(Panel));
System\Windows\Controls\ItemsPresenter.cs (1)
324
System.Xaml.
XamlType
xType = (Template.Template as TemplateContent).RootType;
System\Windows\FrameworkTemplate.cs (3)
586
internal static bool IsNameScope(
XamlType
type)
699
public
XamlType
Type { get; set; }
1080
internal static bool IsNameProperty(XamlMember member,
XamlType
owner)
System\Windows\Markup\Baml2006\Baml2006KeyRecord.cs (1)
103
public StaticResource(
XamlType
type, XamlSchemaContext schemaContext)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (17)
194
override public
XamlType
Type
817
XamlType
type = BamlSchemaContext.GetXamlType(_binaryReader.ReadInt16());
883
XamlType
xamlType = BamlSchemaContext.GetXamlType(keyId);
1130
XamlType
type;
1311
XamlType
type = _context.SchemaContext.GetXamlType(typeId);
1479
private XamlMember GetProperty(Int16 propertyId,
XamlType
parentType)
1640
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)
2349
private void InjectPropertyAndFrameIfNeeded(
XamlType
elementType, SByte flags)
2358
XamlType
parentType = _context.CurrentFrame.XamlType;
2420
XamlType
parentPropertyType = parentProperty.Type;
2494
private void EmitGoItemsPreamble(
XamlType
parentPropertyType)
2513
XamlType
type)
2605
XamlType
declaringType = BamlSchemaContext.GetXamlType(reader.ReadInt16());
2652
XamlType
type = _context.SchemaContext.GetXamlType(System.Windows.Markup.SystemKeyConverter.GetSystemClassType(keyId));
System\Windows\Markup\Baml2006\Baml2006ReaderFrame.cs (1)
37
public
XamlType
XamlType { get; set; }
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (25)
55
public override ICollection<
XamlType
> GetAllXamlTypes(string xamlNamespace)
65
public override
XamlType
GetXamlType(Type type)
70
protected override
XamlType
GetXamlType(string xamlNamespace, string name, params
XamlType
[] typeArguments)
76
foreach (
XamlType
typeArg in typeArguments)
94
internal
XamlType
ResourceDictionaryType { get { return _resourceDictionaryType.Value; } }
96
internal
XamlType
EventSetterType { get { return _eventSetterType.Value; } }
104
internal
XamlType
StaticResourceExtensionType { get { return _staticResourceExtensionType.Value; } }
159
XamlType
xamlType;
173
internal
XamlType
GetXamlType(Int16 typeId)
176
XamlType
xamlType;
203
internal XamlMember GetProperty(Int16 propertyId,
XamlType
parentType)
214
XamlType
declaringType = GetXamlType(bamlProperty.DeclaringTypeId);
249
XamlType
declaringType;
287
internal
XamlType
GetPropertyDeclaringType(Int16 propertyId)
553
private
XamlType
ResolveBamlType(BamlType bamlType, Int16 typeId)
559
XamlType
xType = _parentSchemaContext.GetXamlType(type);
595
private bool TryGetBamlType(Int16 typeId, out BamlType bamlType, out
XamlType
xamlType)
605
xamlType = type as
XamlType
;
681
private static readonly Lazy<
XamlType
> _resourceDictionaryType
682
= new Lazy<
XamlType
>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(ResourceDictionary)));
684
private static readonly Lazy<
XamlType
> _eventSetterType
685
= new Lazy<
XamlType
>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(EventSetter)));
696
private static readonly Lazy<
XamlType
> _staticResourceExtensionType
697
= new Lazy<
XamlType
>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(StaticResourceExtension)));
System\Windows\Markup\Baml2006\ThemeKnownTypeHelper.cs (1)
14
public abstract
XamlType
GetKnownXamlType(string name);
System\Windows\Markup\Baml2006\WpfKnownMember.cs (3)
69
XamlType
declaringType,
81
XamlType
declaringType,
193
protected override
XamlType
LookupType()
System\Windows\Markup\Baml2006\WpfKnownType.cs (3)
331
protected override IList<
XamlType
> LookupPositionalParameters(int paramCount)
335
List<
XamlType
> xTypes = null;
339
xTypes = new List<
XamlType
>();
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (22)
39
private Dictionary<Type,
XamlType
> _masterTypeTable;
62
_masterTypeTable = new Dictionary<Type,
XamlType
>(256);
181
public override
XamlType
GetXamlType(Type type)
185
XamlType
xamlType = GetKnownXamlType(type);
194
private
XamlType
GetUnknownXamlType(Type type)
196
XamlType
xamlType;
210
internal
XamlType
GetKnownXamlType(Type type)
212
XamlType
xamlType;
269
protected override
XamlType
GetXamlType(string xamlNamespace, string name, params
XamlType
[] typeArguments)
274
public
XamlType
GetXamlTypeExposed(string xamlNamespace, string name, params
XamlType
[] typeArguments)
314
XamlType
xamlType = GetXamlType(xamlTypeName);
329
internal
XamlType
ResourceDictionaryType { get { return _resourceDictionaryType.Value; } }
331
internal
XamlType
EventSetterType { get { return _eventSetterType.Value; } }
339
internal
XamlType
StaticResourceExtensionType { get { return _staticResourceExtensionType.Value; } }
364
private static readonly Lazy<
XamlType
> _resourceDictionaryType
365
= new Lazy<
XamlType
>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(ResourceDictionary)));
367
private static readonly Lazy<
XamlType
> _eventSetterType
368
= new Lazy<
XamlType
>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(EventSetter)));
379
private static readonly Lazy<
XamlType
> _staticResourceExtensionType
380
= new Lazy<
XamlType
>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(StaticResourceExtension)));
System\Windows\Markup\Baml2006\WpfSharedXamlSchemaContext.cs (6)
22
public override
XamlType
GetXamlType(Type type)
26
XamlType
xType;
58
internal
XamlType
GetXamlTypeInternal(string xamlNamespace, string name, params
XamlType
[] typeArguments)
63
private Dictionary<Type,
XamlType
> _masterTypeTable = new Dictionary<Type,
XamlType
>();
System\Windows\Markup\Baml2006\WpfXamlMember.cs (2)
93
protected WpfXamlMember(string name,
XamlType
declaringType, bool isAttachable)
152
protected override
XamlType
LookupType()
System\Windows\Markup\Baml2006\WpfXamlType.cs (1)
206
XamlType
type = this;
System\Windows\Markup\DependencyPropertyConverter.cs (8)
193
XamlType
styleXType = schemaContext.GetXamlType(typeof(Style));
194
XamlType
frameworkTemplateXType = schemaContext.GetXamlType(typeof(FrameworkTemplate));
195
XamlType
dataTemplateXType = schemaContext.GetXamlType(typeof(DataTemplate));
196
XamlType
controlTemplateXType = schemaContext.GetXamlType(typeof(ControlTemplate));
198
List<
XamlType
> ceilingTypes = new List<
XamlType
>();
254
XamlType
frameworkTemplateXType = schemaContext.GetXamlType(typeof(FrameworkTemplate));
258
ambientProvider.GetFirstAmbientValue(new
XamlType
[] { frameworkTemplateXType }, templateProperty);
System\Windows\Markup\RoutedEventConverter.cs (3)
88
XamlType
styleXType = schemaContext.GetXamlType(typeof(Style));
90
List<
XamlType
> ceilingTypes = new List<
XamlType
>();
System\Windows\Markup\WpfXamlLoader.cs (3)
292
XamlType
xamlType = xamlReader.Type;
293
XamlType
bindingBaseType = xamlType.SchemaContext.GetXamlType(typeof(BindingBase));
294
XamlType
dynamicResourceType = xamlType.SchemaContext.GetXamlType(typeof(DynamicResourceExtension));
System\Windows\Markup\XamlReader.cs (1)
1206
public
XamlType
Type { get; set; }
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (11)
30
Dictionary<Type,
XamlType
> _allowedInternalTypes;
96
public override
XamlType
GetXamlType(Type type)
214
protected override
XamlType
GetXamlType(string xamlNamespace, string name, params
XamlType
[] typeArguments)
309
private
XamlType
GetInternalType(Type type,
XamlType
sharedSchemaXamlType)
315
_allowedInternalTypes = new Dictionary<Type,
XamlType
>();
318
XamlType
result;
342
private
XamlType
LookupXamlType(string xamlNamespace, string name,
XamlType
[] typeArguments)
345
XamlType
result;
System\Windows\ResourceDictionary.cs (1)
1171
XamlType
xamlTypeStaticResourceExtension = reader.SchemaContext.GetXamlType(typeof(StaticResourceExtension));
System\Windows\StaticResourceExtension.cs (7)
221
XamlType
feXType = schemaContext.GetXamlType(typeof(FrameworkElement));
222
XamlType
styleXType = schemaContext.GetXamlType(typeof(Style));
223
XamlType
templateXType = schemaContext.GetXamlType(typeof(FrameworkTemplate));
224
XamlType
appXType = schemaContext.GetXamlType(typeof(Application));
225
XamlType
fceXType = schemaContext.GetXamlType(typeof(FrameworkContentElement));
234
XamlType
[] types = new
XamlType
[1] { schemaContext.GetXamlType(typeof(ResourceDictionary)) };
System\Windows\TemplateContent.cs (12)
33
private System.Xaml.
XamlType
_xamlType;
37
public
XamlType
Type
116
public void Push(System.Xaml.
XamlType
xamlType, string name)
309
private void UpdateSharedPropertyNames(string name, List<PropertyValue> sharedProperties,
XamlType
type)
475
XamlType
type = stack.CurrentFrame.Property.Type;
796
XamlType
parentType,
957
XamlType
type = frames.CurrentFrame.Property.Type;
1377
internal
XamlType
RootType { get; private set; }
1379
internal
XamlType
GetTypeForName(string name)
1535
internal Dictionary<string,
XamlType
> _namedTypes;
1536
internal Dictionary<string,
XamlType
> NamedTypes
1541
_namedTypes = new Dictionary<string,
XamlType
>();
PresentationFramework.Aero (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\KnownTypeHelper.cs (1)
23
public override
XamlType
GetKnownXamlType(String name)
PresentationFramework.Aero2 (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\KnownTypeHelper.cs (1)
23
public override
XamlType
GetKnownXamlType(String name)
PresentationFramework.AeroLite (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\KnownTypeHelper.cs (1)
23
public override
XamlType
GetKnownXamlType(String name)
PresentationFramework.Classic (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\KnownTypeHelper.cs (1)
23
public override
XamlType
GetKnownXamlType(String name)
PresentationFramework.Luna (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\KnownTypeHelper.cs (1)
23
public override
XamlType
GetKnownXamlType(String name)
PresentationFramework.Royale (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\KnownTypeHelper.cs (1)
23
public override
XamlType
GetKnownXamlType(String name)
System.Xaml (553)
System\Windows\Markup\PropertyDefinition.cs (1)
21
public
XamlType
Type { get; set; }
System\Windows\Markup\XamlSetMarkupExtensionEventArgs.cs (2)
30
internal
XamlType
CurrentType { get; set; }
37
XamlType
baseType = CurrentType.BaseType;
System\Windows\Markup\XamlSetTypeConverterEventArgs.cs (2)
36
internal
XamlType
CurrentType { get; set; }
42
XamlType
baseType = CurrentType.BaseType;
System\Xaml\Context\NameFixupToken.cs (1)
57
public
XamlType
InstanceType { get; set; }
System\Xaml\Context\ObjectWriterContext.cs (21)
157
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)
278
internal
XamlType
GetDestinationType()
301
private List<AmbientPropertyValue> FindAmbientValues(IEnumerable<
XamlType
> ceilingTypesEnumerable,
303
IEnumerable<
XamlType
> types,
315
List<
XamlType
> ceilingTypes = ceilingTypesEnumerable != null ? new List<
XamlType
>(ceilingTypesEnumerable) : null;
334
foreach (
XamlType
type in types)
422
private List<object> FindAmbientValues(
XamlType
[] types, bool stopAfterFirst)
424
foreach (
XamlType
xamlType in types)
439
foreach (
XamlType
type in types)
511
public
XamlType
CurrentType
517
public
XamlType
ParentType
522
public
XamlType
GrandParentType
891
XamlType
xamlType = rootFrame.XamlType;
System\Xaml\Context\ServiceProviderContext.cs (8)
132
IEnumerable<
XamlType
> ceilingTypes,
149
object IAmbientProvider.GetFirstAmbientValue(params
XamlType
[] types)
153
foreach (
var
type in types)
166
IEnumerable<
XamlType
> ceilingTypes,
183
IEnumerable<object> IAmbientProvider.GetAllAmbientValues(params
XamlType
[] types)
187
foreach (
var
type in types)
200
IEnumerable<
XamlType
> ceilingTypes,
202
IEnumerable<
XamlType
> types,
System\Xaml\Context\XamlCommonFrame.cs (1)
51
public
XamlType
XamlType { get; set; }
System\Xaml\Context\XamlContext.cs (31)
46
public XamlMember GetXamlProperty(
XamlType
xamlType, string propertyName,
XamlType
rootObjectType)
56
public XamlMember GetXamlAttachableProperty(
XamlType
xamlType, string propertyName)
77
public XamlMember GetDottedProperty(
XamlType
tagType, string tagNamespace, XamlPropertyName propName, bool tagIsRoot)
84
XamlType
ownerType = null;
90
XamlType
rootTagType = tagIsRoot ? tagType : null;
128
XamlType
declaringType = ownerTypeMatchesGenericTagType ? tagType : ownerType;
160
public XamlMember GetNoDotAttributeProperty(
XamlType
tagType, XamlPropertyName propName,
170
XamlType
rootTagType = tagIsRoot ? tagType : null;
220
private
XamlType
GetXamlTypeOrUnknown(XamlTypeName typeName)
225
internal
XamlType
GetXamlType(XamlName typeName)
230
internal
XamlType
GetXamlType(XamlName typeName, bool returnUnknownTypesOnFailure)
246
internal
XamlType
GetXamlType(XamlTypeName typeName)
251
internal
XamlType
GetXamlType(XamlTypeName typeName, bool returnUnknownTypesOnFailure)
256
internal
XamlType
GetXamlType(XamlTypeName typeName, bool returnUnknownTypesOnFailure,
262
XamlType
xamlType = _schemaContext.GetXamlType(typeName);
270
XamlType
[] typeArgs = null;
274
typeArgs = new
XamlType
[typeNames.Count];
302
internal
XamlType
ResolveXamlType(string qName, bool skipVisibilityCheck)
323
internal virtual bool IsVisible(XamlMember member,
XamlType
rootObjectType)
328
private XamlMember CreateUnknownMember(
XamlType
declaringType, string name)
333
private XamlMember CreateUnknownAttachableMember(
XamlType
declaringType, string name)
338
private bool PropertyTypeMatchesGenericTagType(
XamlType
tagType, string tagNs, string propNs, string propTypeName)
351
XamlType
propertyType = GetXamlType(propNs, propTypeName, tagType.TypeArguments);
355
private XamlMember GetInstanceOrAttachableProperty(
XamlType
tagType, string propName,
XamlType
rootTagType)
369
private
XamlType
GetXamlType(string ns, string name, IList<
XamlType
> typeArguments)
371
XamlType
[] typeArgArray = new
XamlType
[typeArguments.Count];
373
XamlType
xamlType = _schemaContext.GetXamlType(ns, name, typeArgArray);
System\Xaml\Context\XamlParserContext.cs (5)
112
internal override bool IsVisible(XamlMember member,
XamlType
rootObjectType)
158
internal void InitBracketCharacterCacheForType(
XamlType
extensionType)
167
internal void InitLongestConstructor(
XamlType
xamlType)
191
public
XamlType
CurrentType
286
public
XamlType
CurrentPreviousChildType
System\Xaml\Context\XamlParserFrame.cs (1)
31
public
XamlType
PreviousChildType { get; set; }
System\Xaml\IAmbientProvider.cs (6)
13
AmbientPropertyValue GetFirstAmbientValue(IEnumerable<
XamlType
> ceilingTypes,
15
object GetFirstAmbientValue(params
XamlType
[] types);
17
IEnumerable<AmbientPropertyValue> GetAllAmbientValues(IEnumerable<
XamlType
> ceilingTypes,
20
IEnumerable<object> GetAllAmbientValues(params
XamlType
[] types);
22
IEnumerable<AmbientPropertyValue> GetAllAmbientValues(IEnumerable<
XamlType
> ceilingTypes,
24
IEnumerable<
XamlType
> types,
System\Xaml\InfosetObjects\DeferredWriter.cs (2)
69
public override void WriteStartObject(
XamlType
xamlType)
74
void WriteObject(
XamlType
xamlType, bool fromMember, string methodName)
System\Xaml\InfosetObjects\XamlNodes.cs (3)
68
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)
269
XamlType
xamlType = (_context.CurrentType == null && _context.Depth > 1)
307
public override void WriteStartObject(
XamlType
xamlType)
367
XamlType
rootType = GetXamlType(_rootObjectInstance.GetType());
438
XamlType
xamlType = _context.CurrentType;
662
XamlType
propertyXamlType = property.Type;
761
XamlType
valueXamlType = GetXamlType(value.GetType());
772
XamlType
valueXamlType = GetXamlType(value.GetType());
852
XamlType
parentXamlType = parentProperty.Type;
1045
private object GetKeyFromInstance(object instance,
XamlType
instanceType, IAddLineInfo lineInfo)
1056
private
XamlType
GetXamlType(Type clrType)
1058
XamlType
result = SchemaContext.GetXamlType(clrType);
1091
bool IsDirectiveAllowedOnNullInstance(XamlMember xamlMember,
XamlType
xamlType)
1111
XamlType
currentType = ctx.CurrentType;
1151
XamlType
ownerType;
1170
XamlType
instType = GetXamlType(inst.GetType());
1203
XamlType
meType = ctx.CurrentType;
1211
IList<
XamlType
> paramTypes = meType.GetPositionalParameters(rawArgs.Count);
1228
XamlType
pparamType = paramTypes[i];
1241
XamlType
xamlType = ctx.ParentType;
1302
XamlType
propertyType = property.Type;
1322
XamlType
declaringType = null;
1334
XamlType
grandParentXamlType = ctx.GrandParentType;
1403
XamlType
dictionaryType = ctx.GrandParentType;
1430
XamlType
xamlType = ctx.CurrentType;
1451
XamlType
xamlType = ctx.CurrentType;
1487
XamlType
xamlType = onParent ? ctx.ParentType : ctx.CurrentType;
1586
XamlType
xamlType = onParent ? ctx.ParentType : ctx.CurrentType;
1657
XamlType
declaringType = null;
1740
XamlType
type = ctx.CurrentType;
1756
XamlType
collectionType = ctx.ParentType;
1757
XamlType
currentType = ctx.CurrentType;
1811
XamlType
itemType = ctx.ParentType.ItemType;
1954
XamlType
ppXamlType = parentProperty.Type;
2010
XamlType
parentType = ctx.ParentType;
2111
object inst,
XamlType
xamlType,
2569
private void ExecutePendingAdds(
XamlType
instanceType, object instance)
2576
XamlType
itemType = pendingAdd.ItemType ?? instanceType.ItemType;
2629
public
XamlType
ItemType { get; set; } // Need this because Add() overload resolution
System\Xaml\InfosetObjects\XamlXmlReader.cs (1)
286
public override
XamlType
Type
System\Xaml\Parser\MePullParser.cs (2)
98
XamlType
xamlType = _tokenizer.TokenType;
451
private XamlNode Logic_StartElement(
XamlType
xamlType, string xamlNamespace)
System\Xaml\Parser\MeScanner.cs (5)
59
XamlType
_tokenXamlType;
106
public
XamlType
TokenType
297
XamlType
xamlType = _context.GetXamlType(typeName, false);
321
XamlType
declaringType;
322
XamlType
tagType = _context.CurrentType;
System\Xaml\Parser\XamlAttribute.cs (3)
48
public void Initialize(XamlParserContext context,
XamlType
tagType, string ownerNamespace, bool tagIsRoot)
145
XamlType
tagType, string tagNamespace, bool tagIsRoot)
156
XamlType
attachedOwnerType = new XamlType(string.Empty, propName.OwnerName, null, context.SchemaContext);
System\Xaml\Parser\XamlPullParser.cs (18)
270
XamlType
currentType = _context.CurrentType;
427
XamlType
currentType = _context.CurrentType;
776
private XamlNode Logic_StartObject(
XamlType
xamlType, string xamlNamespace)
788
XamlType
xamlType = _context.CurrentType;
839
XamlType
memberXamlType = member.Type;
866
private XamlNode Logic_StartInitProperty(
XamlType
ownerType)
894
XamlType
previousObject = _context.CurrentPreviousChildType;
904
XamlType
nextXamlType = _xamlScanner.PeekType;
914
private XamlNode Logic_StartGetObjectFromMember(
XamlType
realType)
924
private XamlNode Logic_StartItemsProperty(
XamlType
collectionType)
936
private
XamlType
_arrayExtensionType;
937
private
XamlType
ArrayExtensionType
978
XamlType
currentType = _context.CurrentType;
981
XamlType
propertyType = currentProperty.Type;
983
XamlType
valueElementType = (_xamlScanner.NodeType == ScannerNodeType.TEXT)
1089
XamlType
collectionType = _context.CurrentMember == XamlLanguage.Items ? _context.CurrentType : _context.CurrentMember.Type;
1171
XamlType
propertyType = property.Type;
1174
foreach (
XamlType
allowedType in propertyType.AllowedContentTypes)
System\Xaml\Parser\XamlScanner.cs (5)
75
public
XamlType
PeekType
89
public
XamlType
Type
324
XamlType
errType = CreateErrorXamlType(name, string.Empty);
410
private void ReadPropertyElement(XamlPropertyName name,
XamlType
tagType, string tagNamespace, bool isEmptyTag)
536
private
XamlType
CreateErrorXamlType(XamlName name, string xmlns)
System\Xaml\Parser\XamlScannerNode.cs (1)
32
public
XamlType
Type { get; set; }
System\Xaml\Parser\XamlScannerStack.cs (4)
15
public
XamlType
XamlType { get; set; }
21
public XamlScannerFrame(
XamlType
xamlType, string ns)
38
public void Push(
XamlType
type, string ns)
56
public
XamlType
CurrentType
System\Xaml\ReaderBaseDelegate.cs (1)
42
public override
XamlType
Type
System\Xaml\Replacements\TypeTypeConverter.cs (1)
65
XamlType
xamlType = schemaContextProvider.SchemaContext.GetXamlType(type);
System\Xaml\Runtime\ClrObjectRuntime.cs (12)
45
public override object CreateInstance(
XamlType
xamlType, object[] args)
69
protected virtual object CreateInstanceWithCtor(
XamlType
xamlType, object[] args)
74
public override object CreateWithFactoryMethod(
XamlType
xamlType, string methodName, object[] args)
301
public override void Add(object collection,
XamlType
collectionType, object value,
XamlType
valueXamlType)
317
public override void AddToDictionary(object collection,
XamlType
dictionaryType, object value,
XamlType
valueXamlType, object key)
333
public override IList<object> GetCollectionItems(object collection,
XamlType
collectionType)
356
public override IEnumerable<DictionaryEntry> GetDictionaryItems(object dictionary,
XamlType
dictionaryType)
459
public override void InitializationGuard(
XamlType
xamlType, object obj, bool begin)
503
public override void SetUriBase(
XamlType
xamlType, object obj, Uri baseUri)
690
private IEnumerator GetItems(object collection,
XamlType
collectionType)
System\Xaml\Runtime\DynamicMethodRuntime.cs (1)
190
protected override object CreateInstanceWithCtor(
XamlType
xamlType, object[] args)
System\Xaml\Runtime\PartialTrustTolerantRuntime.cs (11)
63
public override void Add(object collection,
XamlType
collectionType, object value,
XamlType
valueXamlType)
68
public override void AddToDictionary(object collection,
XamlType
dictionaryType, object value,
XamlType
valueXamlType, object key)
137
public override object CreateInstance(
XamlType
xamlType, object[] args)
166
public override object CreateWithFactoryMethod(
XamlType
xamlType, string methodName, object[] args)
312
public override void InitializationGuard(
XamlType
xamlType, object obj, bool begin)
324
public override void SetUriBase(
XamlType
xamlType, object obj, Uri baseUri)
393
public override IList<object> GetCollectionItems(object collection,
XamlType
collectionType)
398
public override IEnumerable<DictionaryEntry> GetDictionaryItems(object dictionary,
XamlType
dictionaryType)
427
private static bool HasDefaultInvoker(
XamlType
xamlType)
System\Xaml\Schema\MemberReflector.cs (4)
64
internal MemberReflector(
XamlType
type, XamlValueConverter<TypeConverter> typeConverter)
96
s_UnknownReflector.DependsOn =
XamlType
.EmptyList<XamlMember>.Value;
187
internal
XamlType
Type { get; set; }
189
internal
XamlType
TargetType { get; set; }
System\Xaml\Schema\TypeReflector.cs (15)
42
private ThreadSafeDictionary<int, IList<
XamlType
>> _positionalParameterTypes;
69
private NullableReference<
XamlType
> _baseType;
166
internal IList<
XamlType
> AllowedContentTypes { get; set; }
181
internal
XamlType
BaseType
208
internal IList<
XamlType
> ContentWrappers { get; set; }
220
internal
XamlType
KeyType { get; set; }
235
internal
XamlType
ItemType { get; set; }
237
internal
XamlType
MarkupExtensionReturnType { get; set; }
252
internal Dictionary<int, IList<
XamlType
>> ReflectedPositionalParameters { get; set; }
288
internal bool TryGetPositionalParameters(int paramCount, out IList<
XamlType
> result)
299
new ThreadSafeDictionary<int, IList<
XamlType
>>(), null);
304
internal IList<
XamlType
> TryAddPositionalParameters(int paramCount, IList<
XamlType
> paramList)
395
internal static XamlMember LookupNameScopeProperty(
XamlType
xamlType)
412
XamlType
ownerXamlType = xamlType.SchemaContext.GetXamlType(ownerType);
System\Xaml\Schema\XamlDirective.cs (3)
35
public XamlDirective(IEnumerable<string> xamlNamespaces, string name,
XamlType
xamlType,
174
protected sealed override
XamlType
LookupTargetType()
185
protected sealed override
XamlType
LookupType()
System\Xaml\Schema\XamlNamespace.cs (15)
21
private ConcurrentDictionary<string,
XamlType
> _typeCache;
22
private ICollection<
XamlType
> _allPublicTypes;
48
_typeCache = XamlSchemaContext.CreateDictionary<string,
XamlType
>();
53
public ICollection<
XamlType
> GetAllXamlTypes() => _allPublicTypes ??= LookupAllTypes();
55
public
XamlType
GetXamlType(string typeName, params
XamlType
[] typeArgs)
71
private
XamlType
TryGetXamlType(string typeName)
74
XamlType
xamlType;
97
private
XamlType
TryGetXamlType(string typeName, Type[] typeArgs)
108
XamlType
openXamlType = TryGetXamlType(typeName);
154
private Type[] ConvertArrayOfXamlTypesToTypes(
XamlType
[] typeArgs)
201
private ICollection<
XamlType
> LookupAllTypes()
203
List<
XamlType
> xamlTypeList = new List<
XamlType
>();
223
XamlType
xamlType = SchemaContext.GetXamlType(t);
System\Xaml\Schema\XamlTypeInvoker.cs (10)
22
private Dictionary<
XamlType
, MethodInfo> _addMethods;
24
private
XamlType
_xamlType;
38
public XamlTypeInvoker(
XamlType
type)
80
XamlType
itemType;
112
XamlType
itemType;
143
public virtual MethodInfo GetAddMethod(
XamlType
contentType)
168
Dictionary<
XamlType
, MethodInfo> addMethods = new Dictionary<
XamlType
, MethodInfo>();
170
foreach (
XamlType
type in _xamlType.AllowedContentTypes)
191
foreach (KeyValuePair<
XamlType
, MethodInfo> pair in _addMethods)
System\Xaml\Schema\XamlTypeTypeConverter.cs (9)
25
XamlType
result = ConvertStringToXamlType(context, typeName);
42
XamlType
xamlType = value as
XamlType
;
56
internal static string ConvertXamlTypeToString(ITypeDescriptorContext context,
XamlType
xamlType)
67
private static
XamlType
ConvertStringToXamlType(ITypeDescriptorContext context, string typeName)
92
private static
XamlType
GetXamlTypeOrUnknown(XamlSchemaContext schemaContext, XamlTypeName typeName)
94
XamlType
result = schemaContext.GetXamlType(typeName);
99
XamlType
[] typeArgs = null;
102
typeArgs = new
XamlType
[typeName.TypeArguments.Count];
System\Xaml\Schema\XamlValueConverter.cs (3)
23
public
XamlType
TargetType { get; }
25
public XamlValueConverter(Type converterType,
XamlType
targetType)
30
public XamlValueConverter(Type converterType,
XamlType
targetType, string name)
System\Xaml\WriterDelegate.cs (1)
34
public override void WriteStartObject(
XamlType
xamlType)
System\Xaml\XamlBackgroundReader.cs (1)
281
public override
XamlType
Type
System\Xaml\XamlException.cs (4)
142
public
XamlType
ParentType { get; set; }
146
public XamlDuplicateMemberException(XamlMember member,
XamlType
type)
164
ParentType = (
XamlType
)info.GetValue("ParentType", typeof(
XamlType
));
System\Xaml\XamlLanguage.cs (92)
60
private static Lazy<
XamlType
> s_array =
61
new Lazy<
XamlType
>(() => GetXamlType(typeof(ArrayExtension)));
62
private static Lazy<
XamlType
> s_null =
63
new Lazy<
XamlType
>(() => GetXamlType(typeof(NullExtension)));
64
private static Lazy<
XamlType
> s_reference =
65
new Lazy<
XamlType
>(() => GetXamlType(typeof(Reference)));
66
private static Lazy<
XamlType
> s_static =
67
new Lazy<
XamlType
>(() => GetXamlType(typeof(StaticExtension)));
68
private static Lazy<
XamlType
> s_type =
69
new Lazy<
XamlType
>(() => GetXamlType(typeof(TypeExtension)));
70
private static Lazy<
XamlType
> s_string =
71
new Lazy<
XamlType
>(() => GetXamlType(typeof(string)));
72
private static Lazy<
XamlType
> s_double =
73
new Lazy<
XamlType
>(() => GetXamlType(typeof(double)));
74
private static Lazy<
XamlType
> s_int32 =
75
new Lazy<
XamlType
>(() => GetXamlType(typeof(int)));
76
private static Lazy<
XamlType
> s_boolean =
77
new Lazy<
XamlType
>(() => GetXamlType(typeof(bool)));
78
private static Lazy<
XamlType
> s_member =
79
new Lazy<
XamlType
>(() => GetXamlType(typeof(MemberDefinition)));
80
private static Lazy<
XamlType
> s_property =
81
new Lazy<
XamlType
>(() => GetXamlType(typeof(PropertyDefinition)));
82
private static Lazy<
XamlType
> s_xDataHolder =
83
new Lazy<
XamlType
>(() => GetXamlType(typeof(XData)));
85
private static Lazy<
XamlType
> s_object =
86
new Lazy<
XamlType
>(() => GetXamlType(typeof(object)));
87
private static Lazy<
XamlType
> s_listOfObject =
88
new Lazy<
XamlType
>(() => GetXamlType(typeof(List<object>)));
89
private static Lazy<
XamlType
> s_listOfMembers =
90
new Lazy<
XamlType
>(() => GetXamlType(typeof(List<MemberDefinition>)));
91
private static Lazy<
XamlType
> s_listOfAttributes =
92
new Lazy<
XamlType
>(() => GetXamlType(typeof(List<Attribute>)));
94
private static Lazy<
XamlType
> s_markupExtension =
95
new Lazy<
XamlType
>(() => GetXamlType(typeof(MarkupExtension)));
96
private static Lazy<
XamlType
> s_iNameScope =
97
new Lazy<
XamlType
>(() => GetXamlType(typeof(INameScope)));
98
private static Lazy<
XamlType
> s_iXmlSerializable =
99
new Lazy<
XamlType
>(() => GetXamlType(typeof(IXmlSerializable)), true);
101
private static Lazy<
XamlType
> s_positionalParameterDescriptor =
102
new Lazy<
XamlType
>(() => GetXamlType(typeof(PositionalParameterDescriptor)), true);
104
private static Lazy<
XamlType
> s_char =
105
new Lazy<
XamlType
>(() => GetXamlType(typeof(Char)), true);
106
private static Lazy<
XamlType
> s_single =
107
new Lazy<
XamlType
>(() => GetXamlType(typeof(Single)), true);
108
private static Lazy<
XamlType
> s_byte =
109
new Lazy<
XamlType
>(() => GetXamlType(typeof(Byte)), true);
110
private static Lazy<
XamlType
> s_int16 =
111
new Lazy<
XamlType
>(() => GetXamlType(typeof(Int16)), true);
112
private static Lazy<
XamlType
> s_int64 =
113
new Lazy<
XamlType
>(() => GetXamlType(typeof(Int64)), true);
114
private static Lazy<
XamlType
> s_decimal =
115
new Lazy<
XamlType
>(() => GetXamlType(typeof(Decimal)), true);
116
private static Lazy<
XamlType
> s_uri =
117
new Lazy<
XamlType
>(() => GetXamlType(typeof(Uri)), true);
118
private static Lazy<
XamlType
> s_timespan =
119
new Lazy<
XamlType
>(() => GetXamlType(typeof(TimeSpan)), true);
121
private static Lazy<ReadOnlyCollection<
XamlType
>> s_allTypes =
122
new Lazy<ReadOnlyCollection<
XamlType
>>(GetAllTypes);
190
public static
XamlType
Array { get { return s_array.Value; } }
191
public static
XamlType
Member { get { return s_member.Value; } }
192
public static
XamlType
Null { get { return s_null.Value; } }
193
public static
XamlType
Property { get { return s_property.Value; } }
194
public static
XamlType
Reference { get { return s_reference.Value; } }
195
public static
XamlType
Static { get { return s_static.Value; } }
196
public static
XamlType
Type { get { return s_type.Value; } }
197
public static
XamlType
String { get { return s_string.Value; } }
198
public static
XamlType
Double { get { return s_double.Value; } }
199
public static
XamlType
Int32 { get { return s_int32.Value; } }
200
public static
XamlType
Boolean { get { return s_boolean.Value; } }
201
public static
XamlType
XData { get { return s_xDataHolder.Value; } }
203
public static
XamlType
Object { get { return s_object.Value; } }
204
public static
XamlType
Char { get { return s_char.Value; } }
205
public static
XamlType
Single { get { return s_single.Value; } }
206
public static
XamlType
Byte { get { return s_byte.Value; } }
207
public static
XamlType
Int16 { get { return s_int16.Value; } }
208
public static
XamlType
Int64 { get { return s_int64.Value; } }
209
public static
XamlType
Decimal { get { return s_decimal.Value; } }
210
public static
XamlType
Uri { get { return s_uri.Value; } }
211
public static
XamlType
TimeSpan { get { return s_timespan.Value; } }
213
public static ReadOnlyCollection<
XamlType
> AllTypes { get { return s_allTypes.Value; } }
244
internal static
XamlType
MarkupExtension { get { return s_markupExtension.Value; } }
245
internal static
XamlType
INameScope { get { return s_iNameScope.Value; } }
246
internal static
XamlType
PositionalParameterDescriptor { get { return s_positionalParameterDescriptor.Value; } }
248
internal static
XamlType
IXmlSerializable { get { return s_iXmlSerializable.Value; } }
314
internal static
XamlType
LookupXamlType(string typeNamespace, string typeName)
409
private static ReadOnlyCollection<
XamlType
> GetAllTypes()
411
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 };
412
return new ReadOnlyCollection<
XamlType
>(result);
446
private static XamlDirective GetXamlDirective(string name,
XamlType
xamlType,
459
private static
XamlType
GetXamlType(Type type)
461
XamlType
result = s_schemaContext.Value.GetXamlType(type);
System\Xaml\XamlMarkupExtensionWriter.cs (7)
94
string LookupPrefix(
XamlType
type)
144
public override void WriteStartObject(
XamlType
type)
203
public
XamlType
XamlType
215
public virtual void WriteStartObject(XamlMarkupExtensionWriter writer,
XamlType
type)
307
public override void WriteStartObject(XamlMarkupExtensionWriter writer,
XamlType
type)
501
public override void WriteStartObject(XamlMarkupExtensionWriter writer,
XamlType
type)
571
public override void WriteStartObject(XamlMarkupExtensionWriter writer,
XamlType
type)
System\Xaml\XamlMember.cs (9)
23
private
XamlType
_declaringType;
37
public XamlMember(string name,
XamlType
declaringType, bool isAttachable)
160
public
XamlType
DeclaringType { get { return _declaringType; } }
221
public
XamlType
TargetType
242
public
XamlType
Type
352
_reflector.DependsOn = LookupDependsOn() ??
XamlType
.EmptyList<XamlMember>.Value;
567
return
XamlType
.GetReadOnly(result);
646
protected virtual
XamlType
LookupTargetType()
720
protected virtual
XamlType
LookupType()
System\Xaml\XamlObjectReader.cs (40)
142
public override
XamlType
Type
399
object sourceOrValue, XamlMember property,
XamlType
propertyType, SerializerContext context)
416
XamlType
keyType = propertyType.KeyType;
444
XamlType
actualKeyType = null;
481
XamlType
typeOfValue = context.GetXamlType(entry.Value.GetType());
645
XamlType
declaringType = xamlProperty.DeclaringType;
672
var
memberType = memberInfo.XamlNode.Member.Type;
707
public static MemberMarkupInfo ForSequenceItems(object sourceOrValue, XamlMember property,
XamlType
xamlType, SerializerContext context, bool allowReadOnly)
759
foreach (
var
contentWrapperType in xamlType.ContentWrappers)
809
static bool ShouldUnwrapDueToWhitespace(string value,
XamlType
xamlType, bool isFirstElementOfCollection, bool isLastElementOfCollection)
1167
var
type = XamlNode.XamlType;
1181
void FindNamespaceForTypeArguments(IList<
XamlType
> types, SerializerContext context)
1188
foreach (
var
type in types)
1195
void AddItemsProperty(object value, SerializerContext context,
XamlType
xamlType)
1326
bool TryAddPositionalParameters(
XamlType
xamlType, MemberInfo member, ICollection arguments, SerializerContext context)
1340
XamlType
paramXamlType = context.GetXamlType(cstrParams[i++].ParameterType);
1423
bool TryGetDefaultConstructorInfo(
XamlType
type, out MemberInfo member, out ICollection arguments, out bool isComplete)
1434
var
valueXamlType = context.GetXamlType(valueType);
1467
XamlType
xamlType)
1514
void AddRecordConstructionMembers(object value,
XamlType
valueXamlType, SerializerContext context,
1591
bool IsPropertyContent(MemberMarkupInfo propertyInfo,
XamlType
containingType)
1607
void GetConstructorInfo(object value,
XamlType
valueXamlType, SerializerContext context, out MemberInfo member, out ICollection arguments, out bool isComplete)
1706
var
xamlType = objInfo.XamlNode.XamlType;
1767
var
xamlType = context.LocalAssemblyAwareGetXamlType(Object.GetType());
1805
var
type = context.LocalAssemblyAwareGetXamlType(value.GetType());
1807
var
elementType = type.ItemType;
1871
XamlType
owningType = context.GetXamlType(ap.Key.DeclaringType);
1931
XamlType
valueType = context.GetXamlType(value.GetType());
2017
XamlType
xamlType = context.LocalAssemblyAwareGetXamlType(value.GetType());
2059
var
xamlType = context.LocalAssemblyAwareGetXamlType(originalValue.GetType());
2319
static List<XamlMember> GetXamlSerializableProperties(
XamlType
type, SerializerContext context)
2627
public
XamlType
GetXamlType(Type clrType)
2629
XamlType
result = schemaContext.GetXamlType(clrType);
2638
public
XamlType
LocalAssemblyAwareGetXamlType(Type clrType)
2640
XamlType
result = GetXamlType(clrType);
2691
XamlType
valueXamlType = context.GetXamlType(value.GetType());
2723
public string ConvertXamlTypeToString(
XamlType
type)
2733
XamlType
type = GetXamlType(objectToName.GetType());
3230
XamlType
baseType = member.DeclaringType.BaseType;
3255
private static XamlMember GetExcludedReadOnlyMember(
XamlType
type, string name)
System\Xaml\XamlReader.cs (1)
19
public abstract
XamlType
Type { get; }
System\Xaml\XamlRuntime.cs (10)
26
abstract public object CreateInstance(
XamlType
xamlType, object[] args);
28
abstract public object CreateWithFactoryMethod(
XamlType
xamlType, string methodName, object[] args);
61
abstract public void SetUriBase(
XamlType
xamlType, object obj, Uri baseUri);
65
abstract public void Add(object collection,
XamlType
collectionType, object value,
XamlType
valueXamlType);
67
abstract public void AddToDictionary(object collection,
XamlType
dictionaryType, object value,
XamlType
valueXamlType, object key);
69
abstract public IList<object> GetCollectionItems(object collection,
XamlType
collectionType);
71
abstract public IEnumerable<DictionaryEntry> GetDictionaryItems(object dictionary,
XamlType
dictionaryType);
79
abstract public void InitializationGuard(
XamlType
xamlType, object obj, bool begin);
System\Xaml\XamlSchemaContext.cs (25)
97
public virtual ICollection<
XamlType
> GetAllXamlTypes(string xamlNamespace)
264
public
XamlType
GetXamlType(XamlTypeName xamlTypeName)
276
XamlType
[] typeArgs = null;
279
typeArgs = new
XamlType
[xamlTypeName.TypeArguments.Count];
296
protected internal virtual
XamlType
GetXamlType(string xamlNamespace, string name, params
XamlType
[] typeArguments)
302
foreach (
XamlType
typeArg in typeArguments)
315
XamlType
result = null;
467
private ConcurrentDictionary<Type,
XamlType
> _masterTypeList;
468
private ConcurrentDictionary<ReferenceEqualityTuple<Type,
XamlType
, Type>, object> _masterValueConverterList;
470
private ConcurrentDictionary<
XamlType
, Dictionary<string,SpecialBracketCharacters> > _masterBracketCharacterCache;
479
private ConcurrentDictionary<
XamlType
, Dictionary<string, SpecialBracketCharacters> > MasterBracketCharacterCache
484
Interlocked.CompareExchange(ref _masterBracketCharacterCache, CreateDictionary<
XamlType
, Dictionary<string, SpecialBracketCharacters>>(), null);
490
private ConcurrentDictionary<Type,
XamlType
> MasterTypeList
495
Interlocked.CompareExchange(ref _masterTypeList, CreateDictionary<Type,
XamlType
>(ReferenceEqualityComparer.Instance), null);
501
private ConcurrentDictionary<ReferenceEqualityTuple<Type,
XamlType
, Type>, object> MasterValueConverterList
506
Interlocked.CompareExchange(ref _masterValueConverterList, CreateDictionary<ReferenceEqualityTuple<Type,
XamlType
, Type>, object>(), null);
522
public virtual
XamlType
GetXamlType(Type type)
529
internal
XamlType
GetXamlType(Type type, string alias)
532
XamlType
xamlType = null;
546
internal Dictionary<string, SpecialBracketCharacters> InitBracketCharacterCacheForType(
XamlType
type)
567
private Dictionary<string, SpecialBracketCharacters> BuildBracketCharacterCacheForType(
XamlType
type)
594
Type converterType,
XamlType
targetType)
597
var key = new ReferenceEqualityTuple<Type,
XamlType
, Type>(converterType, targetType, typeof(TConverterBase));
890
internal ReadOnlyCollection<string> GetXamlNamespaces(
XamlType
type)
System\Xaml\XamlSubreader.cs (1)
56
public override
XamlType
Type
System\Xaml\XamlType.cs (68)
22
public class XamlType : IEquatable<
XamlType
>
27
readonly IList<
XamlType
> _typeArguments;
42
protected XamlType(string typeName, IList<
XamlType
> typeArguments, XamlSchemaContext schemaContext)
49
public XamlType(string unknownTypeNamespace, string unknownTypeName, IList<
XamlType
> typeArguments, XamlSchemaContext schemaContext)
82
public
XamlType
BaseType
144
public IList<
XamlType
> TypeArguments
191
public
XamlType
KeyType
208
public
XamlType
ItemType
225
public IList<
XamlType
> AllowedContentTypes
239
EmptyList<
XamlType
>.Value;
245
public IList<
XamlType
> ContentWrappers
257
EmptyList<
XamlType
>.Value;
315
public
XamlType
MarkupExtensionReturnType
411
public virtual bool CanAssignTo(
XamlType
xamlType)
419
XamlType
curType = this;
426
baseUnderlyingType.Assembly == typeof(
XamlType
).Assembly)
445
public IList<
XamlType
> GetPositionalParameters(int parameterCount)
448
IList<
XamlType
> result;
684
protected virtual IList<
XamlType
> LookupAllowedContentTypes()
686
IList<
XamlType
> contentWrappers = ContentWrappers ?? EmptyList<
XamlType
>.Value;
687
List<
XamlType
> result = new List<
XamlType
>(contentWrappers.Count + 1);
690
foreach (
XamlType
contentWrapper in contentWrappers)
695
XamlType
contentType = contentWrapper.ContentProperty.Type;
706
protected virtual
XamlType
LookupBaseType()
770
protected virtual IList<
XamlType
> LookupContentWrappers()
772
List<
XamlType
> contentWrappers = null;
779
contentWrappers = new List<
XamlType
>(wrapperTypes.Count);
789
IList<
XamlType
> baseWrappers = BaseType.ContentWrappers;
915
protected virtual
XamlType
LookupKeyType()
933
protected virtual
XamlType
LookupItemType()
963
protected virtual
XamlType
LookupMarkupExtensionReturnType()
971
XamlType
xamlReturnType = SchemaContext.GetXamlType(returnType);
1086
protected virtual IList<
XamlType
> LookupPositionalParameters(int parameterCount)
1102
IList<
XamlType
> result;
1186
XamlType
innerXamlType = SchemaContext.GetXamlType(typeArgs[0]);
1226
XamlType
innerXamlType = SchemaContext.GetXamlType(typeArgs[0]);
1470
private static ReadOnlyCollection<
XamlType
> GetTypeArguments(IList<
XamlType
> typeArguments)
1476
foreach (
XamlType
typeArg in typeArguments)
1483
return new List<
XamlType
>(typeArguments).AsReadOnly();
1486
private static ReadOnlyCollection<
XamlType
> GetTypeArguments(Type type, XamlSchemaContext schemaContext)
1498
XamlType
[] result = new
XamlType
[types.Length];
1560
Debug.Assert(GetType() != typeof(
XamlType
), "Default GetAllMembers logic should have already captured all writeable properties");
1566
private Dictionary<int, IList<
XamlType
>> LookupAllPositionalParameters()
1573
Dictionary<int, IList<
XamlType
>> result = new Dictionary<int,IList<
XamlType
>>();
1574
XamlType
typeOfType = SchemaContext.GetXamlType(typeof(Type));
1575
XamlType
[] typeVector = new
XamlType
[] { typeOfType };
1580
Dictionary<int, IList<
XamlType
>> ctorDict = new Dictionary<int, IList<
XamlType
>>();
1584
XamlType
[] typeVector = new
XamlType
[parameterInfos.Length];
1589
XamlType
xamlType = SchemaContext.GetXamlType(type);
1702
XamlType
baseType = BaseType;
1716
XamlType
objXamlType = obj as
XamlType
;
1731
foreach (
XamlType
typeArgument in _typeArguments)
1749
public bool Equals(
XamlType
other)
1756
public static bool operator ==(
XamlType
xamlType1,
XamlType
xamlType2)
1797
public static bool operator !=(
XamlType
xamlType1,
XamlType
xamlType2)
1802
private static bool TypeArgumentsAreEqual(
XamlType
xamlType1,
XamlType
xamlType2)
System\Xaml\XamlTypeName.cs (2)
42
public XamlTypeName(
XamlType
xamlType)
49
foreach (
XamlType
argumentType in xamlType.TypeArguments)
System\Xaml\XamlWriter.cs (1)
12
public abstract void WriteStartObject(
XamlType
type);
System\Xaml\XamlXmlWriter.cs (45)
150
XamlType
type = null;
161
public override void WriteStartObject(
XamlType
type)
341
static
XamlType
GetContainingXamlType(XamlXmlWriter writer)
345
XamlType
containingXamlType = null;
536
void WriteTypeArguments(
XamlType
type)
548
void WriteUndefinedNamespaces(
XamlType
type)
568
foreach (
XamlType
arg in type.TypeArguments)
575
bool TypeArgumentsContainNamespaceThatNeedsDefinition(
XamlType
type)
590
foreach (
XamlType
arg in type.TypeArguments)
602
string BuildTypeArgumentsString(IList<
XamlType
> typeArguments)
605
foreach (
XamlType
type in typeArguments)
618
string ConvertXamlTypeToString(
XamlType
typeArgument)
625
void ConvertXamlTypeToStringHelper(
XamlType
type, StringBuilder builder)
640
foreach (
XamlType
arg in type.TypeArguments)
659
static internal string GetTypeName(
XamlType
type)
674
public
XamlType
Type
771
public virtual void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
808
XamlType
type = frame.Type;
813
XamlType
xamlType = property.IsAttachable ? property.DeclaringType : type;
826
XamlType
owningType = frame.Type;
859
protected static void WriteStartElementForObject(XamlXmlWriter writer,
XamlType
type)
894
XamlType
type = null;
946
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
1017
XamlType
parentType = writer.namespaceScopes.Peek().Type;
1024
XamlType
containingType = writer.namespaceScopes.Peek().Type;
1121
XamlType
parentType = writer.namespaceScopes.Peek().Type;
1158
XamlType
containingType = writer.namespaceScopes.Peek().Type;
1257
XamlType
containingXamlType = GetContainingXamlType(writer);
1351
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
1378
XamlType
memberType = frame.Member.Type;
1430
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
1473
XamlType
containingXamlType = GetContainingXamlType(writer);
1478
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
1519
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
1591
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
1649
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
1698
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
1747
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
1781
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
1887
XamlType
objectXamlType = frame.Type;
1940
ParameterInfo[] GetParametersInfo(
XamlType
objectXamlType, int numOfParameters)
1942
IList<
XamlType
> paramXamlTypes = objectXamlType.GetPositionalParameters(numOfParameters);
1952
foreach (
var
xamlType in paramXamlTypes)
1975
List<XamlMember> GetAllPropertiesWithCAA(
XamlType
objectXamlType)
2023
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
System.Xaml.Tests (3)
System\Windows\Markup\XamlSetMarkupExtensionEventArgsTests.cs (1)
15
var
type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext());
System\Windows\Markup\XamlSetTypeConverterEventArgsTests.cs (1)
17
var
type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext());
System\Windows\Markup\XamlSetValueEventArgsTests.cs (1)
15
var
type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext());