What is @namespace field in C# class?

Posted by MainMa on Stack Overflow See other posts from Stack Overflow or by MainMa
Published on 2010-05-12T11:23:42Z Indexed on 2010/05/12 11:34 UTC
Read the original article Hit count: 202

Filed under:
|
|
|

Hi,

I'm browsing the source code of StyleCop, and I found a curious thing:

/// <summary>
/// The namespace that the rule is contained within.
/// </summary>
private string @namespace;

// [...]

internal Rule(string name, string @namespace, string checkId, string context, bool warning) : this(name, @namespace, checkId, context, warning, string.Empty, null, true, false)
{
    Param.Ignore(name, @namespace, checkId, context, warning);
}

What is this thing? Is it just a simple field where at-sign is used to indicate that it is a field, and not a namespace keyword? If so, may at-sign be used for any reserved word (for example @dynamic, @using, etc.)?

© Stack Overflow or respective owner

Related posts about c#

Related posts about reserved-words