summaryrefslogtreecommitdiff
path: root/src/mscorlib/src/System/Reflection/ComInterfaces.cs
blob: 63438115fc9d3f7dc09c263611a1c5338df1df1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using System.Globalization;
using System.IO;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using System.Security.Permissions;
using System.Security.Policy;

namespace System.Runtime.InteropServices
{
    [GuidAttribute("BCA8B44D-AAD6-3A86-8AB7-03349F4F2DA2")]
    [CLSCompliant(false)]
    [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
    [TypeLibImportClassAttribute(typeof(System.Type))]
[System.Runtime.InteropServices.ComVisible(true)]
    public interface _Type
    {
#if !FEATURE_CORECLR
        #region IDispatch Members
        void GetTypeInfoCount(out uint pcTInfo);
        void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo);
        void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
        void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
        #endregion

        #region Object Members
        String ToString();
        bool Equals(Object other);
        int GetHashCode();
        Type GetType();
        #endregion

        #region MemberInfo Members
        MemberTypes MemberType { get; }
        String Name { get; }
        Type DeclaringType { get; }
        Type ReflectedType { get; }
        Object[] GetCustomAttributes(Type attributeType, bool inherit);
        Object[] GetCustomAttributes(bool inherit);
        bool IsDefined(Type attributeType, bool inherit);
        #endregion

        #region Type Members
        Guid GUID { get; }           
        Module Module { get; }            
        Assembly Assembly { get; }            
        RuntimeTypeHandle TypeHandle { get; }            
        String FullName { get; }            
        String Namespace { get; }            
        String AssemblyQualifiedName { get; }            
        int GetArrayRank();        
        Type BaseType { get; }
            
        ConstructorInfo[] GetConstructors(BindingFlags bindingAttr);
        Type GetInterface(String name, bool ignoreCase);
        Type[] GetInterfaces();        
        Type[] FindInterfaces(TypeFilter filter,Object filterCriteria);        
        EventInfo GetEvent(String name,BindingFlags bindingAttr);        
        EventInfo[] GetEvents();
        EventInfo[] GetEvents(BindingFlags bindingAttr);
        Type[] GetNestedTypes(BindingFlags bindingAttr);
        Type GetNestedType(String name, BindingFlags bindingAttr);
        MemberInfo[] GetMember(String name, MemberTypes type, BindingFlags bindingAttr);        
        MemberInfo[] GetDefaultMembers();               
        MemberInfo[] FindMembers(MemberTypes memberType,BindingFlags bindingAttr,MemberFilter filter,Object filterCriteria);    
        Type GetElementType();
        bool IsSubclassOf(Type c);        
        bool IsInstanceOfType(Object o);
        bool IsAssignableFrom(Type c);
        InterfaceMapping GetInterfaceMap(Type interfaceType);
        MethodInfo GetMethod(String name, BindingFlags bindingAttr, Binder binder, Type[] types, ParameterModifier[] modifiers);
        MethodInfo GetMethod(String name, BindingFlags bindingAttr);            
        MethodInfo[] GetMethods(BindingFlags bindingAttr);    
        FieldInfo GetField(String name, BindingFlags bindingAttr);    
        FieldInfo[] GetFields(BindingFlags bindingAttr);        
        PropertyInfo GetProperty(String name, BindingFlags bindingAttr);                
        PropertyInfo GetProperty(String name,BindingFlags bindingAttr,Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers);                
        PropertyInfo[] GetProperties(BindingFlags bindingAttr);
        MemberInfo[] GetMember(String name, BindingFlags bindingAttr);
        MemberInfo[] GetMembers(BindingFlags bindingAttr);        
        Object InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters);
        Type UnderlyingSystemType
        {
            get;
        }       
    
        Object InvokeMember(String name,BindingFlags invokeAttr,Binder binder, Object target, Object[] args, CultureInfo culture);   
        Object InvokeMember(String name,BindingFlags invokeAttr,Binder binder, Object target, Object[] args);   
        ConstructorInfo GetConstructor(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention,  Type[] types, ParameterModifier[] modifiers);   
        ConstructorInfo GetConstructor(BindingFlags bindingAttr, Binder binder, Type[] types, ParameterModifier[] modifiers);            
        ConstructorInfo GetConstructor(Type[] types);
        ConstructorInfo[] GetConstructors();
        ConstructorInfo TypeInitializer
        {
            get;
        }
            
        MethodInfo GetMethod(String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers);        
        MethodInfo GetMethod(String name, Type[] types, ParameterModifier[] modifiers);
        MethodInfo GetMethod(String name, Type[] types);
        MethodInfo GetMethod(String name);                
        MethodInfo[] GetMethods();
        FieldInfo GetField(String name);   
        FieldInfo[] GetFields();
        Type GetInterface(String name);
        EventInfo GetEvent(String name);           
        PropertyInfo GetProperty(String name, Type returnType, Type[] types,ParameterModifier[] modifiers);                
        PropertyInfo GetProperty(String name, Type returnType, Type[] types);                
        PropertyInfo GetProperty(String name, Type[] types);               
        PropertyInfo GetProperty(String name, Type returnType);
        PropertyInfo GetProperty(String name);            
        PropertyInfo[] GetProperties();
        Type[] GetNestedTypes();
        Type GetNestedType(String name);
        MemberInfo[] GetMember(String name);
        MemberInfo[] GetMembers();
        TypeAttributes Attributes { get; }            
        bool IsNotPublic { get; }            
        bool IsPublic { get; }            
        bool IsNestedPublic { get; }            
        bool IsNestedPrivate { get; }            
        bool IsNestedFamily { get; }            
        bool IsNestedAssembly { get; }            
        bool IsNestedFamANDAssem { get; }            
        bool IsNestedFamORAssem { get; }            
        bool IsAutoLayout { get; }            
        bool IsLayoutSequential { get; }            
        bool IsExplicitLayout { get; }            
        bool IsClass { get; }            
        bool IsInterface { get; }            
        bool IsValueType { get; }            
        bool IsAbstract { get; }            
        bool IsSealed { get; }            
        bool IsEnum { get; }            
        bool IsSpecialName { get; }            
        bool IsImport { get; }            
        bool IsSerializable { get; }            
        bool IsAnsiClass { get; }            
        bool IsUnicodeClass { get; }            
        bool IsAutoClass { get; }            
        bool IsArray { get; }            
        bool IsByRef { get; }            
        bool IsPointer { get; }            
        bool IsPrimitive { get; }            
        bool IsCOMObject { get; }            
        bool HasElementType { get; }            
        bool IsContextful { get; }          
        bool IsMarshalByRef { get; }            
        bool Equals(Type o);
        #endregion
#endif
    }

    [GuidAttribute("17156360-2f1a-384a-bc52-fde93c215c5b")]
    [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsDual)]
    [TypeLibImportClassAttribute(typeof(System.Reflection.Assembly))]
    [CLSCompliant(false)]
[System.Runtime.InteropServices.ComVisible(true)]
    public interface _Assembly
    {
#if !FEATURE_CORECLR
        #region Object Members
        String ToString();
        bool Equals(Object other);
        int GetHashCode();
        Type GetType();
        #endregion

        #region Assembly Members
        String CodeBase { 
#if FEATURE_CORECLR
[System.Security.SecurityCritical] // auto-generated
#endif
get; }
        String EscapedCodeBase { get; }
        #if FEATURE_CORECLR
        [System.Security.SecurityCritical] // auto-generated
        #endif
        AssemblyName GetName();
        #if FEATURE_CORECLR
        [System.Security.SecurityCritical] // auto-generated
        #endif
        AssemblyName GetName(bool copiedName);
        String FullName { get; }
        MethodInfo EntryPoint { get; }
        Type GetType(String name);
        Type GetType(String name, bool throwOnError);
        Type[] GetExportedTypes();
        Type[] GetTypes();
        Stream GetManifestResourceStream(Type type, String name);
        Stream GetManifestResourceStream(String name);
        #if FEATURE_CORECLR
        [System.Security.SecurityCritical] // auto-generated
        #endif
        FileStream GetFile(String name);
        FileStream[] GetFiles();
        #if FEATURE_CORECLR
        [System.Security.SecurityCritical] // auto-generated
        #endif
        FileStream[] GetFiles(bool getResourceModules);
        String[] GetManifestResourceNames();
        ManifestResourceInfo GetManifestResourceInfo(String resourceName);
        String Location { 
#if FEATURE_CORECLR
[System.Security.SecurityCritical] // auto-generated
#endif
get; }
#if FEATURE_CAS_POLICY
        Evidence Evidence { get; }
#endif // FEATURE_CAS_POLICY
        Object[] GetCustomAttributes(Type attributeType, bool inherit);
        Object[] GetCustomAttributes(bool inherit);
        bool IsDefined(Type attributeType, bool inherit);
#if FEATURE_SERIALIZATION
        [System.Security.SecurityCritical]  // auto-generated_required
        void GetObjectData(SerializationInfo info, StreamingContext context);
#endif
        [method: System.Security.SecurityCritical]
        event ModuleResolveEventHandler ModuleResolve;
        Type GetType(String name, bool throwOnError, bool ignoreCase);     
        Assembly GetSatelliteAssembly(CultureInfo culture);
        Assembly GetSatelliteAssembly(CultureInfo culture, Version version);
#if FEATURE_MULTIMODULE_ASSEMBLIES        
        Module LoadModule(String moduleName, byte[] rawModule);
        Module LoadModule(String moduleName, byte[] rawModule, byte[] rawSymbolStore);
#endif        
        Object CreateInstance(String typeName);
        Object CreateInstance(String typeName, bool ignoreCase);
        Object CreateInstance(String typeName, bool ignoreCase, BindingFlags bindingAttr,  Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes);
        Module[] GetLoadedModules();
        Module[] GetLoadedModules(bool getResourceModules);
        Module[] GetModules();
        Module[] GetModules(bool getResourceModules);
        Module GetModule(String name);
        AssemblyName[] GetReferencedAssemblies();
        bool GlobalAssemblyCache { get; }
        #endregion
#endif
    }


    [GuidAttribute("f7102fa9-cabb-3a74-a6da-b4567ef1b079")]
    [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
    [TypeLibImportClassAttribute(typeof(System.Reflection.MemberInfo))]
    [CLSCompliant(false)]
    [System.Runtime.InteropServices.ComVisible(true)]
    public interface _MemberInfo
    {
#if !FEATURE_CORECLR
        #region IDispatch Members
        void GetTypeInfoCount(out uint pcTInfo);
        void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo);
        void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
        void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
        #endregion

        #region Object Members
        String ToString();
        bool Equals(Object other);
        int GetHashCode();
        Type GetType();
        #endregion

        #region MemberInfo Members
        MemberTypes MemberType { get; }
        String Name { get; }
        Type DeclaringType { get; }
        Type ReflectedType { get; }
        Object[] GetCustomAttributes(Type attributeType, bool inherit);
        Object[] GetCustomAttributes(bool inherit);
        bool IsDefined(Type attributeType, bool inherit);
        #endregion
#endif
    }


    [GuidAttribute("6240837A-707F-3181-8E98-A36AE086766B")]
    [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
    [CLSCompliant(false)]
    [TypeLibImportClassAttribute(typeof(System.Reflection.MethodBase))]
    [System.Runtime.InteropServices.ComVisible(true)]
    public interface _MethodBase
    {
#if !FEATURE_CORECLR
        #region IDispatch Members
        void GetTypeInfoCount(out uint pcTInfo);
        void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo);
        void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
        void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
        #endregion

        #region Object Members
        String ToString();
        bool Equals(Object other);
        int GetHashCode();
        Type GetType();
        #endregion

        #region MemberInfo Members
        MemberTypes MemberType { get; }
        String Name { get; }
        Type DeclaringType { get; }
        Type ReflectedType { get; }
        Object[] GetCustomAttributes(Type attributeType, bool inherit);
        Object[] GetCustomAttributes(bool inherit);
        bool IsDefined(Type attributeType, bool inherit);
        #endregion

        #region MethodBase Members
        ParameterInfo[] GetParameters();
        MethodImplAttributes GetMethodImplementationFlags();
        RuntimeMethodHandle MethodHandle { get; }
        MethodAttributes Attributes { get; }
        CallingConventions CallingConvention { get; }
        Object Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture);
        bool IsPublic { get; }
        bool IsPrivate { get; }
        bool IsFamily { get; }
        bool IsAssembly { get; }
        bool IsFamilyAndAssembly { get; }
        bool IsFamilyOrAssembly { get; }
        bool IsStatic { get; }
        bool IsFinal { get; }
        bool IsVirtual { get; }
        bool IsHideBySig { get; }
        bool IsAbstract { get; }
        bool IsSpecialName { get; }      
        bool IsConstructor { get; }      
        Object Invoke(Object obj, Object[] parameters);        
        #endregion
#endif
    }


    [GuidAttribute("FFCC1B5D-ECB8-38DD-9B01-3DC8ABC2AA5F")]
    [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
    [CLSCompliant(false)]
    [TypeLibImportClassAttribute(typeof(System.Reflection.MethodInfo))]
    [System.Runtime.InteropServices.ComVisible(true)]
    public interface _MethodInfo
    {
#if !FEATURE_CORECLR
        #region IDispatch Members
        void GetTypeInfoCount(out uint pcTInfo);
        void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo);
        void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
        void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
        #endregion

        #region Object Members
        String ToString();
        bool Equals(Object other);
        int GetHashCode();
        Type GetType();
        #endregion

        #region MemberInfo Members
        MemberTypes MemberType { get; }
        String Name { get; }
        Type DeclaringType { get; }
        Type ReflectedType { get; }
        Object[] GetCustomAttributes(Type attributeType, bool inherit);
        Object[] GetCustomAttributes(bool inherit);
        bool IsDefined(Type attributeType, bool inherit);
        #endregion

        #region MethodBase Members
        ParameterInfo[] GetParameters();
        MethodImplAttributes GetMethodImplementationFlags();
        RuntimeMethodHandle MethodHandle { get; }
        MethodAttributes Attributes { get; }
        CallingConventions CallingConvention { get; }
        Object Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture);
        bool IsPublic { get; }
        bool IsPrivate { get; }
        bool IsFamily { get; }
        bool IsAssembly { get; }
        bool IsFamilyAndAssembly { get; }
        bool IsFamilyOrAssembly { get; }
        bool IsStatic { get; }
        bool IsFinal { get; }
        bool IsVirtual { get; }
        bool IsHideBySig { get; }
        bool IsAbstract { get; }
        bool IsSpecialName { get; }      
        bool IsConstructor { get; }      
        Object Invoke(Object obj, Object[] parameters);        
        #endregion

        #region MethodInfo Members
        Type ReturnType { get; }
        ICustomAttributeProvider ReturnTypeCustomAttributes { get; }
        MethodInfo GetBaseDefinition();
        #endregion
#endif
    }
        

    [GuidAttribute("E9A19478-9646-3679-9B10-8411AE1FD57D")]
    [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
    [CLSCompliant(false)]
    [TypeLibImportClassAttribute(typeof(System.Reflection.ConstructorInfo))]
    [System.Runtime.InteropServices.ComVisible(true)]
    public interface _ConstructorInfo
    {
#if !FEATURE_CORECLR
        #region IDispatch Members
        void GetTypeInfoCount(out uint pcTInfo);
        void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo);
        void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
        void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
        #endregion

        #region Object Members
        String ToString();
        bool Equals(Object other);
        int GetHashCode();
        Type GetType();
        #endregion

        #region MemberInfo Members
        MemberTypes MemberType { get; }
        String Name { get; }
        Type DeclaringType { get; }
        Type ReflectedType { get; }
        Object[] GetCustomAttributes(Type attributeType, bool inherit);
        Object[] GetCustomAttributes(bool inherit);
        bool IsDefined(Type attributeType, bool inherit);
        #endregion

        #region MethodBase Members
        ParameterInfo[] GetParameters();
        MethodImplAttributes GetMethodImplementationFlags();
        RuntimeMethodHandle MethodHandle { get; }
        MethodAttributes Attributes { get; }
        CallingConventions CallingConvention { get; }
        Object Invoke_2(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture);
        bool IsPublic { get; }
        bool IsPrivate { get; }
        bool IsFamily { get; }
        bool IsAssembly { get; }
        bool IsFamilyAndAssembly { get; }
        bool IsFamilyOrAssembly { get; }
        bool IsStatic { get; }
        bool IsFinal { get; }
        bool IsVirtual { get; }
        bool IsHideBySig { get; }
        bool IsAbstract { get; }
        bool IsSpecialName { get; }      
        bool IsConstructor { get; }      
        Object Invoke_3(Object obj, Object[] parameters);        
        #endregion

        #region ConstructorInfo
        Object Invoke_4(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture);
        Object Invoke_5(Object[] parameters);
        #endregion
#endif
    }


    [GuidAttribute("8A7C1442-A9FB-366B-80D8-4939FFA6DBE0")]
    [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
    [CLSCompliant(false)]
    [TypeLibImportClassAttribute(typeof(System.Reflection.FieldInfo))]
    [System.Runtime.InteropServices.ComVisible(true)]
    public interface _FieldInfo
    {        
#if !FEATURE_CORECLR
        #region IDispatch Members
        void GetTypeInfoCount(out uint pcTInfo);
        void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo);
        void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
        void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
        #endregion

        #region Object Members
        String ToString();
        bool Equals(Object other);
        int GetHashCode();
        Type GetType();
        #endregion

        #region MemberInfo Members
        MemberTypes MemberType { get; }
        String Name { get; }
        Type DeclaringType { get; }
        Type ReflectedType { get; }
        Object[] GetCustomAttributes(Type attributeType, bool inherit);
        Object[] GetCustomAttributes(bool inherit);
        bool IsDefined(Type attributeType, bool inherit);
        #endregion

        #region FieldInfo Members
        Type FieldType { get; }
        Object GetValue(Object obj);        
        Object GetValueDirect(TypedReference obj);                
        void SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture);        
        void SetValueDirect(TypedReference obj,Object value);        
        RuntimeFieldHandle FieldHandle { get; }        
        FieldAttributes Attributes { get; }           
        void SetValue(Object obj, Object value);
        bool IsPublic { get; }
        bool IsPrivate { get; }
        bool IsFamily { get; }
        bool IsAssembly { get; }
        bool IsFamilyAndAssembly { get; }
        bool IsFamilyOrAssembly { get; }
        bool IsStatic { get; }
        bool IsInitOnly { get; }
        bool IsLiteral { get; }
        bool IsNotSerialized { get; }
        bool IsSpecialName { get; }
        bool IsPinvokeImpl { get; }
        #endregion
#endif
    }

    
    [GuidAttribute("F59ED4E4-E68F-3218-BD77-061AA82824BF")]
    [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
    [CLSCompliant(false)]
    [TypeLibImportClassAttribute(typeof(System.Reflection.PropertyInfo))]
[System.Runtime.InteropServices.ComVisible(true)]
    public interface _PropertyInfo
    {
#if !FEATURE_CORECLR
        #region IDispatch Members
        void GetTypeInfoCount(out uint pcTInfo);
        void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo);
        void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
        void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
        #endregion

        #region Object Members
        String ToString();
        bool Equals(Object other);
        int GetHashCode();
        Type GetType();
        #endregion

        #region MemberInfo Members
        MemberTypes MemberType { get; }
        String Name { get; }
        Type DeclaringType { get; }
        Type ReflectedType { get; }
        Object[] GetCustomAttributes(Type attributeType, bool inherit);
        Object[] GetCustomAttributes(bool inherit);
        bool IsDefined(Type attributeType, bool inherit);
        #endregion

        #region Property Members
        Type PropertyType { get; }
        Object GetValue(Object obj,Object[] index);
        Object GetValue(Object obj,BindingFlags invokeAttr,Binder binder, Object[] index, CultureInfo culture);
        void SetValue(Object obj, Object value, Object[] index);
        void SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture);
        MethodInfo[] GetAccessors(bool nonPublic);
        MethodInfo GetGetMethod(bool nonPublic);
        MethodInfo GetSetMethod(bool nonPublic);
        ParameterInfo[] GetIndexParameters();
        PropertyAttributes Attributes { get; }
        bool CanRead { get; }
        bool CanWrite { get; }
        MethodInfo[] GetAccessors();
        MethodInfo GetGetMethod();
        MethodInfo GetSetMethod();
        bool IsSpecialName { get; }
        #endregion
#endif
    }


    [GuidAttribute("9DE59C64-D889-35A1-B897-587D74469E5B")]
    [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
    [CLSCompliant(false)]
    [TypeLibImportClassAttribute(typeof(System.Reflection.EventInfo))]
    [System.Runtime.InteropServices.ComVisible(true)]
    public interface _EventInfo
    {
#if !FEATURE_CORECLR
        #region IDispatch Members
        void GetTypeInfoCount(out uint pcTInfo);
        void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo);
        void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
        void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
        #endregion

        #region Object Members
        String ToString();
        bool Equals(Object other);
        int GetHashCode();
        Type GetType();
        #endregion

        #region MemberInfo Members
        MemberTypes MemberType { get; }
        String Name { get; }
        Type DeclaringType { get; }
        Type ReflectedType { get; }
        Object[] GetCustomAttributes(Type attributeType, bool inherit);
        Object[] GetCustomAttributes(bool inherit);
        bool IsDefined(Type attributeType, bool inherit);
        #endregion

        #region EventInfo Members
        MethodInfo GetAddMethod(bool nonPublic);
        MethodInfo GetRemoveMethod(bool nonPublic);
        MethodInfo GetRaiseMethod(bool nonPublic);
        EventAttributes Attributes { get; }        
        MethodInfo GetAddMethod();
        MethodInfo GetRemoveMethod();
        MethodInfo GetRaiseMethod();
        void AddEventHandler(Object target, Delegate handler);        
        void RemoveEventHandler(Object target, Delegate handler);        
        Type EventHandlerType { get; }        
        bool IsSpecialName { get; }        
        bool IsMulticast { get; }
        #endregion
#endif
    }

    [GuidAttribute("993634C4-E47A-32CC-BE08-85F567DC27D6")]
    [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
    [CLSCompliant(false)]
    [TypeLibImportClassAttribute(typeof(System.Reflection.ParameterInfo))]
[System.Runtime.InteropServices.ComVisible(true)]
    public interface _ParameterInfo
    {
#if !FEATURE_CORECLR
        void GetTypeInfoCount(out uint pcTInfo);
        void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo);
        void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
        void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
#endif
    }

    [GuidAttribute("D002E9BA-D9E3-3749-B1D3-D565A08B13E7")]
    [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
    [CLSCompliant(false)]
    [TypeLibImportClassAttribute(typeof(System.Reflection.Module))]
[System.Runtime.InteropServices.ComVisible(true)]
    public interface _Module
    {
#if !FEATURE_CORECLR
        void GetTypeInfoCount(out uint pcTInfo);
        void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo);
        void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
        void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
#endif
    }

    [GuidAttribute("B42B6AAC-317E-34D5-9FA9-093BB4160C50")]
    [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
    [CLSCompliant(false)]
    [TypeLibImportClassAttribute(typeof(System.Reflection.AssemblyName))]
[System.Runtime.InteropServices.ComVisible(true)]
    public interface _AssemblyName
    {
#if !FEATURE_CORECLR
        void GetTypeInfoCount(out uint pcTInfo);
        void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo);
        void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
        void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
#endif
    }
}