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