Files
Apr2020-Cpp2Il-Dump/System/ComponentModel/AttributeCollection.cs
T
niko 8fc35183db a
2026-04-11 22:19:20 +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: 0x020000E6 RID: 230
[Token(Token = "0x20000E6")]
[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: 0x06000563 RID: 1379 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000563")]
[Address(RVA = "0x492AC0", Offset = "0x4918C0", VA = "0x180492AC0")]
public AttributeCollection(params Attribute[] attributes)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.AttributeCollection" /> class.</summary>
// Token: 0x06000564 RID: 1380 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000564")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
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: 0x06000565 RID: 1381 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000565")]
[Address(RVA = "0x491F80", Offset = "0x490D80", VA = "0x180491F80")]
public static AttributeCollection FromExisting(AttributeCollection existing, params Attribute[] newAttributes)
{
return null;
}
/// <summary>Gets the attribute collection.</summary>
/// <returns>The attribute collection.</returns>
// Token: 0x170000D7 RID: 215
// (get) Token: 0x06000566 RID: 1382 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170000D7")]
protected virtual Attribute[] Attributes
{
[Token(Token = "0x6000566")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "9")]
get
{
return null;
}
}
/// <summary>Gets the number of attributes.</summary>
/// <returns>The number of attributes.</returns>
// Token: 0x170000D8 RID: 216
// (get) Token: 0x06000567 RID: 1383 RVA: 0x000041A0 File Offset: 0x000023A0
[Token(Token = "0x170000D8")]
public int Count
{
[Token(Token = "0x6000567")]
[Address(RVA = "0x492A10", Offset = "0x491810", VA = "0x180492A10")]
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: 0x170000D9 RID: 217
[Token(Token = "0x170000D9")]
public virtual Attribute this[int index]
{
[Token(Token = "0x6000568")]
[Address(RVA = "0x4930F0", Offset = "0x491EF0", VA = "0x1804930F0", 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: 0x170000DA RID: 218
[Token(Token = "0x170000DA")]
public virtual Attribute this[Type attributeType]
{
[Token(Token = "0x6000569")]
[Address(RVA = "0x492B90", Offset = "0x491990", VA = "0x180492B90", 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: 0x0600056A RID: 1386 RVA: 0x000041B8 File Offset: 0x000023B8
[Token(Token = "0x600056A")]
[Address(RVA = "0x491DB0", Offset = "0x490BB0", VA = "0x180491DB0")]
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: 0x0600056B RID: 1387 RVA: 0x000041D0 File Offset: 0x000023D0
[Token(Token = "0x600056B")]
[Address(RVA = "0x491E30", Offset = "0x490C30", VA = "0x180491E30")]
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: 0x0600056C RID: 1388 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600056C")]
[Address(RVA = "0x492380", Offset = "0x491180", VA = "0x180492380")]
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: 0x0600056D RID: 1389 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600056D")]
[Address(RVA = "0x492800", Offset = "0x491600", VA = "0x180492800")]
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: 0x0600056E RID: 1390 RVA: 0x000041E8 File Offset: 0x000023E8
[Token(Token = "0x600056E")]
[Address(RVA = "0x492940", Offset = "0x491740", VA = "0x180492940")]
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: 0x0600056F RID: 1391 RVA: 0x00004200 File Offset: 0x00002400
[Token(Token = "0x600056F")]
[Address(RVA = "0x492830", Offset = "0x491630", VA = "0x180492830")]
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: 0x170000DB RID: 219
// (get) Token: 0x06000570 RID: 1392 RVA: 0x00004218 File Offset: 0x00002418
[Token(Token = "0x170000DB")]
int ICollection.Count
{
[Token(Token = "0x6000570")]
[Address(RVA = "0x492A10", Offset = "0x491810", VA = "0x180492A10", 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: 0x170000DC RID: 220
// (get) Token: 0x06000571 RID: 1393 RVA: 0x00004230 File Offset: 0x00002430
[Token(Token = "0x170000DC")]
bool ICollection.IsSynchronized
{
[Token(Token = "0x6000571")]
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", 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: 0x170000DD RID: 221
// (get) Token: 0x06000572 RID: 1394 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170000DD")]
object ICollection.SyncRoot
{
[Token(Token = "0x6000572")]
[Address(RVA = "0x43E630", Offset = "0x43D430", VA = "0x18043E630", 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: 0x06000573 RID: 1395 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000573")]
[Address(RVA = "0x491EF0", Offset = "0x490CF0", VA = "0x180491EF0", 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: 0x06000574 RID: 1396 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000574")]
[Address(RVA = "0x492800", Offset = "0x491600", VA = "0x180492800", 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: 0x0400043B RID: 1083
[Token(Token = "0x400043B")]
public static readonly AttributeCollection Empty;
// Token: 0x0400043C RID: 1084
[Token(Token = "0x400043C")]
private static Hashtable _defaultAttributes;
// Token: 0x0400043D RID: 1085
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x400043D")]
private Attribute[] _attributes;
// Token: 0x0400043E RID: 1086
[Token(Token = "0x400043E")]
private static object internalSyncObject;
// Token: 0x0400043F RID: 1087
[Token(Token = "0x400043F")]
private const int FOUND_TYPES_LIMIT = 5;
// Token: 0x04000440 RID: 1088
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000440")]
private AttributeCollection.AttributeEntry[] _foundAttributeTypes;
// Token: 0x04000441 RID: 1089
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4000441")]
private int _index;
// Token: 0x020000E7 RID: 231
[Token(Token = "0x20000E7")]
private struct AttributeEntry
{
// Token: 0x04000442 RID: 1090
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
[Token(Token = "0x4000442")]
public Type type;
// Token: 0x04000443 RID: 1091
[global::Cpp2IlInjected.FieldOffset(Offset = "0x8")]
[Token(Token = "0x4000443")]
public int index;
}
}
}