Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

290 lines
12 KiB
C#

using System;
using System.Collections;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.ComponentModel
{
/// <summary>Represents a collection of attributes.</summary>
// Token: 0x020000E2 RID: 226
[Token(Token = "0x20000E2")]
[ComVisible(true)]
public class AttributeCollection : ICollection, IEnumerable
{
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.AttributeCollection" /> class.</summary>
/// <param name="attributes">An array of type <see cref="T:System.Attribute" /> that provides the attributes for this collection.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="attributes" /> is <see langword="null" />.</exception>
// Token: 0x0600054D RID: 1357 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600054D")]
[Address(RVA = "0xB8F8A0", Offset = "0xB8E8A0", VA = "0x180B8F8A0")]
public AttributeCollection(params Attribute[] attributes)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.AttributeCollection" /> class.</summary>
// Token: 0x0600054E RID: 1358 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600054E")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
protected AttributeCollection()
{
}
/// <summary>Creates a new <see cref="T:System.ComponentModel.AttributeCollection" /> from an existing <see cref="T:System.ComponentModel.AttributeCollection" />.</summary>
/// <param name="existing">An <see cref="T:System.ComponentModel.AttributeCollection" /> from which to create the copy.</param>
/// <param name="newAttributes">An array of type <see cref="T:System.Attribute" /> that provides the attributes for this collection. Can be <see langword="null" />.</param>
/// <returns>A new <see cref="T:System.ComponentModel.AttributeCollection" /> that is a copy of <paramref name="existing" />.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="existing" /> is <see langword="null" />.</exception>
// Token: 0x0600054F RID: 1359 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600054F")]
[Address(RVA = "0xB8ED60", Offset = "0xB8DD60", VA = "0x180B8ED60")]
public static AttributeCollection FromExisting(AttributeCollection existing, params Attribute[] newAttributes)
{
return null;
}
/// <summary>Gets the attribute collection.</summary>
/// <returns>The attribute collection.</returns>
// Token: 0x170000D3 RID: 211
// (get) Token: 0x06000550 RID: 1360 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170000D3")]
protected virtual Attribute[] Attributes
{
[Token(Token = "0x6000550")]
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "9")]
get
{
return null;
}
}
/// <summary>Gets the number of attributes.</summary>
/// <returns>The number of attributes.</returns>
// Token: 0x170000D4 RID: 212
// (get) Token: 0x06000551 RID: 1361 RVA: 0x00004188 File Offset: 0x00002388
[Token(Token = "0x170000D4")]
public int Count
{
[Token(Token = "0x6000551")]
[Address(RVA = "0xB8F7F0", Offset = "0xB8E7F0", VA = "0x180B8F7F0")]
get
{
return 0;
}
}
/// <summary>Gets the attribute with the specified index number.</summary>
/// <param name="index">The zero-based index of <see cref="T:System.ComponentModel.AttributeCollection" />.</param>
/// <returns>The <see cref="T:System.Attribute" /> with the specified index number.</returns>
// Token: 0x170000D5 RID: 213
[Token(Token = "0x170000D5")]
public virtual Attribute this[int index]
{
[Token(Token = "0x6000552")]
[Address(RVA = "0xB8FED0", Offset = "0xB8EED0", VA = "0x180B8FED0", Slot = "10")]
get
{
return null;
}
}
/// <summary>Gets the attribute with the specified type.</summary>
/// <param name="attributeType">The <see cref="T:System.Type" /> of the <see cref="T:System.Attribute" /> to get from the collection.</param>
/// <returns>The <see cref="T:System.Attribute" /> with the specified type or, if the attribute does not exist, the default value for the attribute type.</returns>
// Token: 0x170000D6 RID: 214
[Token(Token = "0x170000D6")]
public virtual Attribute this[Type attributeType]
{
[Token(Token = "0x6000553")]
[Address(RVA = "0xB8F970", Offset = "0xB8E970", VA = "0x180B8F970", Slot = "11")]
get
{
return null;
}
}
/// <summary>Determines whether this collection of attributes has the specified attribute.</summary>
/// <param name="attribute">An <see cref="T:System.Attribute" /> to find in the collection.</param>
/// <returns>
/// <see langword="true" /> if the collection contains the attribute or is the default attribute for the type of attribute; otherwise, <see langword="false" />.</returns>
// Token: 0x06000554 RID: 1364 RVA: 0x000041A0 File Offset: 0x000023A0
[Token(Token = "0x6000554")]
[Address(RVA = "0xB8EB90", Offset = "0xB8DB90", VA = "0x180B8EB90")]
public bool Contains(Attribute attribute)
{
return default(bool);
}
/// <summary>Determines whether this attribute collection contains all the specified attributes in the attribute array.</summary>
/// <param name="attributes">An array of type <see cref="T:System.Attribute" /> to find in the collection.</param>
/// <returns>
/// <see langword="true" /> if the collection contains all the attributes; otherwise, <see langword="false" />.</returns>
// Token: 0x06000555 RID: 1365 RVA: 0x000041B8 File Offset: 0x000023B8
[Token(Token = "0x6000555")]
[Address(RVA = "0xB8EC10", Offset = "0xB8DC10", VA = "0x180B8EC10")]
public bool Contains(Attribute[] attributes)
{
return default(bool);
}
/// <summary>Returns the default <see cref="T:System.Attribute" /> of a given <see cref="T:System.Type" />.</summary>
/// <param name="attributeType">The <see cref="T:System.Type" /> of the attribute to retrieve.</param>
/// <returns>The default <see cref="T:System.Attribute" /> of a given <paramref name="attributeType" />.</returns>
// Token: 0x06000556 RID: 1366 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000556")]
[Address(RVA = "0xB8F160", Offset = "0xB8E160", VA = "0x180B8F160")]
protected Attribute GetDefaultAttribute(Type attributeType)
{
return null;
}
/// <summary>Gets an enumerator for this collection.</summary>
/// <returns>An enumerator of type <see cref="T:System.Collections.IEnumerator" />.</returns>
// Token: 0x06000557 RID: 1367 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000557")]
[Address(RVA = "0xB8F5E0", Offset = "0xB8E5E0", VA = "0x180B8F5E0")]
public IEnumerator GetEnumerator()
{
return null;
}
/// <summary>Determines whether a specified attribute is the same as an attribute in the collection.</summary>
/// <param name="attribute">An instance of <see cref="T:System.Attribute" /> to compare with the attributes in this collection.</param>
/// <returns>
/// <see langword="true" /> if the attribute is contained within the collection and has the same value as the attribute in the collection; otherwise, <see langword="false" />.</returns>
// Token: 0x06000558 RID: 1368 RVA: 0x000041D0 File Offset: 0x000023D0
[Token(Token = "0x6000558")]
[Address(RVA = "0xB8F720", Offset = "0xB8E720", VA = "0x180B8F720")]
public bool Matches(Attribute attribute)
{
return default(bool);
}
/// <summary>Determines whether the attributes in the specified array are the same as the attributes in the collection.</summary>
/// <param name="attributes">An array of <see cref="T:System.CodeDom.MemberAttributes" /> to compare with the attributes in this collection.</param>
/// <returns>
/// <see langword="true" /> if all the attributes in the array are contained in the collection and have the same values as the attributes in the collection; otherwise, <see langword="false" />.</returns>
// Token: 0x06000559 RID: 1369 RVA: 0x000041E8 File Offset: 0x000023E8
[Token(Token = "0x6000559")]
[Address(RVA = "0xB8F610", Offset = "0xB8E610", VA = "0x180B8F610")]
public bool Matches(Attribute[] attributes)
{
return default(bool);
}
/// <summary>Gets the number of elements contained in the collection.</summary>
/// <returns>The number of elements contained in the collection.</returns>
// Token: 0x170000D7 RID: 215
// (get) Token: 0x0600055A RID: 1370 RVA: 0x00004200 File Offset: 0x00002400
[Token(Token = "0x170000D7")]
int ICollection.Count
{
[Token(Token = "0x600055A")]
[Address(RVA = "0xB8F7F0", Offset = "0xB8E7F0", VA = "0x180B8F7F0", Slot = "5")]
get
{
return 0;
}
}
/// <summary>Gets a value indicating whether access to the collection is synchronized (thread-safe).</summary>
/// <returns>
/// <see langword="true" /> if access to the collection is synchronized (thread-safe); otherwise, <see langword="false" />.</returns>
// Token: 0x170000D8 RID: 216
// (get) Token: 0x0600055B RID: 1371 RVA: 0x00004218 File Offset: 0x00002418
[Token(Token = "0x170000D8")]
bool ICollection.IsSynchronized
{
[Token(Token = "0x600055B")]
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "7")]
get
{
return default(bool);
}
}
/// <summary>Gets an object that can be used to synchronize access to the collection.</summary>
/// <returns>An object that can be used to synchronize access to the collection.</returns>
// Token: 0x170000D9 RID: 217
// (get) Token: 0x0600055C RID: 1372 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170000D9")]
object ICollection.SyncRoot
{
[Token(Token = "0x600055C")]
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "6")]
get
{
return null;
}
}
/// <summary>Copies the collection to an array, starting at the specified index.</summary>
/// <param name="array">The <see cref="T:System.Array" /> to copy the collection to.</param>
/// <param name="index">The index to start from.</param>
// Token: 0x0600055D RID: 1373 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600055D")]
[Address(RVA = "0xB8ECD0", Offset = "0xB8DCD0", VA = "0x180B8ECD0", Slot = "4")]
public void CopyTo(Array array, int index)
{
}
/// <summary>Returns an <see cref="T:System.Collections.IEnumerator" /> for the <see cref="T:System.Collections.IDictionary" />.</summary>
/// <returns>An <see cref="T:System.Collections.IEnumerator" /> for the <see cref="T:System.Collections.IDictionary" />.</returns>
// Token: 0x0600055E RID: 1374 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600055E")]
[Address(RVA = "0xB8F5E0", Offset = "0xB8E5E0", VA = "0x180B8F5E0", Slot = "8")]
IEnumerator IEnumerable.GetEnumerator()
{
return null;
}
/// <summary>Specifies an empty collection that you can use, rather than creating a new one. This field is read-only.</summary>
// Token: 0x0400042E RID: 1070
[Token(Token = "0x400042E")]
public static readonly AttributeCollection Empty;
// Token: 0x0400042F RID: 1071
[Token(Token = "0x400042F")]
private static Hashtable _defaultAttributes;
// Token: 0x04000430 RID: 1072
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4000430")]
private Attribute[] _attributes;
// Token: 0x04000431 RID: 1073
[Token(Token = "0x4000431")]
private static object internalSyncObject;
// Token: 0x04000432 RID: 1074
[Token(Token = "0x4000432")]
private const int FOUND_TYPES_LIMIT = 5;
// Token: 0x04000433 RID: 1075
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000433")]
private AttributeCollection.AttributeEntry[] _foundAttributeTypes;
// Token: 0x04000434 RID: 1076
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4000434")]
private int _index;
// Token: 0x020000E3 RID: 227
[Token(Token = "0x20000E3")]
private struct AttributeEntry
{
// Token: 0x04000435 RID: 1077
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
[Token(Token = "0x4000435")]
public Type type;
// Token: 0x04000436 RID: 1078
[global::Cpp2IlInjected.FieldOffset(Offset = "0x8")]
[Token(Token = "0x4000436")]
public int index;
}
}
}