2 // System.Runtime.InteropServices._FieldInfo interface
5 // Kazuki Oikawa (kazuki@panicode.com)
11 using System.Globalization;
12 using System.Reflection;
14 namespace System.Runtime.InteropServices
16 [CLSCompliant (false)]
17 [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
18 [Guid ("8A7C1442-A9FB-366B-80D8-4939FFA6DBE0")]
19 [TypeLibImportClass (typeof (FieldInfo))]
23 public interface _FieldInfo
25 bool Equals (object other);
27 object[] GetCustomAttributes (bool inherit);
29 object[] GetCustomAttributes (Type attributeType, bool inherit);
35 void GetIDsOfNames ([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
37 void GetTypeInfo (uint iTInfo, uint lcid, IntPtr ppTInfo);
39 void GetTypeInfoCount (out uint pcTInfo);
41 void Invoke (uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams,
42 IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
44 object GetValue (object obj);
47 [CLSCompliant (false)]
49 object GetValueDirect (TypedReference obj);
51 bool IsDefined (Type attributeType, bool inherit);
53 void SetValue (object obj, object value);
55 void SetValue (object obj, object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture);
58 [CLSCompliant (false)]
60 void SetValueDirect (TypedReference obj, object value);
64 FieldAttributes Attributes {get;}
66 Type DeclaringType {get;}
68 RuntimeFieldHandle FieldHandle {get;}
72 bool IsAssembly {get;}
76 bool IsFamilyAndAssembly {get;}
78 bool IsFamilyOrAssembly {get;}
80 bool IsInitOnly {get;}
84 bool IsNotSerialized {get;}
86 bool IsPinvokeImpl {get;}
92 bool IsSpecialName {get;}
96 MemberTypes MemberType {get;}
100 Type ReflectedType {get;}