This project is read-only.

Unneeded BlockCopy in the WebResourceFilter

Topics: Business Logic Layer
Aug 15, 2009 at 10:23 PM
In the WebResourceFilter, in the method 'Write', there are the following lines:

byte[] data = new byte[count];
Buffer.BlockCopy(buffer, offset, data, 0, count);
string html = System.Text.Encoding.Default.GetString(buffer);

There is no actually needs for the BlockCopy there.
Oct 6, 2009 at 3:27 AM

Thanks -- the first two lines are now eliminated (BE