Hi I have the below code in objective C and i stuck on converting the 'initWithBytes' line to c#.Tried to found equivalent of this in xamarin documentation but could not find it.
int serviceUUID, characteristicUUID
UInt16 s = [self swap:serviceUUID];
UInt16 c = [self swap:characteristicUUID];
NSData *sd = [[NSData alloc] initWithBytes:(char *)&s length:2];
NSData *cd = [[NSData alloc] initWithBytes:(char *)&c length:2];
CBUUID *su = [CBUUID UUIDWithData:sd];
CBUUID *cu = [CBUUID UUIDWithData:cd];
Any Help would be appreciable. Thanks