¡@

Home 

c# Programming Glossary: authenticationmethod

C# String enums

http://stackoverflow.com/questions/424366/c-sharp-string-enums

String enums I have the following enumeration public enum AuthenticationMethod FORMS 1 WINDOWSAUTHENTICATION 2 SINGLESIGNON 3 The problem however.. however is that I need the word FORMS when I ask for AuthenticationMethod.FORMS and not the id 1. I have found the following solution.. Then I can add this attribute to my enumerator public enum AuthenticationMethod StringValue FORMS FORMS 1 StringValue WINDOWS WINDOWSAUTHENTICATION..