Amazon.com Widgets Browse by Tags - Brad Abrams - Site Home - MSDN Blogs

Brad Abrams

Design Guidelines, Managed code and the .NET Framework

Browse by Tags

Tagged Content List
  • Blog Post: .NET Framework 3.5 Namespace poster Updated

    A while back I blogged about the .NET Framework 3.5 Namespace poster... We made a few tweaks and updated it, including making it available in more formats. Download Links: Full XPS Split XPS PDF Tiled PDF Enjoy!
  • Blog Post: When there is no good name...

    I noticed a good debate going on the BCL blog (and now Krzysztof Cwalina’s blog ) about the naming of TimeZone2… Clearly the name brings back bad memories of the Win32\COM world …. As Krys points out there is not an easy answer here. Ideally we could come up with a meaningful name, but lacking that,...
  • Blog Post: Source code for CLR\BCL 2.0

    Great news... Rotor V2.0 ships ... I have found Rotor a great way to look at (mostly) the real source code from the CLR and BCL to see what is really going on under the covers.
  • Blog Post: You gotta love the little things in .NET Framework 2.0: File.ReadAllLines()

    I was recently reviewing some samples and I ran across one that made me really appreciate the work we did in BCL in .NET Framework 2.0... it maybe a very trivial thing, but it really improves the code. The code sample in question looked something like: if (autoCompleteWordList == null) ...
  • Blog Post: PowerCollections for V2.0 RTM

    Peter just posted a version of the Power Collections for V2.0 . I’d love to hear your feedback on these and the general model. Our goal with helping out Peter and Wintellect with power collections was to provide a first class extension of the existing collection classes that developers could use to take...
  • Blog Post: Environment.MachineName truncates after the first 15 characters

    When in a domain, a machine’s name is limited to 15 characters, but in a workgroup a machine name can be much longer. However, as one of our internal customers noticed, Environment.MachineName truncates after the first 15 characters. This is because Environment.ComputerName maps to NetBIOS name of the...
  • Blog Post: Cool Console Game

    You thought Space Invaders! was a cool sample, check out this one: It is a VB 2005 Console based game that rocks. http://www.heroicadventure.com/ It reminds me of sitting in my Dad’s lab at NCSU playing Castle on one of the consoles connected to a mainframe.. Anyone of a .NET port of Castle? ...
  • Blog Post: Showing Progress in a Console Windows

    Recently I needed to show some progress indicator on some long running console application. I recall the good old days of my college days with console based SMTP clients such as elm and pine … as I recall these clients showed progress via a simple ASCII spiner. I was impressed with how simple this...
  • Blog Post: Love to code? Love to take on big projects? this is the job for you!

    I am looking for a technical Program Manager to own some core parts of the platform including Reflection, Reflection.Emit, Delegates, etc. If you love to code, love working with developers, know how to really ship software you will love this job! Drop me a line if you are interested or might know...
  • Blog Post: Fun with Equality Follow up...

    Some great answers to my recent quiz … I particularly love the Nullable<T> and string interning usage.. very nice! The question again was: Find examples for each of the following: Question 1: x == y && !x.Equals(y) Question 2: x != y && x.Equals(y) Question 3:...
  • Blog Post: Fun with Equality

    Isn’t it funny how the “easiest” concepts can be the most complicated? A reader sent me the following quiz to help us appreciate the subtlies of equality in the system. Luckily he gave me the answers as well… ;-) Consider the following program: object x = new object (); object y = new object...
  • Blog Post: Manuscript drop SLAR Vol2

    We are done! Today the author team for the SLAR Vol2 dropped the manuscript to Addison-Wesley. I gotta say it took a lot longer than I expected to complete the original SLAR , but I am happy with where we ended up. This completes the CLI standard library set by covering Xml , Reflection and the net classes...
  • Blog Post: Now, that is what I call a blog day!

    Wow – I gotta say the BCL team knows how to have a blog day … In one day the team managed to post 23 meaty blogs on a whole range of topics… and I know that many entries got ½ done that will post out over the next week or so. No doubt great search engine bait for years to come. I’d love to hear your...
  • Blog Post: Pref: Convert.ToString() or Int32.ToString()

    A reader recently asked me if there is any perf difference between Convert.ToString() or Int32.ToString(). If you search for Convert.cs you will find the Rotor source for Convert.cs which helps answer the question… 02066 public static string ToString( int value) { 02067 return value.ToString(); 02068...
  • Blog Post: MSDN-TV on PowerCollections posted

    Peter and Krys are interviewed on MSDN TV recently about the PowerCollections project… Check it out Peter does a great job talking about the history and motivation of the project... I do hope that you find value in the way power collections extends System.Collections.Generics. As Peter says, the major...
  • Blog Post: Convert DateTime to ODBC time format

    Recent question on this side of the firewall… Want a datetime in this format? 2004-06-21T11:29:01.9346744-08:00 In .NET Framework 2.0: DateTime.ToString(“o”) ; In .NET Framework 1.0\1.1: DateTime.ToString(“yyyy-MM-ddTHH:mm:ss.fffffffzzz”);
  • Blog Post: About Int32's DontTouchThis()

    On a recent post , someone asked about the Int32.DontTouchThis() method.. I thought more folks would want to hear it... From int32.cs #if _DEBUG private void DontTouchThis() { m_value = 0; } #endif Our C# compiler has some great logic for detecting unused fields. Unfortunately the compiler didn’t special...
  • Blog Post: Why does IEnumerable<T> inherits from IEnumerable

    In the same vein as Krzysztof’s post on the reason why IEnumerator extends IDisposable , I thought I’d post this thoughtful response from Anders Hejlsberg on why IEnumerable<T> inherits from IEnumerable. Ideally all of the generic collection interfaces (e.g. ICollection<T>, IList<T>...
  • Blog Post: C# Quiz: Will that compile? [Answer]

    Some good comments on my recent quiz . Many of you are hitting on the right thing… The answer is no, this will not compile as is. This is because in V2.0 we added a new constructor to Thread that allows you to pass a ParameterizedThreadStart delegate. Jay responded to the thread with several good fixes...
  • Blog Post: Close and Dispose...

    Joe has a little quiz about Close() and Dispose() Trivia: Should you call Close() and/or Dispose() on a Stream?
  • Blog Post: More Generic parameter naming: We are listening AND changing

    I am sure many of you have been following the saga around naming of type parameters. We start with the simple K, V style naming and got flamed on the MSDN feedback site . We did lots of thinking about it internally and decided to change the guidelines in response to the feedback. And you guessed it,...
  • Blog Post: Whidbey Readiness Quiz: More on arrays

    Continuing examining new types in Whidbey… My goal is to motivate why we added Whidbey features through simple little quizzes. For today, let’s say you have several arrays of ints and you want to sum different sub ranges from each one (that is, a different start index and count for each array). For example...
  • Blog Post: Feedback on collection Interfaces

    Krzysztof is asking for your feedback on some changes we are considering for the generic collections interface… Please join in the conversation… IComaprer & IComparable Refactoring Proposal
  • Blog Post: Whidbey Readiness Quiz (Answer): Converting array values

    Well, lots of good responses … I can see this is going to be a hard group to stump. Nat nailed all the points quickly, even if it took him two posts to do it ;-)… there were several other great responses as well. Here is the code I came up with… I wanted to high light three things: The “funcational”...
  • Blog Post: Whidbey Readiness Quiz: Converting array values

    Thinking about my last little quiz , I realize there are thousands (literally) of new methods across the framework in Whidbey. How better to introduce\explain them than illustrating the problem they are intended to fix.. Let’s say you had this code: string [] inputValues = { "0" , "1" , "2" , "3" , ...
Page 1 of 4 (99 items) 1234