2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / _MethodBase.cs
1 //
2 // System.Runtime.InteropServices._MethodBase interface
3 //
4 // Author:
5 //   Kazuki Oikawa  (kazuki@panicode.com)
6 //
7
8 #if NET_1_1
9
10 using System;
11 using System.Globalization;
12 using System.Reflection;
13
14 namespace System.Runtime.InteropServices
15 {
16         [CLSCompliant (false)]
17         [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
18         [Guid ("6240837A-707F-3181-8E98-A36AE086766B")]
19         [TypeLibImportClass (typeof (MethodBase))]
20 #if NET_2_0
21         [ComVisible (true)]
22 #endif
23         public interface _MethodBase
24         {
25                 bool Equals (object other);
26                 
27                 object[] GetCustomAttributes (bool inherit);
28                 
29                 object[] GetCustomAttributes (Type attributeType, bool inherit);
30                 
31                 int GetHashCode ();
32
33                 MethodImplAttributes GetMethodImplementationFlags ();
34                 
35                 ParameterInfo[] GetParameters ();
36
37                 void GetIDsOfNames ([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
38
39                 void GetTypeInfo (uint iTInfo, uint lcid, IntPtr ppTInfo);
40
41                 void GetTypeInfoCount (out uint pcTInfo);
42
43                 void Invoke (uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams,
44                         IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
45                 
46                 Type GetType ();
47
48                 object Invoke (object obj, object[] parameters);
49                 
50                 object Invoke (object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture);
51                 
52                 bool IsDefined(Type attributeType, bool inherit);
53                 
54                 string ToString ();
55
56                 MethodAttributes Attributes {get;}
57
58                 CallingConventions CallingConvention {get;}
59
60                 Type DeclaringType {get;}
61
62                 bool IsAbstract {get;}
63
64                 bool IsAssembly {get;}
65
66                 bool IsConstructor {get;}
67
68                 bool IsFamily {get;}
69
70                 bool IsFamilyAndAssembly {get;}
71
72                 bool IsFamilyOrAssembly {get;}
73
74                 bool IsFinal {get;}
75
76                 bool IsHideBySig {get;}
77
78                 bool IsPrivate {get;}
79
80                 bool IsPublic {get;}
81
82                 bool IsSpecialName {get;}
83
84                 bool IsStatic {get;}
85
86                 bool IsVirtual {get;}
87
88                 MemberTypes MemberType {get;}
89
90                 RuntimeMethodHandle MethodHandle {get;}
91
92                 string Name {get;}
93
94                 Type ReflectedType {get;}
95         }
96 }
97 #endif