Opc.Ua.SimpleAttributeOperand.ToString C# (CSharp) Method

ToString() public method

Converts an AttributeOperand to a displayable string.
public ToString ( INodeTable nodeTable ) : string
nodeTable INodeTable
return string
        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();
        }
        #endregion

Same methods

SimpleAttributeOperand::ToString ( ) : string
SimpleAttributeOperand::ToString ( string format, IFormatProvider formatProvider ) : string