//
//
//
//
// $Revision$
//
// This file is automatically generated - any changes will be lost
#pragma warning disable 1591
namespace Debugger.Wrappers.CorDebug
{
using System;
public partial class ICorDebugFrame
{
private Debugger.Interop.CorDebug.ICorDebugFrame wrappedObject;
internal Debugger.Interop.CorDebug.ICorDebugFrame WrappedObject
{
get
{
return this.wrappedObject;
}
}
public ICorDebugFrame(Debugger.Interop.CorDebug.ICorDebugFrame wrappedObject)
{
this.wrappedObject = wrappedObject;
ResourceManager.TrackCOMObject(wrappedObject, typeof(ICorDebugFrame));
}
public static ICorDebugFrame Wrap(Debugger.Interop.CorDebug.ICorDebugFrame objectToWrap)
{
if ((objectToWrap != null))
{
return new ICorDebugFrame(objectToWrap);
} else
{
return null;
}
}
~ICorDebugFrame()
{
object o = wrappedObject;
wrappedObject = null;
ResourceManager.ReleaseCOMObject(o, typeof(ICorDebugFrame));
}
public bool Is() where T: class
{
System.Reflection.ConstructorInfo ctor = typeof(T).GetConstructors()[0];
System.Type paramType = ctor.GetParameters()[0].ParameterType;
return paramType.IsInstanceOfType(this.WrappedObject);
}
public T As() where T: class
{
try {
return CastTo();
} catch {
return null;
}
}
public T CastTo() where T: class
{
return (T)Activator.CreateInstance(typeof(T), this.WrappedObject);
}
public static bool operator ==(ICorDebugFrame o1, ICorDebugFrame o2)
{
return ((object)o1 == null && (object)o2 == null) ||
((object)o1 != null && (object)o2 != null && o1.WrappedObject == o2.WrappedObject);
}
public static bool operator !=(ICorDebugFrame o1, ICorDebugFrame o2)
{
return !(o1 == o2);
}
public override int GetHashCode()
{
return base.GetHashCode();
}
public override bool Equals(object o)
{
ICorDebugFrame casted = o as ICorDebugFrame;
return (casted != null) && (casted.WrappedObject == wrappedObject);
}
public ICorDebugChain Chain
{
get
{
ICorDebugChain ppChain;
Debugger.Interop.CorDebug.ICorDebugChain out_ppChain;
this.WrappedObject.GetChain(out out_ppChain);
ppChain = ICorDebugChain.Wrap(out_ppChain);
return ppChain;
}
}
public ICorDebugCode Code
{
get
{
ICorDebugCode ppCode;
Debugger.Interop.CorDebug.ICorDebugCode out_ppCode;
this.WrappedObject.GetCode(out out_ppCode);
ppCode = ICorDebugCode.Wrap(out_ppCode);
return ppCode;
}
}
public ICorDebugFunction Function
{
get
{
ICorDebugFunction ppFunction;
Debugger.Interop.CorDebug.ICorDebugFunction out_ppFunction;
this.WrappedObject.GetFunction(out out_ppFunction);
ppFunction = ICorDebugFunction.Wrap(out_ppFunction);
return ppFunction;
}
}
public uint FunctionToken
{
get
{
uint pToken;
this.WrappedObject.GetFunctionToken(out pToken);
return pToken;
}
}
public ulong GetStackRange(out ulong pStart)
{
ulong pEnd;
this.WrappedObject.GetStackRange(out pStart, out pEnd);
return pEnd;
}
public ICorDebugFrame Caller
{
get
{
ICorDebugFrame ppFrame;
Debugger.Interop.CorDebug.ICorDebugFrame out_ppFrame;
this.WrappedObject.GetCaller(out out_ppFrame);
ppFrame = ICorDebugFrame.Wrap(out_ppFrame);
return ppFrame;
}
}
public ICorDebugFrame Callee
{
get
{
ICorDebugFrame ppFrame;
Debugger.Interop.CorDebug.ICorDebugFrame out_ppFrame;
this.WrappedObject.GetCallee(out out_ppFrame);
ppFrame = ICorDebugFrame.Wrap(out_ppFrame);
return ppFrame;
}
}
public ICorDebugStepper CreateStepper()
{
ICorDebugStepper ppStepper;
Debugger.Interop.CorDebug.ICorDebugStepper out_ppStepper;
this.WrappedObject.CreateStepper(out out_ppStepper);
ppStepper = ICorDebugStepper.Wrap(out_ppStepper);
return ppStepper;
}
}
}
#pragma warning restore 1591