When creating multiple classes I can not use variables

using Microsoft.Win32; namespace ZenosMiner { class First { string Simple; Simple = "Не могу использовать переменную"; } class Second { string Simple; Simple = "Не могу использовать переменную"; } } 

    1 answer 1

     public class First { public string Simple = "Mогу инициализировать переменную"; public void SomeMethod() { Simple = "Mогу присвоить значение переменной"; } public string SomeOtherMethod() { return Simple; // Mогу использовать переменную } // Simple = "Не могу поместить прямо в тело класса"; }