18 instantiations of ArrayExtension
PresentationFramework (5)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (2)
1792
DefaultConstructor = delegate () { return new System.Windows.Markup.
ArrayExtension
(); },
1799
return new System.Windows.Markup.
ArrayExtension
(
System\Windows\Markup\BamlRecordReader.cs (1)
3126
ArrayExtension arrayExt = new
ArrayExtension
System\Windows\Markup\KnownTypes.cs (1)
1125
case KnownElements.ArrayExtension: o = new System.Windows.Markup.
ArrayExtension
(); break;
System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
943
return new
ArrayExtension
(array);
System.Xaml.Tests (13)
System\Windows\Markup\ArrayExtensionTests.cs (12)
15
var extension = new
ArrayExtension
();
26
var extension = new
ArrayExtension
(type);
36
Assert.Throws<ArgumentNullException>("arrayType", () => new
ArrayExtension
((Type)null!));
54
var extension = new
ArrayExtension
(elements);
64
Assert.Throws<ArgumentNullException>("elements", () => new
ArrayExtension
((Array)null!));
70
Assert.Throws<RankException>(() => new
ArrayExtension
(new int[1, 1]));
79
var extension = new
ArrayExtension
();
90
var extension = new
ArrayExtension
();
98
var extension = new
ArrayExtension
(typeof(int));
107
var extension = new
ArrayExtension
();
114
var extension = new
ArrayExtension
(typeof(int));
124
ArrayExtension extension =
new
()
System\Windows\Markup\XamlSetMarkupExtensionEventArgsTests.cs (1)
16
yield return new object?[] { new XamlMember("name", type, false), new
ArrayExtension
(), new CustomServiceProvider() };
46 references to ArrayExtension
PresentationFramework (20)
OtherAssemblyAttrs.cs (1)
13
[assembly: TypeForwardedTo(typeof(System.Windows.Markup.
ArrayExtension
))]
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
108
case 14: t = () => typeof(
ArrayExtension
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
4287
Type type = typeof(System.Windows.Markup.
ArrayExtension
);
4289
this.GetXamlType(typeof(System.Windows.Markup.
ArrayExtension
)), // DeclaringType
4296
GetDelegate = delegate (object target) { return ((System.Windows.Markup.
ArrayExtension
)target).Items; },
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
1789
typeof(System.Windows.Markup.
ArrayExtension
),
System\Windows\Markup\BamlCollectionHolder.cs (2)
59
internal
ArrayExtension
ArrayExt
61
get { return _collection as
ArrayExtension
; }
System\Windows\Markup\BamlRecordReader.cs (9)
885
else if (typeof(
ArrayExtension
).IsAssignableFrom(elementType))
2998
ArrayExtension
arrayExt = holder.ArrayExt;
3126
ArrayExtension
arrayExt = new ArrayExtension
3231
private
ArrayExtension
GetArrayExtensionFromContext(ReaderContextStackData context)
3233
ArrayExtension
result = null;
3237
result = context.ObjectData as
ArrayExtension
;
3241
result = (
ArrayExtension
)context.ObjectData;
4665
ArrayExtension
arrayExt = GetArrayExtensionFromContext(parentContext);
4849
elementType = ((
ArrayExtension
)element).Type.MakeArrayType();
System\Windows\Markup\KnownTypes.cs (1)
5562
case KnownElements.ArrayExtension: t = typeof(System.Windows.Markup.
ArrayExtension
); break;
System\Windows\Markup\Primitives\MarkupWriter.cs (2)
1009
ArrayExtension
arrayExt = instance as
ArrayExtension
;
System.Xaml (1)
System\Xaml\XamlLanguage.cs (1)
60
new Lazy<XamlType>(() => GetXamlType(typeof(
ArrayExtension
)));
System.Xaml.Tests (21)
System\Windows\Markup\ArrayExtensionTests.cs (9)
15
var
extension = new ArrayExtension();
26
var
extension = new ArrayExtension(type);
54
var
extension = new ArrayExtension(elements);
79
var
extension = new ArrayExtension();
90
var
extension = new ArrayExtension();
98
var
extension = new ArrayExtension(typeof(int));
107
var
extension = new ArrayExtension();
114
var
extension = new ArrayExtension(typeof(int));
124
ArrayExtension
extension = new()
System\Xaml\XamlLanguageTests.cs (1)
34
Assert.Equal(typeof(
ArrayExtension
), type.UnderlyingType);
System\Xaml\XamlSchemaContextTests.cs (2)
448
new XamlType(typeof(
ArrayExtension
), new XamlSchemaContext())
453
new XamlType(typeof(
ArrayExtension
), new XamlSchemaContext())
System\Xaml\XamlTypeTests.cs (9)
2695
yield return new object[] { new SubXamlType(typeof(
ArrayExtension
), new XamlSchemaContext()), true };
3688
yield return new object?[] { new SubXamlType(typeof(
ArrayExtension
), new XamlSchemaContext(duplicateSupport)), 2, null };
3689
yield return new object?[] { new SubXamlType(typeof(
ArrayExtension
), new XamlSchemaContext(duplicateSupport)), 1, new XamlType[] { new XamlType(typeof(Type), new XamlSchemaContext()) } };
3690
yield return new object?[] { new SubXamlType(typeof(
ArrayExtension
), new XamlSchemaContext(duplicateSupport)), 0, Array.Empty<XamlType>() };
3691
yield return new object?[] { new SubXamlType(typeof(
ArrayExtension
), new XamlSchemaContext(duplicateSupport)), -1, null };
3695
new CustomXamlType(typeof(
ArrayExtension
), new XamlSchemaContext())
3712
[InlineData(typeof(
ArrayExtension
), 0)]
3713
[InlineData(typeof(
ArrayExtension
), 1)]
3714
[InlineData(typeof(
ArrayExtension
), 2)]
WindowsBase.Tests (4)
System\Windows\Markup\Primitives\MarkupObjectTests.cs (2)
94
Assert.Equal(instance, Assert.IsType<
ArrayExtension
>(properties[0].Value).Items);
301
Assert.Equal(array, Assert.IsType<
ArrayExtension
>(properties[0].Value).Items);
System\Windows\Markup\Primitives\MarkupPropertyTests.cs (2)
81
Assert.Equal(instance, Assert.IsType<
ArrayExtension
>(properties[0].Value).Items);
288
Assert.Equal(array, Assert.IsType<
ArrayExtension
>(properties[0].Value).Items);