in

B# .NET Technical Community Homepage

Bart De Smet's online technical community

Browse by Tags

  • Answers to C# Quiz - Need for speed

    You can find the original quiz over here . There have been lots of great answers, thanks to all readers! The bottom line however is that one should be careful when doing performance optimizations; in much cases the code doesn't become cleaner (even the opposite). One shouldn't trade design guidelines...
    Posted to B# .NET Blog (Weblog) by bart on 03-13-2007
  • Virtual vs. non-virtual method calls from a perf perspective

    Last week, I was doing an introduction session on C# for students with a Java background. There were quite some interesting discussions around the why and how of properties, indexers, operator overloads, events, delegates, attributes, etc compared to "equivalents" in Java. I won't repeat this discussion...
    Posted to B# .NET Blog (Weblog) by bart on 02-26-2007
  • HttpListener for dummies: a simple "HTTP Request Reflector"

    Probably you did know already that Windows XP SP2, Windows Server 2003 and Windows Vista have a component called http.sys to handle HTTP requests. Basically, http.sys is a kernel-mode listener that has intrinsic knowledge of HTTP. Different parties can register with this listener to have requests forwarded...
    Posted to B# .NET Blog (Weblog) by bart on 02-22-2007
  • Windows Vista - Introducing TxF in C# (part 3) - CreateFileTransacted demo

    In November last year, I blogged about TxF: Windows Vista - Introducing TxF in C# (part 1) - Transacted file delete Windows Vista - Introducing TxF in C# (part 2) - Using System.Transactions and the DTC A few days ago I received a mail from a reader of my blog who had an issue with a similar CreateFileTransacted...
    Posted to B# .NET Blog (Weblog) by bart on 02-21-2007
  • Fun with generics - about the new() constraint and constrained virtual calls

    Recently, I was playing a bit with generics in CLR 2.0, focusing on some low-level aspects. Consider the following fragment (don't worry about the bigger context from which this sample is derived - maybe some posts about the real intent of my "private investigation" will follow later): 1 using System;...
    Posted to B# .NET Blog (Weblog) by bart on 02-20-2007
  • Inlining - yes, it happens

    Some time ago I was giving a small lecture on .NET development talking about some CLR internals (largely based on SSCLI). During the talk on the JIT, the question of inlining popped up ( does it happen? ). This post shows inlining in action based on a little perf measurement. For more details, visit...
    Posted to B# .NET Blog (Weblog) by bart on 02-19-2007
  • Sandcastle December 06 CTP

    I blogged about Sandcastle in the past, over here . You can grab the December 06 CTP from the Microsoft-website now. Take a look at the Sandcastle MSDN Blog too.
    Posted to B# .NET Blog (Weblog) by bart on 12-10-2006
  • ILASM - #define and .typedef

    Two little-known features of ILASM (the IL assembler for .NET) are #define and .typedef which can reduce typing significantly, just as these do in a classic programming language. Often people do "round-tripping", i.e. they write an application in C#, ildasm it, make some slight modification...
    Posted to B# .NET Blog (Weblog) by bart on 11-29-2006
  • Windows Vista - Introducing TxF in C# (part 2) - Using System.Transactions and the DTC

    Introduction In the previous TxF related post you saw how to interact with the KTM in a very low level way through interop. Basically, we did deal with the transaction directly instead of relying on the System.Transactions namespace. In today's post we'll deal with the same use case, a transactional...
    Posted to B# .NET Blog (Weblog) by bart on 11-19-2006
  • Which processes are running managed code and which version? (C# code snippet)

    A question on the discussion groups a couple of weeks ago: how to find out which processes are running managed code, and which version of the CLR? Here's the answer: using System; using System.ComponentModel; using System.Diagnostics; class Proc { public static void Main() { Console.WriteLine( "...
    Posted to B# .NET Blog (Weblog) by bart on 11-18-2006
Page 1 of 7 (63 items) 1 2 3 4 5 Next > ... Last ยป
Powered by Community Server (Non-Commercial Edition), by Telligent Systems