Что за уродская запись? (ASP.NET, C#)

    Date: 11/28/06 (Code WTF)    Keywords: no keywords

    if("-1".Equals(e.CommandArgument) && "Insert".Equals(e.CommandName))
    {
        ...
    }


    почему бы не написать
    if(e.CommandArgument.Equals("-1") && e.CommandName.Equals("Insert"))

    или даже
    if(e.CommandArgument.Equals("-1") && e.CommandName == "Insert")

    Source: http://community.livejournal.com/code_wtf/59428.html

« Точность... || boost ebash-it »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home