C# is mostly relieved from the stress of exception safety, thanks to garbage collections. But in some cases it must be handled. A common case is factories creating more than one IDisposable object. Coming from a C++ background, the notion of exception safety is natural to me. For a C++ developer exception safety is as… Continue reading Exception Safety and IDisposable Factories
Author: Anders Abel
Agile is not Unplanned
Agile focus on flexibility and the ability to change directions during the project, but it is not the same as working unplanned and rushing to do anything that comes up. For some people new to agile methodologies, this might be a bit of a surprise. An experienced project manager, that at the time was new… Continue reading Agile is not Unplanned
Sample Code now on GitHub
All the code samples on this blog have been tested and run before publishing. The sample code is now available on GitHub. Most of the time when I write code for the blog I do that in a number of test projects that I do have. So far I’ve kept them in an svn repo,… Continue reading Sample Code now on GitHub
Examining the Generated cs File for a cshtml View
Cshtml files are compiled by Razor into C# files. To track down some errors (or just to understand Razor) it might be useful to examine the C# code generated. For testing I created a small Razor view in an MVC4 project. @{ string someString = "somestring"; var someBool = false; //- } <h1>Header</h1> … Continue reading Examining the Generated cs File for a cshtml View
All .NET Identities now Derive From ClaimsIdentity
With .NET 4.5 a new base class for identities was introduced: the ClaimsIdentity class. The reason is that Windows Identity Foundation has been fully incorporated into the .NET framework and it has really improved the .NET identity model. What is a Claim? This might be a stupid question – but I’ve had a hard time… Continue reading All .NET Identities now Derive From ClaimsIdentity