I\'m beating my head against the wall pretty severely with this. I have several variables inside a C# console application that I would like to re-use. However, I cannot for th
you should define public property or public field
public class Student { public string Name {get;set;} }
and when you want to pass value you can assign this value to property
Student st = new Student(); st.Name = "your value";
or you can use class constructor too.