c# - Why I am allowed to place and amp in this code? -


i have sample code:

 directoryentry _entry = new directoryentry(                     connectionstring,                     this.userprinicipalname,                     this.password,                     authenticationtypes.securesocketslayer & authenticationtypes.encryption); 

how come allowed make amp in last parameter? use java have never seen kind of witchcraft before , new c# - can tell me , how allowed it?

thanks in advance

nobody else has pointed out, but

authenticationtypes.securesocketslayer & authenticationtypes.encryption 

is bit weird because securesocketslayer , encryption both 2.

so might put 1 or other, not both...

if were different , did want combine them, should use or operator, |, not , operator, &.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -