18 instantiations of ArrayExtension
PresentationFramework (5)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (2)
1771bamlType.DefaultConstructor = delegate() { return new System.Windows.Markup.ArrayExtension(); }; 1777return new System.Windows.Markup.ArrayExtension(
System\Windows\Markup\BamlRecordReader.cs (1)
3136ArrayExtension arrayExt = new ArrayExtension();
System\Windows\Markup\KnownTypes.cs (1)
1131case 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() };
30 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)
4075Type type = typeof(System.Windows.Markup.ArrayExtension); 4077this.GetXamlType(typeof(System.Windows.Markup.ArrayExtension)), // DeclaringType 4083bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Markup.ArrayExtension)target).Items; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
1769typeof(System.Windows.Markup.ArrayExtension),
System\Windows\Markup\BamlCollectionHolder.cs (2)
59internal ArrayExtension ArrayExt 61get { return _collection as ArrayExtension; }
System\Windows\Markup\BamlRecordReader.cs (9)
894else if (typeof(ArrayExtension).IsAssignableFrom(elementType)) 3008ArrayExtension arrayExt = holder.ArrayExt; 3136ArrayExtension arrayExt = new ArrayExtension(); 3239private ArrayExtension GetArrayExtensionFromContext(ReaderContextStackData context) 3241ArrayExtension result = null; 3245result = context.ObjectData as ArrayExtension; 3249result = (ArrayExtension)context.ObjectData; 4677ArrayExtension arrayExt = GetArrayExtensionFromContext(parentContext); 4861elementType = ((ArrayExtension)element).Type.MakeArrayType();
System\Windows\Markup\KnownTypes.cs (1)
5568case KnownElements.ArrayExtension: t = typeof(System.Windows.Markup.ArrayExtension); break;
System\Windows\Markup\Primitives\MarkupWriter.cs (2)
1007ArrayExtension arrayExt = instance as ArrayExtension;
System.Xaml (1)
System\Xaml\XamlLanguage.cs (1)
60new Lazy<XamlType>(() => GetXamlType(typeof(ArrayExtension)));
System.Xaml.Tests (9)
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()