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

ToString() public method

Formats the value of the current instance using the specified format.
public ToString ( string format, IFormatProvider formatProvider ) : string
format string The specifying the format to use. /// -or- /// null to use the default format defined for the type of the implementation.
formatProvider IFormatProvider The to use to format the value. /// -or- /// null to obtain the numeric format information from the current locale setting of the operating system.
return string
        public string ToString(string format, IFormatProvider formatProvider)
        {
            if (format == null)
            {
                StringBuilder buffer = new StringBuilder();

                for (int ii = 0; ii < m_browsePath.Elements.Count; ii++)
                {
                    buffer.AppendFormat(formatProvider, "/{0}", m_browsePath.Elements[ii].TargetName);
                }

                return buffer.ToString();
            }

            throw new FormatException(Utils.Format("Invalid format string: '{0}'.", format));
        }
        #endregion

Same methods

AttributeOperand::ToString ( ) : string
AttributeOperand::ToString ( INodeTable nodeTable ) : string