RhymesWithOrange is correct, although I don't usually like using that many brackets... Confuses my little mind
Code:
byte[] sid;
sid = (byte[])groupSid;
Type-casting can be done without the additional brackets, unless of course you're trying to expose properties of the type-casted object (or go through the array) in which case you would need the brackets:
Code:
byte[] sid;
sid = ((byte[])groupSid)[0]; // This will access the 0th element of the byte array
... And there was my totally unneeded explanation for the day
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.