C # in a Nutshell, Second Edition

IExpando

System.Runtime.InteropServices.Expando (mscorlib.dll) interface

This interface indicates a type whose members can be removed or added. The members are represented as System.Reflection.MemberInfo objects.

public interface IExpando : System.Reflection.IReflect { // Public Instance Methods public FieldInfo AddField (string name ); public MethodInfo AddMethod (string name , Delegate method ); public PropertyInfo AddProperty (string name ); public void RemoveMember (System.Reflection.MemberInfo m ); }

Категории