Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5099 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
6 changed files with 124 additions and 366 deletions
@ -1,68 +0,0 @@
@@ -1,68 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Globalization; |
||||
|
||||
using Debugger.Wrappers.CorDebug; |
||||
using Debugger.Wrappers.MetaData; |
||||
using ICSharpCode.NRefactory.Ast; |
||||
using Mono.Cecil.Signatures; |
||||
|
||||
namespace Debugger.MetaData2 |
||||
{ |
||||
using System.Reflection; |
||||
public class DebugMemberInfo: System.Reflection.MemberInfo |
||||
{ |
||||
public override Type DeclaringType { |
||||
get { |
||||
throw new NotSupportedException(); |
||||
} |
||||
} |
||||
|
||||
public override MemberTypes MemberType { |
||||
get { |
||||
throw new NotSupportedException(); |
||||
} |
||||
} |
||||
|
||||
// public virtual int MetadataToken { get; }
|
||||
// internal virtual int MetadataTokenInternal { get; }
|
||||
// public virtual Module Module { get; }
|
||||
|
||||
public override string Name { |
||||
get { |
||||
throw new NotSupportedException(); |
||||
} |
||||
} |
||||
|
||||
public override Type ReflectedType { |
||||
get { |
||||
throw new NotSupportedException(); |
||||
} |
||||
} |
||||
|
||||
|
||||
// internal virtual bool CacheEquals(object o);
|
||||
|
||||
public override object[] GetCustomAttributes(bool inherit) |
||||
{ |
||||
throw new NotSupportedException(); |
||||
} |
||||
|
||||
public override object[] GetCustomAttributes(Type attributeType, bool inherit) |
||||
{ |
||||
throw new NotSupportedException(); |
||||
} |
||||
|
||||
public override bool IsDefined(Type attributeType, bool inherit) |
||||
{ |
||||
throw new NotSupportedException(); |
||||
} |
||||
} |
||||
} |
||||
@ -1,135 +0,0 @@
@@ -1,135 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Globalization; |
||||
|
||||
using Debugger.Wrappers.CorDebug; |
||||
using Debugger.Wrappers.MetaData; |
||||
using ICSharpCode.NRefactory.Ast; |
||||
using Mono.Cecil.Signatures; |
||||
|
||||
namespace Debugger.MetaData2 |
||||
{ |
||||
using System.Reflection; |
||||
public class DebugMethodInfo: System.Reflection.MethodInfo |
||||
{ |
||||
public override Type DeclaringType { |
||||
get { |
||||
throw new NotSupportedException(); |
||||
} |
||||
} |
||||
|
||||
public override MemberTypes MemberType { |
||||
get { |
||||
throw new NotSupportedException(); |
||||
} |
||||
} |
||||
|
||||
// public virtual int MetadataToken { get; }
|
||||
// internal virtual int MetadataTokenInternal { get; }
|
||||
// public virtual Module Module { get; }
|
||||
|
||||
public override string Name { |
||||
get { |
||||
throw new NotSupportedException(); |
||||
} |
||||
} |
||||
|
||||
public override Type ReflectedType { |
||||
get { |
||||
throw new NotSupportedException(); |
||||
} |
||||
} |
||||
|
||||
|
||||
// internal virtual bool CacheEquals(object o);
|
||||
|
||||
public override object[] GetCustomAttributes(bool inherit) |
||||
{ |
||||
throw new NotSupportedException(); |
||||
} |
||||
|
||||
public override object[] GetCustomAttributes(Type attributeType, bool inherit) |
||||
{ |
||||
throw new NotSupportedException(); |
||||
} |
||||
|
||||
public override bool IsDefined(Type attributeType, bool inherit) |
||||
{ |
||||
throw new NotSupportedException(); |
||||
} |
||||
|
||||
// public virtual Type[] GetGenericArguments();
|
||||
// public virtual MethodBody GetMethodBody();
|
||||
// internal virtual RuntimeMethodHandle GetMethodHandle();
|
||||
|
||||
public override MethodImplAttributes GetMethodImplementationFlags() |
||||
{ |
||||
throw new NotSupportedException(); |
||||
} |
||||
|
||||
// internal virtual uint GetOneTimeFlags();
|
||||
// internal virtual uint GetOneTimeSpecificFlags();
|
||||
|
||||
public override ParameterInfo[] GetParameters() |
||||
{ |
||||
throw new NotSupportedException(); |
||||
} |
||||
|
||||
// internal virtual ParameterInfo[] GetParametersNoCopy();
|
||||
// internal virtual Type[] GetParameterTypes();
|
||||
// internal virtual Type GetReturnType();
|
||||
|
||||
public override object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture) |
||||
{ |
||||
throw new NotSupportedException(); |
||||
} |
||||
|
||||
public override MethodAttributes Attributes { |
||||
get { |
||||
throw new NotSupportedException(); |
||||
} |
||||
} |
||||
|
||||
// public virtual CallingConventions CallingConvention { get; }
|
||||
// public virtual bool ContainsGenericParameters { get; }
|
||||
// public virtual bool IsGenericMethod { get; }
|
||||
// public virtual bool IsGenericMethodDefinition { get; }
|
||||
// internal virtual bool IsOverloaded { get; }
|
||||
|
||||
public override RuntimeMethodHandle MethodHandle { |
||||
get { |
||||
throw new NotSupportedException(); |
||||
} |
||||
} |
||||
|
||||
public override MethodInfo GetBaseDefinition() |
||||
{ |
||||
throw new NotSupportedException(); |
||||
} |
||||
|
||||
// public override Type[] GetGenericArguments();
|
||||
// public virtual MethodInfo GetGenericMethodDefinition();
|
||||
// internal virtual MethodInfo GetParentDefinition();
|
||||
// internal override Type GetReturnType();
|
||||
// public virtual MethodInfo MakeGenericMethod(params Type[] typeArguments);
|
||||
// public override bool ContainsGenericParameters { get; }
|
||||
// public override bool IsGenericMethod { get; }
|
||||
// public override bool IsGenericMethodDefinition { get; }
|
||||
// public override MemberTypes MemberType { get; }
|
||||
// public virtual ParameterInfo ReturnParameter { get; }
|
||||
// public virtual Type ReturnType { get; }
|
||||
|
||||
public override ICustomAttributeProvider ReturnTypeCustomAttributes { |
||||
get { |
||||
throw new NotSupportedException(); |
||||
} |
||||
} |
||||
} |
||||
} |
||||
@ -1,87 +0,0 @@
@@ -1,87 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using Debugger.Wrappers.CorDebug; |
||||
using Debugger.Wrappers.MetaData; |
||||
|
||||
namespace Debugger.MetaData |
||||
{ |
||||
/// <summary>
|
||||
/// Provides information about a member of some class
|
||||
/// (eg. a field or a method).
|
||||
/// </summary>
|
||||
public abstract class MemberInfo: DebuggerObject |
||||
{ |
||||
DebugType declaringType; |
||||
|
||||
/// <summary> Gets the process in which the type was loaded </summary>
|
||||
[Debugger.Tests.Ignore] |
||||
public AppDomain AppDomain { |
||||
get { return declaringType.AppDomain; } |
||||
} |
||||
|
||||
[Debugger.Tests.Ignore] |
||||
public Process Process { |
||||
get { return this.AppDomain.Process; } |
||||
} |
||||
|
||||
/// <summary> Gets the name of this member </summary>
|
||||
public abstract string Name { get; } |
||||
|
||||
/// <summary> Gets name of the method including the full name of the declaring type </summary>
|
||||
public string FullName { |
||||
get { |
||||
return this.DeclaringType.FullName + "." + this.Name; |
||||
} |
||||
} |
||||
|
||||
/// <summary> Gets the module in which this member is defined </summary>
|
||||
public Module Module { |
||||
get { |
||||
return declaringType.Module; |
||||
} |
||||
} |
||||
|
||||
/// <summary> Gets the type that declares this member element </summary>
|
||||
public DebugType DeclaringType { |
||||
get { |
||||
return declaringType; |
||||
} |
||||
} |
||||
|
||||
/// <summary> Gets a value indicating whether this member has the private access modifier</summary>
|
||||
public abstract bool IsPrivate { get; } |
||||
|
||||
/// <summary> Gets a value indicating whether this member has the internal access modifier</summary>
|
||||
public abstract bool IsInternal { get; } |
||||
|
||||
/// <summary> Gets a value indicating whether this member has the protected access modifier</summary>
|
||||
public abstract bool IsProtected { get; } |
||||
|
||||
/// <summary> Gets a value indicating whether this member has the public access modifier</summary>
|
||||
public abstract bool IsPublic { get; } |
||||
|
||||
/// <summary> Gets a value indicating whether this member is static </summary>
|
||||
public abstract bool IsStatic { get; } |
||||
|
||||
/// <summary> Gets the metadata token associated with this member </summary>
|
||||
[Debugger.Tests.Ignore] |
||||
public abstract uint MetadataToken { get; } |
||||
|
||||
internal MemberInfo(DebugType declaringType) |
||||
{ |
||||
this.declaringType = declaringType; |
||||
} |
||||
|
||||
public override string ToString() |
||||
{ |
||||
return this.Name; |
||||
} |
||||
} |
||||
} |
||||
Loading…
Reference in new issue