How do I use a string from one class to another?
with something like this, how can I use which is on unto ?
5 Replies
Normal Classes need an instance of them made, or, need to be static if only 1 version of them will exist across the system
You also only should be declaring the Main function on your entry point class, usually named Program
what should I declare on the class then?
This document might help ya out:
https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/properties
Properties - C# Programming Guide - C#
A property in C# is a member that uses accessor methods to read, write, or compute the value of a private field as if it were a public data member.
Sounds like you wanna be declaring properties on your Keys object 🙂
Thanks!