PageRenderTime 34ms CodeModel.GetById 28ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 1ms

/Debugger/Debugger.Core/MetaData/DebugConstructorInfo.cs

http://github.com/icsharpcode/ILSpy
C# | 133 lines | 89 code | 24 blank | 20 comment | 0 complexity | ada4ee7d30f231dadf14e31239d2787a MD5 | raw file
  1// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
  2// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
  3
  4using System;
  5using System.Collections.Generic;
  6using System.Globalization;
  7using System.Reflection;
  8using System.Runtime.InteropServices;
  9using System.Text;
 10
 11using Debugger.Interop.CorDebug;
 12using Debugger.Interop.CorSym;
 13using Debugger.Interop.MetaData;
 14using Mono.Cecil.Signatures;
 15
 16namespace Debugger.MetaData
 17{
 18	public class DebugConstructorInfo: System.Reflection.ConstructorInfo, IDebugMemberInfo
 19	{
 20		DebugMethodInfo methodInfo;
 21		
 22		internal DebugConstructorInfo(DebugMethodInfo methodInfo)
 23		{
 24			this.methodInfo = methodInfo;
 25		}
 26		
 27		Debugger.Module IDebugMemberInfo.DebugModule {
 28			get { return methodInfo.DebugModule; }
 29		}
 30		
 31		/// <inheritdoc/>
 32		public override Type DeclaringType {
 33			get { return methodInfo.DeclaringType; }
 34		}
 35		
 36		/// <inheritdoc/>
 37		public override int MetadataToken {
 38			get { return methodInfo.MetadataToken; }
 39		}
 40		
 41		/// <inheritdoc/>
 42		public override System.Reflection.Module Module {
 43			get { return methodInfo.Module; }
 44		}
 45		
 46		/// <inheritdoc/>
 47		public override string Name {
 48			get { return methodInfo.Name; }
 49		}
 50		
 51		/// <inheritdoc/>
 52		public override Type ReflectedType {
 53			get { return methodInfo.ReflectedType; }
 54		}
 55		
 56		/// <inheritdoc/>
 57		public override MethodAttributes Attributes {
 58			get { return methodInfo.Attributes; }
 59		}
 60		
 61		/// <inheritdoc/>
 62		public override bool ContainsGenericParameters {
 63			get { return methodInfo.ContainsGenericParameters; }
 64		}
 65		
 66		/// <inheritdoc/>
 67		public override bool IsGenericMethod {
 68			get { return methodInfo.IsGenericMethod; }
 69		}
 70		
 71		/// <inheritdoc/>
 72		public override bool IsGenericMethodDefinition {
 73			get { return methodInfo.IsGenericMethodDefinition; }
 74		}
 75		
 76		/// <inheritdoc/>
 77		public override RuntimeMethodHandle MethodHandle {
 78			get { return methodInfo.MethodHandle; }
 79		}
 80		
 81		DebugType IDebugMemberInfo.MemberType {
 82			get { return ((IDebugMemberInfo)methodInfo).MemberType; }
 83		}
 84		
 85		/// <inheritdoc/>
 86		public override object[] GetCustomAttributes(bool inherit)
 87		{
 88			return methodInfo.GetCustomAttributes(inherit);
 89		}
 90		
 91		/// <inheritdoc/>
 92		public override object[] GetCustomAttributes(Type attributeType, bool inherit)
 93		{
 94			return methodInfo.GetCustomAttributes(attributeType, inherit);
 95		}
 96		
 97		/// <inheritdoc/>
 98		public override bool IsDefined(Type attributeType, bool inherit)
 99		{
100			return methodInfo.IsDefined(attributeType, inherit);
101		}
102		
103		/// <inheritdoc/>
104		public override MethodImplAttributes GetMethodImplementationFlags()
105		{
106			return methodInfo.GetMethodImplementationFlags();
107		}
108		
109		/// <inheritdoc/>
110		public override object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
111		{
112			return methodInfo.Invoke(null, invokeAttr, binder, parameters, culture);
113		}
114		
115		/// <inheritdoc/>
116		public override object Invoke(BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
117		{
118			return methodInfo.Invoke(null, invokeAttr, binder, parameters, culture);
119		}
120		
121		/// <inheritdoc/>
122		public override ParameterInfo[] GetParameters()
123		{
124			return methodInfo.GetParameters();
125		}
126		
127		/// <inheritdoc/>
128		public override string ToString()
129		{
130			return methodInfo.ToString();
131		}
132	}
133}