mirror of https://github.com/icsharpcode/ILSpy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
133 lines
3.3 KiB
133 lines
3.3 KiB
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) |
|
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt) |
|
|
|
using System; |
|
using System.Collections.Generic; |
|
using System.Globalization; |
|
using System.Reflection; |
|
using System.Runtime.InteropServices; |
|
using System.Text; |
|
|
|
using Debugger.Interop.CorDebug; |
|
using Debugger.Interop.CorSym; |
|
using Debugger.Interop.MetaData; |
|
using Mono.Cecil.Signatures; |
|
|
|
namespace Debugger.MetaData |
|
{ |
|
public class DebugConstructorInfo: System.Reflection.ConstructorInfo, IDebugMemberInfo |
|
{ |
|
DebugMethodInfo methodInfo; |
|
|
|
internal DebugConstructorInfo(DebugMethodInfo methodInfo) |
|
{ |
|
this.methodInfo = methodInfo; |
|
} |
|
|
|
Debugger.Module IDebugMemberInfo.DebugModule { |
|
get { return methodInfo.DebugModule; } |
|
} |
|
|
|
/// <inheritdoc/> |
|
public override Type DeclaringType { |
|
get { return methodInfo.DeclaringType; } |
|
} |
|
|
|
/// <inheritdoc/> |
|
public override int MetadataToken { |
|
get { return methodInfo.MetadataToken; } |
|
} |
|
|
|
/// <inheritdoc/> |
|
public override System.Reflection.Module Module { |
|
get { return methodInfo.Module; } |
|
} |
|
|
|
/// <inheritdoc/> |
|
public override string Name { |
|
get { return methodInfo.Name; } |
|
} |
|
|
|
/// <inheritdoc/> |
|
public override Type ReflectedType { |
|
get { return methodInfo.ReflectedType; } |
|
} |
|
|
|
/// <inheritdoc/> |
|
public override MethodAttributes Attributes { |
|
get { return methodInfo.Attributes; } |
|
} |
|
|
|
/// <inheritdoc/> |
|
public override bool ContainsGenericParameters { |
|
get { return methodInfo.ContainsGenericParameters; } |
|
} |
|
|
|
/// <inheritdoc/> |
|
public override bool IsGenericMethod { |
|
get { return methodInfo.IsGenericMethod; } |
|
} |
|
|
|
/// <inheritdoc/> |
|
public override bool IsGenericMethodDefinition { |
|
get { return methodInfo.IsGenericMethodDefinition; } |
|
} |
|
|
|
/// <inheritdoc/> |
|
public override RuntimeMethodHandle MethodHandle { |
|
get { return methodInfo.MethodHandle; } |
|
} |
|
|
|
DebugType IDebugMemberInfo.MemberType { |
|
get { return ((IDebugMemberInfo)methodInfo).MemberType; } |
|
} |
|
|
|
/// <inheritdoc/> |
|
public override object[] GetCustomAttributes(bool inherit) |
|
{ |
|
return methodInfo.GetCustomAttributes(inherit); |
|
} |
|
|
|
/// <inheritdoc/> |
|
public override object[] GetCustomAttributes(Type attributeType, bool inherit) |
|
{ |
|
return methodInfo.GetCustomAttributes(attributeType, inherit); |
|
} |
|
|
|
/// <inheritdoc/> |
|
public override bool IsDefined(Type attributeType, bool inherit) |
|
{ |
|
return methodInfo.IsDefined(attributeType, inherit); |
|
} |
|
|
|
/// <inheritdoc/> |
|
public override MethodImplAttributes GetMethodImplementationFlags() |
|
{ |
|
return methodInfo.GetMethodImplementationFlags(); |
|
} |
|
|
|
/// <inheritdoc/> |
|
public override object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture) |
|
{ |
|
return methodInfo.Invoke(null, invokeAttr, binder, parameters, culture); |
|
} |
|
|
|
/// <inheritdoc/> |
|
public override object Invoke(BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture) |
|
{ |
|
return methodInfo.Invoke(null, invokeAttr, binder, parameters, culture); |
|
} |
|
|
|
/// <inheritdoc/> |
|
public override ParameterInfo[] GetParameters() |
|
{ |
|
return methodInfo.GetParameters(); |
|
} |
|
|
|
/// <inheritdoc/> |
|
public override string ToString() |
|
{ |
|
return methodInfo.ToString(); |
|
} |
|
} |
|
}
|
|
|