76 references to Collection
PresentationFramework (58)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (55)
1976
CollectionKind = XamlCollectionKind.
Collection
2271
CollectionKind = XamlCollectionKind.
Collection
2502
CollectionKind = XamlCollectionKind.
Collection
2645
CollectionKind = XamlCollectionKind.
Collection
2872
CollectionKind = XamlCollectionKind.
Collection
3518
CollectionKind = XamlCollectionKind.
Collection
4127
CollectionKind = XamlCollectionKind.
Collection
4195
CollectionKind = XamlCollectionKind.
Collection
4236
CollectionKind = XamlCollectionKind.
Collection
5049
CollectionKind = XamlCollectionKind.
Collection
5104
CollectionKind = XamlCollectionKind.
Collection
5305
CollectionKind = XamlCollectionKind.
Collection
5886
CollectionKind = XamlCollectionKind.
Collection
6118
CollectionKind = XamlCollectionKind.
Collection
6194
CollectionKind = XamlCollectionKind.
Collection
6248
CollectionKind = XamlCollectionKind.
Collection
6377
CollectionKind = XamlCollectionKind.
Collection
6409
CollectionKind = XamlCollectionKind.
Collection
7205
CollectionKind = XamlCollectionKind.
Collection
7363
CollectionKind = XamlCollectionKind.
Collection
7560
CollectionKind = XamlCollectionKind.
Collection
7902
CollectionKind = XamlCollectionKind.
Collection
8119
CollectionKind = XamlCollectionKind.
Collection
8175
CollectionKind = XamlCollectionKind.
Collection
8362
CollectionKind = XamlCollectionKind.
Collection
8416
CollectionKind = XamlCollectionKind.
Collection
8521
CollectionKind = XamlCollectionKind.
Collection
8589
CollectionKind = XamlCollectionKind.
Collection
8922
CollectionKind = XamlCollectionKind.
Collection
9117
CollectionKind = XamlCollectionKind.
Collection
9456
CollectionKind = XamlCollectionKind.
Collection
9912
CollectionKind = XamlCollectionKind.
Collection
10041
CollectionKind = XamlCollectionKind.
Collection
10685
CollectionKind = XamlCollectionKind.
Collection
10701
CollectionKind = XamlCollectionKind.
Collection
11109
CollectionKind = XamlCollectionKind.
Collection
11152
CollectionKind = XamlCollectionKind.
Collection
11300
CollectionKind = XamlCollectionKind.
Collection
11433
CollectionKind = XamlCollectionKind.
Collection
11631
CollectionKind = XamlCollectionKind.
Collection
11661
CollectionKind = XamlCollectionKind.
Collection
12159
CollectionKind = XamlCollectionKind.
Collection
12213
CollectionKind = XamlCollectionKind.
Collection
12274
CollectionKind = XamlCollectionKind.
Collection
12328
CollectionKind = XamlCollectionKind.
Collection
12841
CollectionKind = XamlCollectionKind.
Collection
12855
CollectionKind = XamlCollectionKind.
Collection
12869
CollectionKind = XamlCollectionKind.
Collection
12955
CollectionKind = XamlCollectionKind.
Collection
12970
CollectionKind = XamlCollectionKind.
Collection
13074
CollectionKind = XamlCollectionKind.
Collection
13088
CollectionKind = XamlCollectionKind.
Collection
13103
CollectionKind = XamlCollectionKind.
Collection
13117
CollectionKind = XamlCollectionKind.
Collection
13131
CollectionKind = XamlCollectionKind.
Collection
System\Windows\Markup\Baml2006\WpfXamlType.cs (3)
492
return XamlCollectionKind.
Collection
;
498
return XamlCollectionKind.
Collection
;
505
return XamlCollectionKind.
Collection
;
System.Xaml (7)
System\Xaml\Schema\CollectionReflector.cs (4)
60
return XamlCollectionKind.
Collection
;
65
return XamlCollectionKind.
Collection
;
76
return XamlCollectionKind.
Collection
;
87
case XamlCollectionKind.
Collection
:
System\Xaml\XamlType.cs (3)
178
public bool IsCollection { get { return GetCollectionKind() == XamlCollectionKind.
Collection
; } }
235
if (collectionKind != XamlCollectionKind.
Collection
&&
508
(collectionKind == XamlCollectionKind.
Collection
) ||
System.Xaml.Tests (11)
System\Xaml\XamlTypeTests.cs (11)
1750
yield return new object?[] { new SubXamlType(typeof(ICollection<int>), new XamlSchemaContext()), XamlCollectionKind.
Collection
};
1751
yield return new object?[] { new SubXamlType(typeof(IList), new XamlSchemaContext()), XamlCollectionKind.
Collection
};
1752
yield return new object?[] { new SubXamlType(typeof(IList<int>), new XamlSchemaContext()), XamlCollectionKind.
Collection
};
1755
yield return new object?[] { new SubXamlType(typeof(Collection<int>), new XamlSchemaContext()), XamlCollectionKind.
Collection
};
1756
yield return new object?[] { new SubXamlType(typeof(List<int>), new XamlSchemaContext()), XamlCollectionKind.
Collection
};
1757
yield return new object?[] { new SubXamlType(typeof(GetEnumeratorClass), new XamlSchemaContext()), XamlCollectionKind.
Collection
};
1760
yield return new object?[] { new SubXamlType(typeof(MultiICollectionImplementer), new XamlSchemaContext()), XamlCollectionKind.
Collection
};
1761
yield return new object?[] { new SubXamlType(typeof(ICollectionImplementer), new XamlSchemaContext()), XamlCollectionKind.
Collection
};
1762
yield return new object?[] { new SubXamlType(typeof(InternalICollectionImplementer), new XamlSchemaContext()), XamlCollectionKind.
Collection
};
1763
yield return new object?[] { new SubXamlType(typeof(MoreThanOneICollectionImplementer), new XamlSchemaContext()), XamlCollectionKind.
Collection
};
1795
Assert.Equal(expected == XamlCollectionKind.
Collection
, type.IsCollection);