Browse by Tags

Tagged Content List
  • Blog Post: Dispose Pattern and Object Lifetime [Brian Grunkemeyer]

    The Dispose pattern is the way to think of object lifetime in the .NET Framework. Admittedly, it can be a little subtle. A customer asked a question on our MSDN documentation for implementing the Dispose pattern . I’ll get to this question, but let’s review some basics. Basics of Disposing, Finalizing...
  • Blog Post: BCL Refresher: List<T> Predicates [Inbar Gazit]

    This time I’m going to focus on one class in this blog post. System.Collections.Generic.List<T> contains some special methods that exist on this type. Those methods take a System.Predicate which is essentially a delegate that allows us to filter based on a certain criteria. This means we can...
  • Blog Post: BCL Refresher: Converting the Non-Generic Collections [Inbar Gazit]

    As you know generics were only introduced to the .NET Framework in version 2.0. Originally we had a lot of collections in the System.Collections namespace that can store objects. In version 2.0 we added the System.Collections.Generic namespace to support generic collections that can store any specific...
  • Blog Post: BCL Refresher: DateTime.ToUniversalTime returns MaxValue/MinValue on overflow [Josh Free]

    DateTime. ToUniversalTime converts the value of the current DateTime object to Coordinated Universal Time (UTC). When the converted value is either too large or too small to fit into a DateTime object then MaxValue or MinValue is returned, respectively. Returning MaxValue and MinValue for these overflow...
  • Blog Post: BCL Refresher: Floating Point Types - The Good, The Bad and The Ugly [Inbar Gazit, Matthew Greig]

    So here is another BCL refresher on the topic of floating point types in the BCL. Believe it or not, we have 3 different floating point types: Single (float) Double and Decimal. Each has their own characteristics and abilities and so let’s try to learn a little bit about them and what we can do with...
  • Blog Post: BCL Refresher: System.Diagnostics.Debug class [Inbar Gazit]

    Many people told me that they would like to see more blog entries. Not only about the new cool stuff that's coming but also about the old established stuff that's maybe a tad forgotten. So, with the BCL refresher series we're going to go back to talk about existing APIs that are useful and remind you...
Page 1 of 1 (6 items)