Structure type constant value
Posted on 2004-08-25
I am trying to rewrite a structure type from VB to C#.
This is the original VB code and is working fine.
Public Structure Struct_Str
Const Str1 As String = "First String"
Const Str2 As String = "Second String"
But this C# code gives me an "inaccessible due to its protection level" error.
public struct Struct_Str
const string Str1 ="First String";
const string Str2 ="Second String";
public void test()