//
//
//
//
// $Revision$
//
// This file is automatically generated - any changes will be lost
#pragma warning disable 1591
namespace Debugger.Wrappers.CorDebug
{
using System;
public partial class ICorDebugController
{
private Debugger.Interop.CorDebug.ICorDebugController wrappedObject;
internal Debugger.Interop.CorDebug.ICorDebugController WrappedObject
{
get
{
return this.wrappedObject;
}
}
public ICorDebugController(Debugger.Interop.CorDebug.ICorDebugController wrappedObject)
{
this.wrappedObject = wrappedObject;
ResourceManager.TrackCOMObject(wrappedObject, typeof(ICorDebugController));
}
public static ICorDebugController Wrap(Debugger.Interop.CorDebug.ICorDebugController objectToWrap)
{
if ((objectToWrap != null))
{
return new ICorDebugController(objectToWrap);
} else
{
return null;
}
}
~ICorDebugController()
{
object o = wrappedObject;
wrappedObject = null;
ResourceManager.ReleaseCOMObject(o, typeof(ICorDebugController));
}
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 ==(ICorDebugController o1, ICorDebugController o2)
{
return ((object)o1 == null && (object)o2 == null) ||
((object)o1 != null && (object)o2 != null && o1.WrappedObject == o2.WrappedObject);
}
public static bool operator !=(ICorDebugController o1, ICorDebugController o2)
{
return !(o1 == o2);
}
public override int GetHashCode()
{
return base.GetHashCode();
}
public override bool Equals(object o)
{
ICorDebugController casted = o as ICorDebugController;
return (casted != null) && (casted.WrappedObject == wrappedObject);
}
public void Stop(uint dwTimeoutIgnored)
{
this.WrappedObject.Stop(dwTimeoutIgnored);
}
public void Continue(int fIsOutOfBand)
{
this.WrappedObject.Continue(fIsOutOfBand);
}
public int IsRunning
{
get
{
int pbRunning;
this.WrappedObject.IsRunning(out pbRunning);
return pbRunning;
}
}
public int HasQueuedCallbacks(ICorDebugThread pThread)
{
int pbQueued;
this.WrappedObject.HasQueuedCallbacks(pThread.WrappedObject, out pbQueued);
return pbQueued;
}
public ICorDebugThreadEnum EnumerateThreads()
{
ICorDebugThreadEnum ppThreads;
Debugger.Interop.CorDebug.ICorDebugThreadEnum out_ppThreads;
this.WrappedObject.EnumerateThreads(out out_ppThreads);
ppThreads = ICorDebugThreadEnum.Wrap(out_ppThreads);
return ppThreads;
}
public void SetAllThreadsDebugState(CorDebugThreadState state, ICorDebugThread pExceptThisThread)
{
this.WrappedObject.SetAllThreadsDebugState(((Debugger.Interop.CorDebug.CorDebugThreadState)(state)), pExceptThisThread.WrappedObject);
}
public void Detach()
{
this.WrappedObject.Detach();
}
public void Terminate(uint exitCode)
{
this.WrappedObject.Terminate(exitCode);
}
public ICorDebugErrorInfoEnum CanCommitChanges(uint cSnapshots, ref ICorDebugEditAndContinueSnapshot pSnapshots)
{
ICorDebugErrorInfoEnum pError;
Debugger.Interop.CorDebug.ICorDebugEditAndContinueSnapshot ref_pSnapshots = pSnapshots.WrappedObject;
Debugger.Interop.CorDebug.ICorDebugErrorInfoEnum out_pError;
this.WrappedObject.CanCommitChanges(cSnapshots, ref ref_pSnapshots, out out_pError);
pSnapshots = ICorDebugEditAndContinueSnapshot.Wrap(ref_pSnapshots);
pError = ICorDebugErrorInfoEnum.Wrap(out_pError);
return pError;
}
public ICorDebugErrorInfoEnum CommitChanges(uint cSnapshots, ref ICorDebugEditAndContinueSnapshot pSnapshots)
{
ICorDebugErrorInfoEnum pError;
Debugger.Interop.CorDebug.ICorDebugEditAndContinueSnapshot ref_pSnapshots = pSnapshots.WrappedObject;
Debugger.Interop.CorDebug.ICorDebugErrorInfoEnum out_pError;
this.WrappedObject.CommitChanges(cSnapshots, ref ref_pSnapshots, out out_pError);
pSnapshots = ICorDebugEditAndContinueSnapshot.Wrap(ref_pSnapshots);
pError = ICorDebugErrorInfoEnum.Wrap(out_pError);
return pError;
}
}
}
#pragma warning restore 1591