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;
}
}
Useful for events:
var @event = new Event(...);
No comments:
Post a Comment