从VS2015开始,如果我执行了public static byte[] getSecureMungedAddress() {
byte[] address = null;
try {
address = getMacAddress();
} catch (SocketException e) {
// address will be set below
}
if (!isValidAddress(address)) {
address = constructDummyMulticastAddress();
}
byte[] mungedBytes = new byte[6];
SecureRandomHolder.INSTANCE.nextBytes(mungedBytes);
for (int i = 0; i < 6; ++i) {
mungedBytes[i] ^= address[i];
}
return mungedBytes;
}
→Surround With
代码段,则会创建此语法:
#region
之前,在VS2013及更早版本中它会这样做:
#pragma region MyRegion
#pragma endregion
知道我怎么能把它变成没有编译的版本?