Amazon.com Widgets MSDN Blogs

Brad Abrams

Design Guidelines, Managed code and the .NET Framework
Posts
  • Brad Abrams

    Hashtable.Clear thread-safety?

    • 1 Comments
    Q: Is it safe for a single writer to call Hashtable.Clear() with multiple concurrent readers? A: (from the developer that owns Hashtable) It depends on what you want. Clear() will not cause a hashtable to be inconsistent state, so hashtable will...
  • Brad Abrams

    On .NET DJ Reader's Choice

    • 3 Comments
    Well, I see Yasser and Ingo' s are linking to their books on .NETDJ Readers' Choice , so I thought I’d join them… I had the pleasure of doing the Libraries chapter and part of the intro for Programming in the .NET Environment . I’d love to...
  • Brad Abrams

    Honest, it doesn't rain all the time..

    • 3 Comments
    I wasn’t sure recruiting via blogs was an acceptable thing to do our not, but if Don does it , it must be OK ;-) So here goes…. I have an opening for a Program Manager on my team designing features for the Base Class Libraries and helping me with...
  • Brad Abrams

    Implementing IEnumerable

    • 6 Comments
    Hot off the presses... What do you think? ..brad Implementing IEnumerable Almost all collections expose some way to enumerate elements it contains. The IEnumerable interface encapsulates this notion such that common facilities can be built...
  • Brad Abrams

    path to the executable

    • 2 Comments
    Another one that I have seen come up before... Q: How to find that path to the executable I am running in? A: Assembly.GetExecutingAssembly().Location
  • Brad Abrams

    Strings and IsNullOrEmpty

    • 8 Comments
    Jesse aks: >Tired of doing this: "if(s == null || s == String.Empty)"... Yea, we have heard that request before... here is a method we are looking at adding a the Whidbey release of the .NET Framework on the System.String class. ...
  • Brad Abrams

    VS 2003 IDE and .NET Framework 1.0

    • 0 Comments
    I actually had this question a couple of weeks ago when I was using an RC of VS 2003 to build an application for my wife who only has V1.0 of the Framework on her machine. She doesn't run beta software ;-). So when I saw it come across the internal...
  • Brad Abrams

    Implementing ICloneable

    • 10 Comments
    I was doing a little work on the Design Guidelines document tonight and I noticed this section that we added recently. I thought I'd post it here for your comments. Where are you using ICloneable today? Do you agree with this suggestion? 1...
  • Brad Abrams

    Why Strong Naming?

    • 2 Comments
    More from inside the walls: Q: Does anyone know why we’ve created two ways to sign the components? The certificate form covers all the needs I can see. I wonder why we have a separate “strong naming” manner to do signing that doesn’t cover all the...
  • Brad Abrams

    And the Winner is..

    • 4 Comments
    Looks like David Stone one out by under a minute… If John St. Clair had only hit “add” a little faster… David and John both hit the nail on the head.. here is David ’s response: Ø No... because in the second Format method, the format param...
  • Brad Abrams

    Support for /3gb in the CLR

    • 0 Comments
    It is true that the CLR in V1.1 does support /3gb memory address space option... Here is a quote from QA person that would know... 1.1 does support /3gb. (to use, mark your images as 3gb aware using imagectl or linker options. The only image that...
  • Brad Abrams

    Quick C# Quiz

    • 7 Comments
    Will this code throw an AgrumentNullException? and why? string firstName = null; String.Format (“{0}”, firstName); Here is the for code String.Format , if that helps… public static String Format(String format, Object arg0) { return...
  • Brad Abrams

    On Dispose

    • 2 Comments
    Wallym has some good thoughts on the importance of calling dispose, which reminded me we have a complete whitepaper on how to implement dispose correctly... Love to have your feedback on it. White paper on Dispose
  • Brad Abrams

    More on BCL type names

    • 3 Comments
    Jeff read my recent post and suggested I include ALL his reasons for using the BCL name... Here are they are... 1. Devs think there is a difference between String and string or int and Int32 and there isn’t. For example, I’ve run into some people...
  • Brad Abrams

    Always more to learn

    • 0 Comments
    I am reviewing some samples for an upcoming reference book. The samples are for classes I know very well. I designed or helped design most of them. But I always have something to learn… Here is one that I thought was pretty cool… prints out the short...
  • Brad Abrams

    To use the BCL type names or not?

    • 3 Comments
    Jeffrey Richter and I have an on going argument that I thought you’d like to chime in on. In samples, books, etc should we use the BCL type names (Int32, String, Single, etc) or programming language specific type names such as in C# (int, string...
  • Brad Abrams

    Conversion Operators

    • 3 Comments
    One of my many jobs here at MS is helping out with the .NET Framework Design Guidelines Document. Tonight I had to make a small tweak to a guideline I added last week so I thought while I was in there I would post it here to see if folks had comments...
  • Brad Abrams

    More on Changes for V1.1

    • 1 Comments
    We wrote a little program that does a "smart diff" of the .NET Framework... Internally we use it to watch out for breaking changes or making stuff public accidentally . Anyway, here is the output of the tool for V1.0 to V1.1 http://www.gotdotnet...
  • Brad Abrams

    AppDomains for sandboxing/robustness

    • 2 Comments
    Another internal thread I thought i'd share... Q: I want to sandbox objects of certain types that will be running in my process so that if anything in these objects crashes for any reason, code in the other objects continue to execute. I’m assuming...
  • Brad Abrams

    Are assignment of 4-byte quantities guaranteed atomic in the CLR?

    • 6 Comments
    We had a little thread on this internally today and I thought it interesting enough to share here. I am just experimenting here – is this type of thing useful? Q: If I do simple Int32 assignment to a shared variable in a CLR multi-threaded app,...
  • Brad Abrams

    More on the Console form the internet zone

    • 2 Comments
    In a commnet on one of my posts , Brad, Guy of .NET asks why we would turn this off. Well, bottom line it is that we can't come up with a meaningful scenario for using the console from semi-trust and there is clearly some level of risk is exposing...
  • Brad Abrams

    With V1.1 of the Framework shipping

    • 8 Comments
    I though i'd post a couple of links I have found useful.. DennisAn wrote a great whitepaper on how to target different runtime versions... http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetdep/html/sidexsidenet.asp And if you...
  • Brad Abrams

    Using Console from the internet zone

    • 8 Comments
    Does anyone have a scenario where you are using System.Console from the internet zone? We are trying to understand if we should continue to enable using Console from the internet zone in Whidbey. Are there any scenarios that benefit from using Console...
  • Brad Abrams

    The CLI\C# gets ISO blessed

    • 0 Comments
    Very cool! ISO has always been the goal... nice to see we made it. http://msnbc-cnet.com.com/2100-1007-995108.html?type=pt&part=msnbc&tag=alert&form=feed&subj=cnetnews
  • Brad Abrams

    Why Blog

    • 4 Comments
    Why Blog they ask… I believe that Microsoft has benefited greatly from the enormous community support that is available for the .NET Framework. I have been thinking for a while about how I can best contribute to that community. I spend some time...
Page 2 of 2 (50 items) 12