This repository has been archived by the owner. It is now read-only.
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (26 sloc) 732 Bytes
using System;
namespace Mono.Debugger.Languages
{
public class TargetEnumObject : TargetObject
{
public new readonly TargetEnumType Type;
internal TargetEnumObject (TargetEnumType type, TargetLocation location)
: base (type, location)
{
this.Type = type;
}
public TargetObject GetValue (Thread thread)
{
return (TargetObject) thread.ThreadServant.DoTargetAccess (
delegate (TargetMemoryAccess target) {
return Type.Value.Type.GetObject (target, Location);
});
}
internal override long GetDynamicSize (TargetMemoryAccess target, TargetBlob blob,
TargetLocation location,
out TargetLocation dynamic_location)
{
throw new InvalidOperationException ();
}
}
}