C# - Method with an enum as parameter cannot select when using the method.

  • Thread starter Thread starter Aron29
  • Start date Start date
A

Aron29

Guest
Good Day Everyone

I created a class that has method, that is calling the enum as a parameter, check my codes below.


public enum EncDecType
{
Encrypt,
Decrypt,
}

public string BasicEncryptDecrypt(string getString, EncDecType GetType)
{
some codes.....
}






but when I'm using the method shows like this.



When I put a "ref" it shows like this



I was a VB.Net developer and I'm converting my codes to C#, but this one becomes a challenge with me, I hope someone can help me on this


Thanks and regards

Continue reading...
 
Back
Top