Geeks With Blogs
AngelEyes on .Net Tips, tricks and WTFs about Asp .Net, SQL Server and the likes. January 2008 Entries
Example: how to sort and get top iNumOfRecords from a DataTable, using a DataView
DataView dvSortTotalUpdates = new DataView(); dvSortTotalUpdates = dtAllUpdates.DefaultView; dvSortTotalUpdates.Sort = "UploadDate"; DataTable dtGetBySize = dtAllUpdates.Clone(); for( int i = 0; i < iNumOfRecords; i++ ) { dtGetBySize.ImportRow(dvSor... } return (dtGetBySize); ......

Posted On Wednesday, January 30, 2008 6:49 PM

Using a MemoryStream with GZipStream
This is a very subtle yet annoying bug. And it's hard to find. Fortunately, I found help on the BCL Team Blog. Just in case (I've had posts that I linked to disappear in the past) I'll copy here what they say: We’ve seen cases where our customers have run into issues when using a MemoryStream with GZip compression. The problem can be frustrating to debug and I thought I’ll blog about it in the hope that others would avoid a similar issue. The code for this looks like this; Byte[] compressedBuffer; ......

Posted On Thursday, January 24, 2008 6:44 PM

Copyright © AngelEyes | Powered by: