49 for (i = 0; i < 5; i++)
72 for (
int j = 0; j < num; j++)
82 for (
int k = 0; k < num; k++)
97 bool ICollection.IsSynchronized =>
false;
99 object ICollection.SyncRoot =>
this;
122 if (existing ==
null)
126 if (newAttributes ==
null)
133 for (
int i = 0; i < newAttributes.Length; i++)
135 if (newAttributes[i] ==
null)
140 for (
int j = 0; j < existing.
Count; j++)
142 if (
array[j].TypeId.Equals(newAttributes[i].TypeId))
145 array[j] = newAttributes[i];
167 [RequiresUnreferencedCode(
"The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")]
170 if (attribute ==
null)
174 return this[attribute.GetType()]?.Equals(attribute) ??
false;
177 [RequiresUnreferencedCode(
"The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")]
180 if (attributes ==
null)
184 for (
int i = 0; i < attributes.Length; i++)
213 if (field !=
null && field.
IsStatic)
220 if (constructor !=
null)
253 if (attributes ==
null)
257 for (
int i = 0; i < attributes.Length; i++)
static unsafe void Copy(Array sourceArray, Array destinationArray, int length)
virtual bool IsDefaultAttribute()
bool Contains(Attribute[]? attributes)
AttributeEntry[] _foundAttributeTypes
Attribute? GetDefaultAttribute([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor|DynamicallyAccessedMemberTypes.PublicFields)] Type attributeType)
readonly Attribute[] _attributes
AttributeCollection(params Attribute[]? attributes)
IEnumerator GetEnumerator()
virtual ? Attribute this[[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor|DynamicallyAccessedMemberTypes.PublicFields)] Type attributeType
static AttributeCollection FromExisting(AttributeCollection existing, params Attribute[]? newAttributes)
void CopyTo(Array array, int index)
bool Matches(Attribute? attribute)
bool Matches(Attribute[]? attributes)
static readonly object s_internalSyncObject
bool Contains(Attribute? attribute)
virtual Attribute[] Attributes
static Hashtable s_defaultAttributes
static Type GetReflectionType([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor|DynamicallyAccessedMemberTypes.PublicFields)] Type type)
object Invoke(object?[]? parameters)
object? GetValue(object? obj)
Type UnderlyingSystemType
FieldInfo? GetField(string name)
ConstructorInfo? GetConstructor(Type[] types)
static readonly Type[] EmptyTypes
IEnumerator GetEnumerator()
DynamicallyAccessedMemberTypes