📄 icordebugcontroller.cs
字号:
// <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>
// This file is automatically generated - any changes will be lost
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<T>() where T: class
{
try {
CastTo<T>();
return true;
} catch {
return false;
}
}
public T As<T>() where T: class
{
try {
return CastTo<T>();
} catch {
return null;
}
}
public T CastTo<T>() 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;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -