summaryrefslogtreecommitdiff
path: root/src/mscorlib/src/System/Runtime/InteropServices/Expando/IExpando.cs
blob: 62b65d1aff02cd578641327215e4f11fc1941aa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//
// IExpando is an interface which allows Objects implemeningt this interface 
//    support the ability to modify the object by adding and removing members, 
//    represented by MemberInfo objects.
//
//
// The IExpando Interface.
namespace System.Runtime.InteropServices.Expando {
    
    using System;
    using System.Reflection;

    [Guid("AFBF15E6-C37C-11d2-B88E-00A0C9B471B8")]
[System.Runtime.InteropServices.ComVisible(true)]
    public interface IExpando : IReflect
    {
        // Add a new Field to the reflection object.  The field has
        // name as its name.
        FieldInfo AddField(String name);

        // Add a new Property to the reflection object.  The property has
        // name as its name.
        PropertyInfo AddProperty(String name);

        // Add a new Method to the reflection object.  The method has 
        // name as its name and method is a delegate
        // to the method.  
        MethodInfo AddMethod(String name, Delegate method);

        // Removes the specified member.
        void RemoveMember(MemberInfo m);
    }
}