, ReadOnly.
.. , .
, Collection<T>,
ClassPack ClassBckPack, Count, readonly, , Set. , .
, API System.Collections.ObjectModel
public class Collection<T> : IList<T>, ICollection<T>, IList, ICollection, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable
{
[TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
public Collection();
public Collection(IList<T> list);
public int Count { get; }****
protected IList<T> Items { get; }
,
CustomAttribute, , "ExampleAttribute" , - . , , . .
foreach (PropertyInfo propertyInfo in type.GetProperties())
{
object[] attrObjs = propertyInfo.GetCustomAttributes(typeof(ExampleAttribute), true);
if (attrObjs.Length > 0)
{
}
}
, .