I have this sample code:
DirectoryEntry _entry = new DirectoryEntry(
connectionString,
this.userPrinicipalName,
this.password,
AuthenticationTypes.SecureSocketsLayer & AuthenticationTypes.Encryption);
How come I am allowed to make the amp in the last parameter? I am use to java where I have never seen this kind of witchcraft before AND I am new to C# – So can anyone tell me what it is and how I am allowed to do it?
Thanks in advance
Nobody else has pointed this out, but
is a bit weird because SecureSocketsLayer and Encryption are both 2.
So you might as well just put one or the other, not both…
If they were different and you did want to combine them, you should use the OR operator, |, not the AND operator, &.