How to call a Class in a Windows Console App?
tutu10 Apr 25, 2019
Hello All

Haven't touched C# or VS for over 6 years now, now I got a C#Class that decrypts an important piece of information that I need, but I can't make a very simple C# Windows console work. All I want is a Windows Console to accept the encrypted string, then return the decrypted string on screen. I got this working, but I can't call the C# Class method DECRYPT correctly for it to work.

Please can someone please advise, I know this is really simple but I not sure if i need references to the other class or anything else.

Can anyone please help?
lindagriffithh Jul 6, 2019
Did you try this way:

string encryptedString = SomeStaticClass.Encrypt(sourceString);

string decryptedString = SomeStaticClass.Decrypt(encryptedString);

?
While you're here, please consider supporting GamingOnLinux on:

Reward Tiers: Patreon. Plain Donations: PayPal.

This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register


Or login with...
Sign in with Steam Sign in with Google
Social logins require cookies to stay logged in.