System.Data.SqlClient.TdsParser.CopyStringToBytes C# (CSharp) Method

CopyStringToBytes() private static method

private static CopyStringToBytes ( string source, int sourceOffset, byte dest, int destOffset, int charLength ) : void
source string
sourceOffset int
dest byte
destOffset int
charLength int
return void
        private static void CopyStringToBytes(string source, int sourceOffset, byte[] dest, int destOffset, int charLength)
        {
            Encoding.Unicode.GetBytes(source, sourceOffset, charLength, dest, destOffset);
        }
TdsParser