18 instantiations of ArrayExtension
PresentationFramework (5)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (2)
1773bamlType.DefaultConstructor = delegate() { return new System.Windows.Markup.ArrayExtension(); }; 1779return new System.Windows.Markup.ArrayExtension(
System\Windows\Markup\BamlRecordReader.cs (1)
3145ArrayExtension 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)
954return 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)
18[assembly:TypeForwardedTo(typeof(System.Windows.Markup.ArrayExtension))]
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
110case 14: t = () => typeof(ArrayExtension); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
4077Type type = typeof(System.Windows.Markup.ArrayExtension); 4079this.GetXamlType(typeof(System.Windows.Markup.ArrayExtension)), // DeclaringType 4085bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Markup.ArrayExtension)target).Items; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
1771typeof(System.Windows.Markup.ArrayExtension),
System\Windows\Markup\BamlCollectionHolder.cs (2)
60internal ArrayExtension ArrayExt 62get { return _collection as ArrayExtension; }
System\Windows\Markup\BamlRecordReader.cs (9)
903else if (typeof(ArrayExtension).IsAssignableFrom(elementType)) 3017ArrayExtension arrayExt = holder.ArrayExt; 3145ArrayExtension arrayExt = new ArrayExtension(); 3248private ArrayExtension GetArrayExtensionFromContext(ReaderContextStackData context) 3250ArrayExtension result = null; 3254result = context.ObjectData as ArrayExtension; 3258result = (ArrayExtension)context.ObjectData; 4686ArrayExtension arrayExt = GetArrayExtensionFromContext(parentContext); 4870elementType = ((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)
1014ArrayExtension arrayExt = instance as ArrayExtension;
System.Xaml (1)
System\Xaml\XamlLanguage.cs (1)
61new 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()