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))]
20 public interface _FieldInfo
22 bool Equals (object obj);
24 object[] GetCustomAttributes (bool inherit);
26 object[] GetCustomAttributes (Type attributeType, bool inherit);
32 void GetIDsOfNames ([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
34 void GetTypeInfo (uint iTInfo, uint lcid, IntPtr ppTInfo);
36 void GetTypeInfoCount (out uint pcTInfo);
38 void Invoke (uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams,
39 IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
41 object GetValue (object obj);
43 [CLSCompliant (false)]
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 [CLSCompliant (false)]
53 void SetValueDirect (TypedReference obj, object value);
57 FieldAttributes Attributes {get;}
59 Type DeclaringType {get;}
61 RuntimeFieldHandle FieldHandle {get;}
65 bool IsAssembly {get;}
69 bool IsFamilyAndAssembly {get;}
71 bool IsFamilyOrAssembly {get;}
73 bool IsInitOnly {get;}
77 bool IsNotSerialized {get;}
79 bool IsPinvokeImpl {get;}
85 bool IsSpecialName {get;}
89 MemberTypes MemberType {get;}
93 Type ReflectedType {get;}