Browse by Tags

All Tags » code (RSS)

DataSet Xml Deserialization Data / Schema Load Order

Note to self: When deserializing a dataset from xml, make sure to execute ReadXmlSchema before executing ReadXml, otherwise you'll have problem when you try casting your data into the correct data type. using System; using System.Data; using System...
Posted by Jimmy Chandra | with no comments
Filed under: ,

Back to Basic: C# Using statement, Return and IDisposable

In day to day coding, I found myself using a lot of disposable objects like DbConnection, Font, etc. And so, naturally, putting this code block inside a using statement is common sense. In theory, I know that when you use a using block in your code, your...
Posted by Jimmy Chandra | with no comments
Filed under: , , ,

Code Readability / Maintainability

Which is better? To show people that you can pack codes into a really really small space (i.e. a line) or spread them out and actually make it readable by others? I prefer the second approach since I know sooner or later when I'll be looking back...
Posted by Jimmy Chandra | 7 comment(s)
Filed under: ,