October 7, 2009

@ Character In Identifiers

The c# language specification says The "@" character is allowed as a prefix to enable keywords to be used as identifiers.. Hence the following is possible:
public class Case {};

public class XXXX
{
    private Case m_Case;

    public XXXX(Case @case)
    {
        m_Case = @case;
    }
}

No comments: