G
GhostInAK
Hello Brian,
I'm so used to working in one language I forget about the others sometimes.
Ah well. It's still a pet peeve, but I retract my earlier comment about
shooting someone. Bracketed keywords as identifiers is a small price to
pay for language interop.
-Boo
I'm so used to working in one language I forget about the others sometimes.
Ah well. It's still a pet peeve, but I retract my earlier comment about
shooting someone. Bracketed keywords as identifiers is a small price to
pay for language interop.
-Boo
The problem is using VB.NET keywords in a class library written inChris said:In this case, only VB keywords. You can use C# and C++ keywords in
VB as identifiers without any special syntax (other than those that
happen to match VB).
another language which you use in VB.NET. Consider the following
example.
// Compiled in C#
namespace Example
{
public class Foo
{
public static int New = 0;
}
}
' Compiled in VB.NET
Imports Example
Module Module1
Sub Main()
Console.WriteLine(Foo.New) ' Error
Console.WriteLine(Foo.[New]) ' Correct
End Sub
End Module
C# uses the @ prefix.How is this done in C#?