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
Post a Comment