In this post, I want to show you two ways to opt out of serialization for a particular object field or property.
Ignoring Fields and Properties During Serialization
When you are serializing an object using Json.NET, all its public fields and properties will be serialized by default.
If you want to exclude certain members from serialization, you can place the JsonIgnoreAttribute on them:
public class BlogPost
{ ...
Continue reading »
Today, I finally got rid of a pain point that has been annoying me for a while: keeping in sync the IDE settings on my two development machines. Since I use a desktop when I'm at home and a laptop when I'm at work, I now let Dropbox do the heavy lifting of synchronizing my settings files between multiple PCs.
Here's a quick run-down on how to set up Visual Studio and ReSharper to store their settings within Dropbox.
Cr ...
Continue reading »
People seem to have a strong opinion on regular expressions. While some love them, others avoid using them under all circumstances. Personally, I enjoy writing regular expressions, which is why I want to point out to you Regex Tuesday, a compelling way to improve your regular expression skills.
A Weekly Regular Expression Challenge
Every Tuesday, a new challenge is released by Callum Macrae, the guy behind Regex Tuesday, on the GitHub ...
Continue reading »
A couple of months ago, I blogged about how to secure an ASP.NET MVC application using the excellent library FluentSecurity. I described how to install and configure FluentSecurity; however, I didn’t go into detail about how exactly you would set up a dependency injection framework which is necessary for FluentSecurity to resolve its policy violation handlers.
In this post, you’re going to read about how to use Ninject to regis ...
Continue reading »
Web developers, listen up: Pluralsight lets you watch a great web development video series for free:
Building ASP.NET MVC Apps with EF Code First, HTML5, and jQuery
This course provides an end-to-end look at building a Web application using several different technologies.
To access the tutorial, follow @pluralsight and enter your twitter handle on this site. After you have completed that, you will receive a private message on tw ...
Continue reading »
After writing my Review of Douglas Crockford's "JavaScript: The Good Parts", I discovered that Tuts+ Premium is offering a free tutorial series called 30 Days to Learn jQuery. Every day throughout the month of February, one new video lesson will be released.
From what I have seen so far, the tutorials are very concise and high-quality and explain the material very well. I definitely encourage you to check ...
Continue reading »
For the year 2012, I have made a bunch of New Year's resolutions regarding software development, including ...
Learning JavaScript (again).
Reading and blogging more.
Contributing more to open source projects.
Having picked up JavaScript mostly from a variety of online tutorials and examples a couple of years ago, I felt that I was lacking a true understanding of advanced concepts of the language, such ...
Continue reading »
The excellent class library FluentSecurity allows you to easily secure an ASP.NET MVC application. By using it, you can benefit from the following main advantages:
Authorization rules can be specified for both single action methods or entire controllers.
Security is specified in a centralized place in a readable and maintainable way, thus making it unnecessary to decorate your controllers with [Authorize] attribute ...
Continue reading »
You are new to the ExtraLINQ project? Read my introductory post or fork the source on GitHub!
To make the installation of ExtraLINQ easier, I have created a NuGet package called ExtraLINQ and submitted it to the official NuGet feed (see NuGet » Packages » ExtraLINQ). You can use both the Library Package Manager and the Package Manager Console to install the package.
Using the Library Package Manager
To install ...
Continue reading »
Enumerable.Except is one of the useful extension methods within the System.Linq namespace that shipped with .NET 3.5. According to the documentation, Enumerable.Except "produces the set difference of two sequences".
The static System.Linq.Enumerable class contains two overloads of the Except method:
Enumerable.Except<TSource>(IEnumerable<TSource>, IEnumerable<TSource>)
Enumerable.Except&l ...
Continue reading »