//
//
//
//
// $Revision: 2210 $
//
using System;
using System.Collections.Generic;
using Debugger.Wrappers.CorDebug;
namespace Debugger
{
///
/// NamedValue is a Value which has some name associated with it -
/// eg the name of the field that holds the value.
///
public class NamedValue: Value
{
string name;
/// Gets the name associated with the value
public string Name {
get {
return name;
}
}
internal NamedValue(string name,
Process process,
IExpirable[] expireDependencies,
IMutable[] mutateDependencies,
CorValueGetter corValueGetter)
:base (process,
expireDependencies,
mutateDependencies,
corValueGetter)
{
this.name = name;
// TODO: clean up
if (name.StartsWith("<") && name.Contains(">") && name != "") {
string middle = name.TrimStart('<').Split('>')[0]; // Get text between '<' and '>'
if (middle != "") {
this.name = middle;
}
}
}
}
}