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