//
//
//
//
// $Revision$
//
// This file is automatically generated - any changes will be lost
#pragma warning disable 1591
namespace Debugger.Wrappers.CorDebug
{
using System;
public partial class ICorDebugModuleBreakpoint
{
private Debugger.Interop.CorDebug.ICorDebugModuleBreakpoint wrappedObject;
internal Debugger.Interop.CorDebug.ICorDebugModuleBreakpoint WrappedObject
{
get
{
return this.wrappedObject;
}
}
public ICorDebugModuleBreakpoint(Debugger.Interop.CorDebug.ICorDebugModuleBreakpoint wrappedObject)
{
this.wrappedObject = wrappedObject;
ResourceManager.TrackCOMObject(wrappedObject, typeof(ICorDebugModuleBreakpoint));
}
public static ICorDebugModuleBreakpoint Wrap(Debugger.Interop.CorDebug.ICorDebugModuleBreakpoint objectToWrap)
{
if ((objectToWrap != null))
{
return new ICorDebugModuleBreakpoint(objectToWrap);
} else
{
return null;
}
}
~ICorDebugModuleBreakpoint()
{
object o = wrappedObject;
wrappedObject = null;
ResourceManager.ReleaseCOMObject(o, typeof(ICorDebugModuleBreakpoint));
}
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 ==(ICorDebugModuleBreakpoint o1, ICorDebugModuleBreakpoint o2)
{
return ((object)o1 == null && (object)o2 == null) ||
((object)o1 != null && (object)o2 != null && o1.WrappedObject == o2.WrappedObject);
}
public static bool operator !=(ICorDebugModuleBreakpoint o1, ICorDebugModuleBreakpoint o2)
{
return !(o1 == o2);
}
public override int GetHashCode()
{
return base.GetHashCode();
}
public override bool Equals(object o)
{
ICorDebugModuleBreakpoint casted = o as ICorDebugModuleBreakpoint;
return (casted != null) && (casted.WrappedObject == wrappedObject);
}
public void Activate(int bActive)
{
this.WrappedObject.Activate(bActive);
}
public int IsActive
{
get
{
int pbActive;
this.WrappedObject.IsActive(out pbActive);
return pbActive;
}
}
public ICorDebugModule Module
{
get
{
ICorDebugModule ppModule;
Debugger.Interop.CorDebug.ICorDebugModule out_ppModule;
this.WrappedObject.GetModule(out out_ppModule);
ppModule = ICorDebugModule.Wrap(out_ppModule);
return ppModule;
}
}
}
}
#pragma warning restore 1591