I have this line of code:
strKey &= Strings.StrDup(intKeySize - intLength, chrKeyFill)
What is the equivalent of this code in C#? I can't seem to find it.
I have this line of code:
strKey &= Strings.StrDup(intKeySize - intLength, chrKeyFill)
What is the equivalent of this code in C#? I can't seem to find it.
strKey += new String(chrKeyFill, intKeySize - intLength);
or
strKey = strKey.PadRight(intKeySize, chrKeyFill)
strKey += strKey.PadRight(strKey.Length + (intKeySize - intLength), chrKeyFill)