forked from dotnet/corefx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSystem.Reflection.cs
More file actions
301 lines (299 loc) · 21.5 KB
/
Copy pathSystem.Reflection.cs
File metadata and controls
301 lines (299 loc) · 21.5 KB
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
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// ------------------------------------------------------------------------------
// Changes to this file must follow the http://aka.ms/api-review process.
// ------------------------------------------------------------------------------
namespace System.Reflection
{
public sealed partial class AmbiguousMatchException : System.Exception
{
public AmbiguousMatchException() { }
public AmbiguousMatchException(string message) { }
public AmbiguousMatchException(string message, System.Exception inner) { }
}
public abstract partial class Assembly
{
internal Assembly() { }
public virtual System.Collections.Generic.IEnumerable<System.Reflection.CustomAttributeData> CustomAttributes { get { return default(System.Collections.Generic.IEnumerable<System.Reflection.CustomAttributeData>); } }
public abstract System.Collections.Generic.IEnumerable<System.Reflection.TypeInfo> DefinedTypes { get; }
public virtual System.Collections.Generic.IEnumerable<System.Type> ExportedTypes { get { return default(System.Collections.Generic.IEnumerable<System.Type>); } }
public virtual string FullName { get { return default(string); } }
public virtual bool IsDynamic { get { return default(bool); } }
public virtual System.Reflection.Module ManifestModule { get { return default(System.Reflection.Module); } }
public abstract System.Collections.Generic.IEnumerable<System.Reflection.Module> Modules { get; }
public override bool Equals(object o) { return default(bool); }
public override int GetHashCode() { return default(int); }
public virtual System.Reflection.ManifestResourceInfo GetManifestResourceInfo(string resourceName) { return default(System.Reflection.ManifestResourceInfo); }
public virtual string[] GetManifestResourceNames() { return default(string[]); }
public virtual System.IO.Stream GetManifestResourceStream(string name) { return default(System.IO.Stream); }
public virtual System.Reflection.AssemblyName GetName() { return default(System.Reflection.AssemblyName); }
public virtual System.Type GetType(string name) { return default(System.Type); }
public virtual System.Type GetType(string name, bool throwOnError, bool ignoreCase) { return default(System.Type); }
public static System.Reflection.Assembly Load(System.Reflection.AssemblyName assemblyRef) { return default(System.Reflection.Assembly); }
public override string ToString() { return default(string); }
}
public enum AssemblyContentType
{
Default = 0,
WindowsRuntime = 1,
}
public sealed partial class AssemblyName
{
public AssemblyName() { }
public AssemblyName(string assemblyName) { }
public System.Reflection.AssemblyContentType ContentType { get { return default(System.Reflection.AssemblyContentType); } set { } }
public string CultureName { get { return default(string); } set { } }
public System.Reflection.AssemblyNameFlags Flags { get { return default(System.Reflection.AssemblyNameFlags); } set { } }
public string FullName { get { return default(string); } }
public string Name { get { return default(string); } set { } }
public System.Reflection.ProcessorArchitecture ProcessorArchitecture { get { return default(System.Reflection.ProcessorArchitecture); } set { } }
public System.Version Version { get { return default(System.Version); } set { } }
public byte[] GetPublicKey() { return default(byte[]); }
public byte[] GetPublicKeyToken() { return default(byte[]); }
public void SetPublicKey(byte[] publicKey) { }
public void SetPublicKeyToken(byte[] publicKeyToken) { }
public override string ToString() { return default(string); }
}
public abstract partial class ConstructorInfo : System.Reflection.MethodBase
{
public static readonly string ConstructorName;
public static readonly string TypeConstructorName;
internal ConstructorInfo() { }
public override bool Equals(object obj) { return default(bool); }
public override int GetHashCode() { return default(int); }
public virtual object Invoke(object[] parameters) { return default(object); }
}
public partial class CustomAttributeData
{
internal CustomAttributeData() { }
public virtual System.Type AttributeType { get { return default(System.Type); } }
public virtual System.Collections.Generic.IList<System.Reflection.CustomAttributeTypedArgument> ConstructorArguments { get { return default(System.Collections.Generic.IList<System.Reflection.CustomAttributeTypedArgument>); } }
public virtual System.Collections.Generic.IList<System.Reflection.CustomAttributeNamedArgument> NamedArguments { get { return default(System.Collections.Generic.IList<System.Reflection.CustomAttributeNamedArgument>); } }
}
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct CustomAttributeNamedArgument
{
public bool IsField { get { return default(bool); } }
public string MemberName { get { return default(string); } }
public System.Reflection.CustomAttributeTypedArgument TypedValue { get { return default(System.Reflection.CustomAttributeTypedArgument); } }
}
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct CustomAttributeTypedArgument
{
public System.Type ArgumentType { get { return default(System.Type); } }
public object Value { get { return default(object); } }
}
public abstract partial class EventInfo : System.Reflection.MemberInfo
{
internal EventInfo() { }
public virtual System.Reflection.MethodInfo AddMethod { get { return default(System.Reflection.MethodInfo); } }
public abstract System.Reflection.EventAttributes Attributes { get; }
public virtual System.Type EventHandlerType { get { return default(System.Type); } }
public bool IsSpecialName { get { return default(bool); } }
public virtual System.Reflection.MethodInfo RaiseMethod { get { return default(System.Reflection.MethodInfo); } }
public virtual System.Reflection.MethodInfo RemoveMethod { get { return default(System.Reflection.MethodInfo); } }
public virtual void AddEventHandler(object target, System.Delegate handler) { }
public override bool Equals(object obj) { return default(bool); }
public override int GetHashCode() { return default(int); }
public virtual void RemoveEventHandler(object target, System.Delegate handler) { }
}
public abstract partial class FieldInfo : System.Reflection.MemberInfo
{
internal FieldInfo() { }
public abstract System.Reflection.FieldAttributes Attributes { get; }
public abstract System.Type FieldType { get; }
public bool IsAssembly { get { return default(bool); } }
public bool IsFamily { get { return default(bool); } }
public bool IsFamilyAndAssembly { get { return default(bool); } }
public bool IsFamilyOrAssembly { get { return default(bool); } }
public bool IsInitOnly { get { return default(bool); } }
public bool IsLiteral { get { return default(bool); } }
public bool IsPrivate { get { return default(bool); } }
public bool IsPublic { get { return default(bool); } }
public bool IsSpecialName { get { return default(bool); } }
public bool IsStatic { get { return default(bool); } }
public override bool Equals(object obj) { return default(bool); }
public static System.Reflection.FieldInfo GetFieldFromHandle(System.RuntimeFieldHandle handle) { return default(System.Reflection.FieldInfo); }
public static System.Reflection.FieldInfo GetFieldFromHandle(System.RuntimeFieldHandle handle, System.RuntimeTypeHandle declaringType) { return default(System.Reflection.FieldInfo); }
public override int GetHashCode() { return default(int); }
public abstract object GetValue(object obj);
public virtual void SetValue(object obj, object value) { }
}
public static partial class IntrospectionExtensions
{
public static System.Reflection.TypeInfo GetTypeInfo(this System.Type type) { return default(System.Reflection.TypeInfo); }
}
public partial interface IReflectableType
{
System.Reflection.TypeInfo GetTypeInfo();
}
public partial class LocalVariableInfo
{
protected LocalVariableInfo() { }
public virtual bool IsPinned { get { return default(bool); } }
public virtual int LocalIndex { get { return default(int); } }
public virtual System.Type LocalType { get { return default(System.Type); } }
public override string ToString() { return default(string); }
}
public partial class ManifestResourceInfo
{
public ManifestResourceInfo(System.Reflection.Assembly containingAssembly, string containingFileName, System.Reflection.ResourceLocation resourceLocation) { }
public virtual string FileName { get { return default(string); } }
public virtual System.Reflection.Assembly ReferencedAssembly { get { return default(System.Reflection.Assembly); } }
public virtual System.Reflection.ResourceLocation ResourceLocation { get { return default(System.Reflection.ResourceLocation); } }
}
public abstract partial class MemberInfo
{
internal MemberInfo() { }
public virtual System.Collections.Generic.IEnumerable<System.Reflection.CustomAttributeData> CustomAttributes { get { return default(System.Collections.Generic.IEnumerable<System.Reflection.CustomAttributeData>); } }
public abstract System.Type DeclaringType { get; }
public virtual System.Reflection.Module Module { get { return default(System.Reflection.Module); } }
public abstract string Name { get; }
public override bool Equals(object obj) { return default(bool); }
public override int GetHashCode() { return default(int); }
}
public abstract partial class MethodBase : System.Reflection.MemberInfo
{
internal MethodBase() { }
public abstract System.Reflection.MethodAttributes Attributes { get; }
public virtual System.Reflection.CallingConventions CallingConvention { get { return default(System.Reflection.CallingConventions); } }
public virtual bool ContainsGenericParameters { get { return default(bool); } }
public bool IsAbstract { get { return default(bool); } }
public bool IsAssembly { get { return default(bool); } }
public bool IsConstructor { get { return default(bool); } }
public bool IsFamily { get { return default(bool); } }
public bool IsFamilyAndAssembly { get { return default(bool); } }
public bool IsFamilyOrAssembly { get { return default(bool); } }
public bool IsFinal { get { return default(bool); } }
public virtual bool IsGenericMethod { get { return default(bool); } }
public virtual bool IsGenericMethodDefinition { get { return default(bool); } }
public bool IsHideBySig { get { return default(bool); } }
public bool IsPrivate { get { return default(bool); } }
public bool IsPublic { get { return default(bool); } }
public bool IsSpecialName { get { return default(bool); } }
public bool IsStatic { get { return default(bool); } }
public bool IsVirtual { get { return default(bool); } }
public abstract System.Reflection.MethodImplAttributes MethodImplementationFlags { get; }
public override bool Equals(object obj) { return default(bool); }
public virtual System.Type[] GetGenericArguments() { return default(System.Type[]); }
public override int GetHashCode() { return default(int); }
public static System.Reflection.MethodBase GetMethodFromHandle(System.RuntimeMethodHandle handle) { return default(System.Reflection.MethodBase); }
public static System.Reflection.MethodBase GetMethodFromHandle(System.RuntimeMethodHandle handle, System.RuntimeTypeHandle declaringType) { return default(System.Reflection.MethodBase); }
public abstract System.Reflection.ParameterInfo[] GetParameters();
public virtual object Invoke(object obj, object[] parameters) { return default(object); }
}
public abstract partial class MethodInfo : System.Reflection.MethodBase
{
internal MethodInfo() { }
public virtual System.Reflection.ParameterInfo ReturnParameter { get { return default(System.Reflection.ParameterInfo); } }
public virtual System.Type ReturnType { get { return default(System.Type); } }
public virtual System.Delegate CreateDelegate(System.Type delegateType) { return default(System.Delegate); }
public virtual System.Delegate CreateDelegate(System.Type delegateType, object target) { return default(System.Delegate); }
public override bool Equals(object obj) { return default(bool); }
public override System.Type[] GetGenericArguments() { return default(System.Type[]); }
public virtual System.Reflection.MethodInfo GetGenericMethodDefinition() { return default(System.Reflection.MethodInfo); }
public override int GetHashCode() { return default(int); }
public virtual System.Reflection.MethodInfo MakeGenericMethod(params System.Type[] typeArguments) { return default(System.Reflection.MethodInfo); }
}
public abstract partial class Module
{
internal Module() { }
public virtual System.Reflection.Assembly Assembly { get { return default(System.Reflection.Assembly); } }
public virtual System.Collections.Generic.IEnumerable<System.Reflection.CustomAttributeData> CustomAttributes { get { return default(System.Collections.Generic.IEnumerable<System.Reflection.CustomAttributeData>); } }
public virtual string FullyQualifiedName { get { return default(string); } }
public virtual string Name { get { return default(string); } }
public override bool Equals(object o) { return default(bool); }
public override int GetHashCode() { return default(int); }
public virtual System.Type GetType(string className, bool throwOnError, bool ignoreCase) { return default(System.Type); }
public override string ToString() { return default(string); }
}
public partial class ParameterInfo
{
internal ParameterInfo() { }
public virtual System.Reflection.ParameterAttributes Attributes { get { return default(System.Reflection.ParameterAttributes); } }
public virtual System.Collections.Generic.IEnumerable<System.Reflection.CustomAttributeData> CustomAttributes { get { return default(System.Collections.Generic.IEnumerable<System.Reflection.CustomAttributeData>); } }
public virtual object DefaultValue { get { return default(object); } }
public virtual bool HasDefaultValue { get { return default(bool); } }
public bool IsIn { get { return default(bool); } }
public bool IsOptional { get { return default(bool); } }
public bool IsOut { get { return default(bool); } }
public bool IsRetval { get { return default(bool); } }
public virtual System.Reflection.MemberInfo Member { get { return default(System.Reflection.MemberInfo); } }
public virtual string Name { get { return default(string); } }
public virtual System.Type ParameterType { get { return default(System.Type); } }
public virtual int Position { get { return default(int); } }
}
public abstract partial class PropertyInfo : System.Reflection.MemberInfo
{
internal PropertyInfo() { }
public abstract System.Reflection.PropertyAttributes Attributes { get; }
public abstract bool CanRead { get; }
public abstract bool CanWrite { get; }
public virtual System.Reflection.MethodInfo GetMethod { get { return default(System.Reflection.MethodInfo); } }
public bool IsSpecialName { get { return default(bool); } }
public abstract System.Type PropertyType { get; }
public virtual System.Reflection.MethodInfo SetMethod { get { return default(System.Reflection.MethodInfo); } }
public override bool Equals(object obj) { return default(bool); }
public virtual object GetConstantValue() { return default(object); }
public override int GetHashCode() { return default(int); }
public abstract System.Reflection.ParameterInfo[] GetIndexParameters();
public object GetValue(object obj) { return default(object); }
public virtual object GetValue(object obj, object[] index) { return default(object); }
public void SetValue(object obj, object value) { }
public virtual void SetValue(object obj, object value, object[] index) { }
}
public abstract partial class ReflectionContext
{
protected ReflectionContext() { }
public virtual System.Reflection.TypeInfo GetTypeForObject(object value) { return default(System.Reflection.TypeInfo); }
public abstract System.Reflection.Assembly MapAssembly(System.Reflection.Assembly assembly);
public abstract System.Reflection.TypeInfo MapType(System.Reflection.TypeInfo type);
}
public sealed partial class ReflectionTypeLoadException : System.Exception
{
public ReflectionTypeLoadException(System.Type[] classes, System.Exception[] exceptions) { }
public ReflectionTypeLoadException(System.Type[] classes, System.Exception[] exceptions, string message) { }
public System.Exception[] LoaderExceptions { get { return default(System.Exception[]); } }
public System.Type[] Types { get { return default(System.Type[]); } }
}
[System.FlagsAttribute]
public enum ResourceLocation
{
ContainedInAnotherAssembly = 2,
ContainedInManifestFile = 4,
Embedded = 1,
}
public sealed partial class TargetInvocationException : System.Exception
{
public TargetInvocationException(System.Exception inner) { }
public TargetInvocationException(string message, System.Exception inner) { }
}
public sealed partial class TargetParameterCountException : System.Exception
{
public TargetParameterCountException() { }
public TargetParameterCountException(string message) { }
public TargetParameterCountException(string message, System.Exception inner) { }
}
public abstract partial class TypeInfo : System.Reflection.MemberInfo, System.Reflection.IReflectableType
{
internal TypeInfo() { }
public virtual System.Collections.Generic.IEnumerable<System.Reflection.ConstructorInfo> DeclaredConstructors { get { return default(System.Collections.Generic.IEnumerable<System.Reflection.ConstructorInfo>); } }
public virtual System.Collections.Generic.IEnumerable<System.Reflection.EventInfo> DeclaredEvents { get { return default(System.Collections.Generic.IEnumerable<System.Reflection.EventInfo>); } }
public virtual System.Collections.Generic.IEnumerable<System.Reflection.FieldInfo> DeclaredFields { get { return default(System.Collections.Generic.IEnumerable<System.Reflection.FieldInfo>); } }
public virtual System.Collections.Generic.IEnumerable<System.Reflection.MemberInfo> DeclaredMembers { get { return default(System.Collections.Generic.IEnumerable<System.Reflection.MemberInfo>); } }
public virtual System.Collections.Generic.IEnumerable<System.Reflection.MethodInfo> DeclaredMethods { get { return default(System.Collections.Generic.IEnumerable<System.Reflection.MethodInfo>); } }
public virtual System.Collections.Generic.IEnumerable<System.Reflection.TypeInfo> DeclaredNestedTypes { get { return default(System.Collections.Generic.IEnumerable<System.Reflection.TypeInfo>); } }
public virtual System.Collections.Generic.IEnumerable<System.Reflection.PropertyInfo> DeclaredProperties { get { return default(System.Collections.Generic.IEnumerable<System.Reflection.PropertyInfo>); } }
public virtual System.Type[] GenericTypeParameters { get { return default(System.Type[]); } }
public virtual System.Collections.Generic.IEnumerable<System.Type> ImplementedInterfaces { get { return default(System.Collections.Generic.IEnumerable<System.Type>); } }
public virtual System.Type AsType() { return default(System.Type); }
public virtual System.Reflection.EventInfo GetDeclaredEvent(string name) { return default(System.Reflection.EventInfo); }
public virtual System.Reflection.FieldInfo GetDeclaredField(string name) { return default(System.Reflection.FieldInfo); }
public virtual System.Reflection.MethodInfo GetDeclaredMethod(string name) { return default(System.Reflection.MethodInfo); }
public virtual System.Collections.Generic.IEnumerable<System.Reflection.MethodInfo> GetDeclaredMethods(string name) { return default(System.Collections.Generic.IEnumerable<System.Reflection.MethodInfo>); }
public virtual System.Reflection.TypeInfo GetDeclaredNestedType(string name) { return default(System.Reflection.TypeInfo); }
public virtual System.Reflection.PropertyInfo GetDeclaredProperty(string name) { return default(System.Reflection.PropertyInfo); }
public virtual bool IsAssignableFrom(System.Reflection.TypeInfo typeInfo) { return default(bool); }
System.Reflection.TypeInfo System.Reflection.IReflectableType.GetTypeInfo() { return default(System.Reflection.TypeInfo); }
}
}