Join us on our own very special Reddit: /r/Linuxers
How to call a Class in a Windows Console App?
tutu10 commented on 25 April 2019 at 1:16 pm UTC

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 commented on 6 July 2019 at 8:48 am UTC

Did you try this way:

string encryptedString = SomeStaticClass.Encrypt(sourceString);

string decryptedString = SomeStaticClass.Decrypt(encryptedString);

?

You need to Register and Login to comment, submit articles and more.


Or login with...

Livestreams & Videos
None currently, submit yours here!
Popular this week
View by Category
Contact
Latest Comments
Latest Forum Posts