1. Список говнокодов пользователя anton7501

    Всего: 1

  2. C# / Говнокод #21648

    −21

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    public string GetFactualAddress()
            {
                string re = (factualAddressCountry ?? ((object)"")).ToString() + "," + factualAddress.zip + "," + Kladr.GetFullName(factualAddressRegion) + "," + Kladr.GetFullName(factualAddressArea) + "," + Kladr.GetFullName(factualAddressCity) + "," + Kladr.GetFullName(factualAddressSettlement) + "," + Kladr.GetFullName(factualAddressStreet) + "," + (factualAddress.shortStreet ?? "").Trim() + "," + factualAddress.building + "," + factualAddress.office;
                re = Regex.Replace(res, "[, ]{2,}", ", ").Trim(',', ' ');
                return re;
            }

    Нашел в одном старом месте проекта.

    anton7501, 06 Ноября 2016

    Комментарии (0)