Yes, you can if you really want to:
private string @long;
The actual name of the variable (as reported by reflection etc) is just long
; the @
sign tells the compiler to ignore the fact that it’s also a keyword.
I would very strongly advise against this, however.
More Related Contents:
- How do I get the contents of a JSON file I added in the StartUp method to use it in one of my actions?
- Why File.ReadAllLinesAsync() blocks the UI thread?
- Replace first occurrence of pattern in a string [duplicate]
- Load local HTML file in a C# WebBrowser
- What Advantages of Extension Methods have you found? [closed]
- How to choose between private and protected access modifier to encapsulate members between base and childs classes?
- Calling a SOAP service in .net Core
- How can I catch a 404?
- Cannot convert lambda expression to type ‘System.Delegate’
- A call to PInvoke function ‘[…]’ has unbalanced the stack
- Is it possible to execute an x86 assembly sequence from within C#?
- Random entry from dictionary
- How do I automate SAP GUI with c#
- Comparing 2 objects and retrieve a list of fields with different values
- Format date in C#
- Troubleshooting “program does not contain a static ‘Main’ method” when it clearly does…?
- Start android service from Unity3D code
- @Html.HiddenFor does not work on Lists in ASP.NET MVC
- Can I use extension methods and LINQ in .NET 2.0 or 3.0?
- Json.Net adding $id to EF objects despite setting PreserveReferencesHandling to “None”
- Getting files by creation date in .NET
- C# rotate bitmap 90 degrees
- Force to close MessageBox programmatically
- How to modify IConfiguration natively injected in Azure Functions
- Why are private virtual methods illegal in C#?
- ASP.NET – AppDomain.CurrentDomain.GetAssemblies() – Assemblies missing after AppDomain restart
- C# Regex Issue “unrecognized escape sequence”
- VS 2015 SSIS Script Tasks cannot be debugged
- SSIS Script Task cant find reference to assembly
- PostMessage WM_KEYDOWN send multiply keys?