Possible Duplicate:
What does the @ symbol before a variable name mean in C#?
I have been coding in C# for about a year now, and recently i came across the following
public bool OnPreUpdate(PreUpdateEvent @event)
As you can see event has an ‘@’ sign before it, is this just to prevent the compiler detecting it as the event type, therefore does ‘@’ gets treated as any other text or is there a special meaning to it?
An
@sign lets you use C# keywords in identifiers; if you remove the@then you’ll get a syntax error.