273 lines
10 KiB
C#
273 lines
10 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.ComponentModel
|
|
{
|
|
/// <summary>Encapsulates zero or more components.</summary>
|
|
// Token: 0x02000101 RID: 257
|
|
[Token(Token = "0x2000101")]
|
|
public class Container : IContainer, IDisposable
|
|
{
|
|
/// <summary>Releases unmanaged resources and performs other cleanup operations before the <see cref="T:System.ComponentModel.Container" /> is reclaimed by garbage collection.</summary>
|
|
// Token: 0x06000645 RID: 1605 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000645")]
|
|
[Address(RVA = "0x499D90", Offset = "0x498B90", VA = "0x180499D90", Slot = "1")]
|
|
protected override void Finalize()
|
|
{
|
|
}
|
|
|
|
/// <summary>Adds the specified <see cref="T:System.ComponentModel.Component" /> to the <see cref="T:System.ComponentModel.Container" />. The component is unnamed.</summary>
|
|
/// <param name="component">The component to add.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="component" /> is <see langword="null" />.</exception>
|
|
// Token: 0x06000646 RID: 1606 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000646")]
|
|
[Address(RVA = "0x499970", Offset = "0x498770", VA = "0x180499970", Slot = "9")]
|
|
public virtual void Add(IComponent component)
|
|
{
|
|
}
|
|
|
|
/// <summary>Adds the specified <see cref="T:System.ComponentModel.Component" /> to the <see cref="T:System.ComponentModel.Container" /> and assigns it a name.</summary>
|
|
/// <param name="component">The component to add.</param>
|
|
/// <param name="name">The unique, case-insensitive name to assign to the component.
|
|
/// -or-
|
|
/// <see langword="null" />, which leaves the component unnamed.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="component" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="name" /> is not unique.</exception>
|
|
// Token: 0x06000647 RID: 1607 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000647")]
|
|
[Address(RVA = "0x4996F0", Offset = "0x4984F0", VA = "0x1804996F0", Slot = "10")]
|
|
public virtual void Add(IComponent component, string name)
|
|
{
|
|
}
|
|
|
|
/// <summary>Creates a site <see cref="T:System.ComponentModel.ISite" /> for the given <see cref="T:System.ComponentModel.IComponent" /> and assigns the given name to the site.</summary>
|
|
/// <param name="component">The <see cref="T:System.ComponentModel.IComponent" /> to create a site for.</param>
|
|
/// <param name="name">The name to assign to <paramref name="component" />, or <see langword="null" /> to skip the name assignment.</param>
|
|
/// <returns>The newly created site.</returns>
|
|
// Token: 0x06000648 RID: 1608 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000648")]
|
|
[Address(RVA = "0x499990", Offset = "0x498790", VA = "0x180499990", Slot = "11")]
|
|
protected virtual ISite CreateSite(IComponent component, string name)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Releases all resources used by the <see cref="T:System.ComponentModel.Container" />.</summary>
|
|
// Token: 0x06000649 RID: 1609 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000649")]
|
|
[Address(RVA = "0x499A10", Offset = "0x498810", VA = "0x180499A10", Slot = "8")]
|
|
public void Dispose()
|
|
{
|
|
}
|
|
|
|
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.ComponentModel.Container" />, and optionally releases the managed resources.</summary>
|
|
/// <param name="disposing">
|
|
/// <see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
|
|
// Token: 0x0600064A RID: 1610 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x600064A")]
|
|
[Address(RVA = "0x499A80", Offset = "0x498880", VA = "0x180499A80", Slot = "12")]
|
|
protected virtual void Dispose(bool disposing)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets the service object of the specified type, if it is available.</summary>
|
|
/// <param name="service">The <see cref="T:System.Type" /> of the service to retrieve.</param>
|
|
/// <returns>An <see cref="T:System.Object" /> implementing the requested service, or <see langword="null" /> if the service cannot be resolved.</returns>
|
|
// Token: 0x0600064B RID: 1611 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600064B")]
|
|
[Address(RVA = "0x499E10", Offset = "0x498C10", VA = "0x180499E10", Slot = "13")]
|
|
protected virtual object GetService(Type service)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Gets all the components in the <see cref="T:System.ComponentModel.Container" />.</summary>
|
|
/// <returns>A collection that contains the components in the <see cref="T:System.ComponentModel.Container" />.</returns>
|
|
// Token: 0x1700011D RID: 285
|
|
// (get) Token: 0x0600064C RID: 1612 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x1700011D")]
|
|
public virtual ComponentCollection Components
|
|
{
|
|
[Token(Token = "0x600064C")]
|
|
[Address(RVA = "0x49A3D0", Offset = "0x4991D0", VA = "0x18049A3D0", Slot = "14")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Removes a component from the <see cref="T:System.ComponentModel.Container" />.</summary>
|
|
/// <param name="component">The component to remove.</param>
|
|
// Token: 0x0600064D RID: 1613 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x600064D")]
|
|
[Address(RVA = "0x499EB0", Offset = "0x498CB0", VA = "0x180499EB0", Slot = "15")]
|
|
public virtual void Remove(IComponent component)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600064E RID: 1614 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x600064E")]
|
|
[Address(RVA = "0x499EC0", Offset = "0x498CC0", VA = "0x180499EC0")]
|
|
private void Remove(IComponent component, bool preserveSite)
|
|
{
|
|
}
|
|
|
|
/// <summary>Removes a component from the <see cref="T:System.ComponentModel.Container" /> without setting <see cref="P:System.ComponentModel.IComponent.Site" /> to <see langword="null" />.</summary>
|
|
/// <param name="component">The component to remove.</param>
|
|
// Token: 0x0600064F RID: 1615 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x600064F")]
|
|
[Address(RVA = "0x499EA0", Offset = "0x498CA0", VA = "0x180499EA0")]
|
|
protected void RemoveWithoutUnsiting(IComponent component)
|
|
{
|
|
}
|
|
|
|
/// <summary>Determines whether the component name is unique for this container.</summary>
|
|
/// <param name="component">The named component.</param>
|
|
/// <param name="name">The component name to validate.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="component" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="name" /> is not unique.</exception>
|
|
// Token: 0x06000650 RID: 1616 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000650")]
|
|
[Address(RVA = "0x49A090", Offset = "0x498E90", VA = "0x18049A090", Slot = "16")]
|
|
protected virtual void ValidateName(IComponent component, string name)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.Container" /> class.</summary>
|
|
// Token: 0x06000651 RID: 1617 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000651")]
|
|
[Address(RVA = "0x49A370", Offset = "0x499170", VA = "0x18049A370")]
|
|
public Container()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000490 RID: 1168
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000490")]
|
|
private ISite[] sites;
|
|
|
|
// Token: 0x04000491 RID: 1169
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4000491")]
|
|
private int siteCount;
|
|
|
|
// Token: 0x04000492 RID: 1170
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4000492")]
|
|
private ComponentCollection components;
|
|
|
|
// Token: 0x04000493 RID: 1171
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4000493")]
|
|
private ContainerFilterService filter;
|
|
|
|
// Token: 0x04000494 RID: 1172
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4000494")]
|
|
private bool checkedFilter;
|
|
|
|
// Token: 0x04000495 RID: 1173
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4000495")]
|
|
private object syncObj;
|
|
|
|
// Token: 0x02000102 RID: 258
|
|
[Token(Token = "0x2000102")]
|
|
private class Site : ISite, IServiceProvider
|
|
{
|
|
// Token: 0x06000652 RID: 1618 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000652")]
|
|
[Address(RVA = "0x4A7B10", Offset = "0x4A6910", VA = "0x1804A7B10")]
|
|
internal Site(IComponent component, Container container, string name)
|
|
{
|
|
}
|
|
|
|
// Token: 0x1700011E RID: 286
|
|
// (get) Token: 0x06000653 RID: 1619 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x1700011E")]
|
|
public IComponent Component
|
|
{
|
|
[Token(Token = "0x6000653")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "4")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700011F RID: 287
|
|
// (get) Token: 0x06000654 RID: 1620 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x1700011F")]
|
|
public IContainer Container
|
|
{
|
|
[Token(Token = "0x6000654")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "5")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000655 RID: 1621 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000655")]
|
|
[Address(RVA = "0x4A7A50", Offset = "0x4A6850", VA = "0x1804A7A50", Slot = "9")]
|
|
public object GetService(Type service)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x17000120 RID: 288
|
|
// (get) Token: 0x06000656 RID: 1622 RVA: 0x00004728 File Offset: 0x00002928
|
|
[Token(Token = "0x17000120")]
|
|
public bool DesignMode
|
|
{
|
|
[Token(Token = "0x6000656")]
|
|
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "6")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000121 RID: 289
|
|
// (get) Token: 0x06000657 RID: 1623 RVA: 0x00002050 File Offset: 0x00000250
|
|
// (set) Token: 0x06000658 RID: 1624 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x17000121")]
|
|
public string Name
|
|
{
|
|
[Token(Token = "0x6000657")]
|
|
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "7")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
[Token(Token = "0x6000658")]
|
|
[Address(RVA = "0x4A7B60", Offset = "0x4A6960", VA = "0x1804A7B60", Slot = "8")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000496 RID: 1174
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000496")]
|
|
private IComponent component;
|
|
|
|
// Token: 0x04000497 RID: 1175
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4000497")]
|
|
private Container container;
|
|
|
|
// Token: 0x04000498 RID: 1176
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4000498")]
|
|
private string name;
|
|
}
|
|
}
|
|
}
|