/// <summary>
/// Converts an AttributeOperand to a displayable string.
/// </summary>
public override string ToString(INodeTable nodeTable)
{
StringBuilder buffer = new StringBuilder();
INode node = nodeTable.Find(TypeDefinitionId);
if (node != null)
{
buffer.AppendFormat("{0}", TypeDefinitionId);
}
else
{
buffer.AppendFormat("{0}", TypeDefinitionId);
}
if (BrowsePath != null && BrowsePath.Count > 0)
{
buffer.AppendFormat("{0}", Format(BrowsePath));
}
if (!String.IsNullOrEmpty(IndexRange))
{
buffer.AppendFormat("[{0}]", NumericRange.Parse(IndexRange));
}
return(buffer.ToString());
}