New test.
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / _FieldInfo.cs
1 //
2 // System.Runtime.InteropServices._FieldInfo 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 ("8A7C1442-A9FB-366B-80D8-4939FFA6DBE0")]
19         [TypeLibImportClass (typeof (FieldInfo))]
20         public interface _FieldInfo
21         {
22                 bool Equals (object obj);
23
24                 object[] GetCustomAttributes (bool inherit);
25
26                 object[] GetCustomAttributes (Type attributeType, bool inherit);
27
28                 int GetHashCode ();
29
30                 Type GetType ();
31
32                 void GetIDsOfNames ([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
33
34                 void GetTypeInfo (uint iTInfo, uint lcid, IntPtr ppTInfo);
35
36                 void GetTypeInfoCount (out uint pcTInfo);
37
38                 void Invoke (uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams,
39                         IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
40
41                 object GetValue (object obj);
42
43                 [CLSCompliant (false)]
44                 object GetValueDirect (TypedReference obj);
45
46                 bool IsDefined (Type attributeType, bool inherit);
47
48                 void SetValue (object obj, object value);
49
50                 void SetValue (object obj, object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture);
51
52                 [CLSCompliant (false)]
53                 void SetValueDirect (TypedReference obj, object value);
54
55                 string ToString ();
56
57                 FieldAttributes Attributes {get;}
58
59                 Type DeclaringType {get;}
60
61                 RuntimeFieldHandle FieldHandle {get;}
62
63                 Type FieldType {get;}
64
65                 bool IsAssembly {get;}
66
67                 bool IsFamily {get;}
68
69                 bool IsFamilyAndAssembly {get;}
70
71                 bool IsFamilyOrAssembly {get;}
72
73                 bool IsInitOnly {get;}
74
75                 bool IsLiteral {get;}
76
77                 bool IsNotSerialized {get;}
78
79                 bool IsPinvokeImpl {get;}
80
81                 bool IsPrivate {get;}
82
83                 bool IsPublic {get;}
84
85                 bool IsSpecialName {get;}
86
87                 bool IsStatic {get;}
88
89                 MemberTypes MemberType {get;}
90
91                 string Name {get;}
92
93                 Type ReflectedType {get;}
94         }
95 }
96 #endif