Demonstrate an @ identier : At « Language Basics « C# / C Sharp






Demonstrate an @ identier

Demonstrate an @ identier
// Demonstrate an @ identier. 
  
using System;  
   
public class IdTest {   
  static void Main() {   
    int @if; // use if as an identifier 
 
    for(@if = 0; @if < 10; @if++) 
      Console.WriteLine("@if is " + @if); 
  }   
}


           
       








Related examples in the same category

1.White space is preserved with verbatim strings.
2.The @ prefix turns off the processing of escape characters.