Browse by Tags

All Tags » C# (RSS)

.NET: Passing a DataSet through the ExtendedProperties of another DataSet

Sometimes you find the need to pass more than one DataSet as the result of a routine/function. Although you can use reference parameters for doing so, there's another approach. You can pass additional DataSets by adding them to the ExtendedProperties...
Posted by raistlin | with no comments
Filed under: , ,

.NET: How to determine if a string comes before another string based on the dictionary order

Language: C# Usually string comparisons are needed just to determine the equality (or inequality) of 2 strings. However, there are times when determining inequality isn't the end in itself. Sometimes a developer also needs to know if a particular...
Posted by raistlin | with no comments
Filed under: , ,

.NET: Performing case-insensitive string comparison

Language: C# Performing string comparisons can be considered as one of the "common" tasks that a programmer needs to do and, more often than not, the comparisons need to be case-insensitive. The common method taught (or learned, as the case...
Posted by raistlin | 3 comment(s)
Filed under: , ,

.NET: How to determine if a variable can be converted to a particular type

Platform: .NET Framework Language: C# Using reflection, we can determine if a particular variable can be converted to another data type. This is useful if you're not sure if the conversion that you're about to perform is valid or not. Although this can...
Posted by raistlin | 6 comment(s)
Filed under: , ,