• /r/csharp
  • Jr to Mid-level transition

    For the past 4 years I’ve been working on two projects maintaining some systems, not c# or asp.net. 40% of my time I have worked on developing separate applications in c#/asp.net. I would develop these programs around what’s need, windows client side, a bit of web service interaction and sql data retrieval.. Anyways, it’s job […]

  • /r/csharp
  • Multi-Threading: Need to set and get Thread Local variables, not understanding the documentation.

    I’m working on a small multi-threading application. I need each thread to maintain it’s own local “Price” variable, and then check that to see if it’s lower than a shared “LowPrice” variable. I have created a Thread Local variable as follows: ThreadLocal<Int32> nextPrice = new ThreadLocal<Int32>(); Now, I can’t just set nextPrice equal to some […]

  • /r/csharp
  • Cake build IsDependentOn

    When using Cake to build, does IsDependentOn respect the order I declare dependencies in? As a minimal example, is: Task(“A”) .Does(() => { Information(“Running task A!”); }); Task(“B”) .Does(() => { Information(“Running task B!”); }); Task(“Default”) .IsDependentOn(“A”) .IsDependentOn(“B”) .Does(() => { Information(“Hello World!”); }); RunTarget(target); guaranteed to run Task A before Task B? I know […]