jaredpar's WebLog

Code, rants and ramblings of a programmer.
Posts
  • jaredpar's WebLog

    DebuggerNonUserCode and Properties

    • 1 Comments
    DebuggerNonUserCode is an attribute that tells the debugger that the target item is not code typed by the user. It can be added to classes, structs, methods, constructors and properties. The benefits of this attribute is that it allows the compiler and...
  • jaredpar's WebLog

    C++ Frustration: Unions and Constructors

    • 2 Comments
    Using PreFast internally we recently came across a class of bugs. In several places we were using uninitialized structures as local variables. The error came about because the types in question had no default constructor. For instance take the following...
  • jaredpar's WebLog

    C# Type inference change for Orcas

    • 5 Comments
    While playing around with a batch of Orcas code recently I found a welcome change to the C# type inference rules for Orcas. The return type of a generic delegate can now be inferred from the actual return values. Here is some sample code demonstrating...
  • jaredpar's WebLog

    Closures in VB Part 6: Limitations

    • 0 Comments
    For previous articles in this series please see ... Part 1: Introduction Part 2: Method Calls Part 3: Scope Part 4: Variable Lifetime Part 5: Looping As powerful as closures are in the language they do have a few limitations. We worked hard in Orcas to...
  • jaredpar's WebLog

    PowerShell Simple Tricks: Number to Hex

    • 0 Comments
    When investigating bugs a lot of times you start out with an unfamiliar HRESULT value. Searching the web will give you a hint of what the problem is and the real search can begin. If you get this error out of a log file it can come in a base 10 value...
  • jaredpar's WebLog

    Expression Evaluator Sample Released

    • 0 Comments
    The new version of the Visual Studio 2008 Beta2 SDK was just released. Among the many new samples is a basic expression evaluator sample. This sample shows you how to add basic debugger support to a managed language in Visual Studio. This is the first...
  • jaredpar's WebLog

    Detecting if you are an Admin

    • 0 Comments
    This came up on an internal alias. A customer wanted to know how to determine if there were running as an admin in a tool. Below is a sample program that will print out whether or not you are the machine admin or a member of the machine administrators...
  • jaredpar's WebLog

    Coding Quiz: Anonymous Type Types

    • 3 Comments
    Question: How can you create a variable in VB which is typed as an anonymous type but not actually create an instance of that type? Answer in comments. Note, doing this is not particularly useful it came about while I was playing around with a feature...
Page 1 of 1 (8 items)

August, 2007