Microsoft.ResourceManagement.ObjectModel.RmAttributeValue.ToString C# (CSharp) Method

ToString() public method

Returns a T:System.String that represents the current T:System.Object.
public ToString ( ) : string
return string
        public override string ToString()
        {
            lock (this.attributeValues) {
                if (this.attributeValues.Count == 0) {
                    return @"RmAttributeValue.Null";
                } else if (this.attributeValues.Count == 1) {
                    return this.attributeValues[0].ToString();
                } else {
                    StringBuilder sb = new StringBuilder(this.attributeValues.Count);
                    foreach (Object v in this.attributeValues) {
                        sb.Append("{");
                        sb.Append(v);
                        sb.Append("}");
                        sb.Append(@" ");
                    }
                    // take off the last space
                    if (sb.Length > 0) {
                        sb.Remove(sb.Length - 1, 1);
                    }
                    return sb.ToString();
                }
            }
        }