41 lines
2.0 KiB
C#
41 lines
2.0 KiB
C#
using System;
|
|
using System.Reflection;
|
|
|
|
namespace System.Runtime.InteropServices.Expando
|
|
{
|
|
/// <summary>Enables modification of objects by adding and removing members, represented by <see cref="T:System.Reflection.MemberInfo" /> objects.</summary>
|
|
// Token: 0x020002EB RID: 747
|
|
[Guid("afbf15e6-c37c-11d2-b88e-00a0c9b471b8")]
|
|
[ComVisible(true)]
|
|
public interface IExpando : IReflect
|
|
{
|
|
/// <summary>Adds the named field to the Reflection object.</summary>
|
|
/// <returns>A <see cref="T:System.Reflection.FieldInfo" /> object representing the added field.</returns>
|
|
/// <param name="name">The name of the field. </param>
|
|
/// <exception cref="T:System.NotSupportedException">The IExpando object does not support this method. </exception>
|
|
// Token: 0x060021AF RID: 8623
|
|
FieldInfo AddField(string name);
|
|
|
|
/// <summary>Adds the named method to the Reflection object.</summary>
|
|
/// <returns>A MethodInfo object representing the added method.</returns>
|
|
/// <param name="name">The name of the method. </param>
|
|
/// <param name="method">The delegate to the method. </param>
|
|
/// <exception cref="T:System.NotSupportedException">The IExpando object does not support this method. </exception>
|
|
// Token: 0x060021B0 RID: 8624
|
|
MethodInfo AddMethod(string name, Delegate method);
|
|
|
|
/// <summary>Adds the named property to the Reflection object.</summary>
|
|
/// <returns>A PropertyInfo object representing the added property.</returns>
|
|
/// <param name="name">The name of the property. </param>
|
|
/// <exception cref="T:System.NotSupportedException">The IExpando object does not support this method. </exception>
|
|
// Token: 0x060021B1 RID: 8625
|
|
PropertyInfo AddProperty(string name);
|
|
|
|
/// <summary>Removes the specified member.</summary>
|
|
/// <param name="m">The member to remove. </param>
|
|
/// <exception cref="T:System.NotSupportedException">The IExpando object does not support this method. </exception>
|
|
// Token: 0x060021B2 RID: 8626
|
|
void RemoveMember(MemberInfo m);
|
|
}
|
|
}
|