I'm rebuilding a library programmed in C # and need help with a Switch statement, I have the following code snippet using the <PrivateImplementationDetails> .ComputeStringHash () function generated during compilation. My question is, what is the function that I should use? Will I get the same result using sss.GetHashCode()?
Currently the error that is presented to me is Can not resolve symbol 'PrivateImplementationDetails'.
switch (<PrivateImplementationDetails>.ComputeStringHash(sss)) {
case 0x1315fc:
if (sss == "ASD") {
break;
}
goto Label_0105;
case 0x15c3dc:
if (sss == "JKL") {
break;
}
goto Label_0105;
}