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