ToString() public method

public ToString ( ) : string
return string
        internal static string ToString(NamespaceList list)
        {
            if (list == null)
            {
                return null;
            }
            switch (list.Type)
            {
                case NamespaceList.ListType.Any:
                    return "##any";

                case NamespaceList.ListType.Other:
                    return "##other";

                case NamespaceList.ListType.Set:
                {
                    ArrayList list2 = new ArrayList();
                    foreach (string str in list.Enumerate)
                    {
                        list2.Add(str);
                    }
                    list2.Sort();
                    StringBuilder builder = new StringBuilder();
                    bool flag = true;
                    foreach (string str2 in list2)
                    {
                        if (flag)
                        {
                            flag = false;
                        }
                        else
                        {
                            builder.Append(" ");
                        }
                        if (str2.Length == 0)
                        {
                            builder.Append("##local");
                        }
                        else
                        {
                            builder.Append(str2);
                        }
                    }
                    return builder.ToString();
                }
            }
            return list.ToString();
        }
        internal static string ToString(NamespaceList list) {
            if (list == null)
                return null;
            switch (list.Type) {
            case NamespaceList.ListType.Any:
                return "##any";
            case NamespaceList.ListType.Other:
                return "##other";
            case NamespaceList.ListType.Set:
                ArrayList ns = new ArrayList();

                foreach (string s in list.Enumerate) {
                    ns.Add(s);
                }
                ns.Sort();
                StringBuilder sb = new StringBuilder();
                bool first = true;
                foreach (string s in ns) {
                    if (first) {
                        first = false;
                    }
                    else {
                        sb.Append(" ");
                    }
                    if (s.Length == 0) {
                        sb.Append("##local");
                    }
                    else {
                        sb.Append(s);
                    }
                }
                return sb.ToString();

            default:
                return list.ToString();
            }
        }