Browse by Tags

All Tags » C# (RSS)

SPListCollection ContainsList Extension Method by Bil Simser

This is such a simple thing but something every SharePoint developer should have in their toolkit (well, actually, this is something Microsoft should put into the product). The SPFieldCollection has a nice method called ContainsField so you can check...
Filed under: ,

Convention over Configuration with MVC and Autofac by Bil Simser

One of the key things to wrap your head around when doing good software development using frameworks like ASP.NET MVC is the idea of convention over configuration (or coding by convention). The idea is that rather than messing around with configuration...
Filed under: , , ,

Where tips in LINQ by Bil Simser

These might be old but as I was going through doing some code reviews and optimizations I thought I would share with the rest of the class. Count() > 0 vs. Any This is a bit of heated debate but as you dive in the LINQ world you'll start seeing simpler...
Filed under: ,

Code to Interfaces. Right. What’s an Interface? by Bil Simser

The premise of coding to interfaces has been around for awhile now. The concept is simple. Given a definition of something you create things based on that definition. That might be a horrible description of an interface but I didn’t want to go all Computer...

Farseer tutorial for the absolute beginners by Bil Simser

This post is inspired (and somewhat a direct copy) of a couple of posts Emanuele Feronato wrote back in 2009 about Box2D (his tutorial was ActionScript 3 based for Box2D, this is C# XNA for the Farseer Physics Engine ). Here’s what we’re building: What...
Filed under: , ,

Some JSON Resources For You by Bil Simser

As a developer I really dig JSON over XML for information exchange. It's clean, simple, and just works. I don't have to deal with complicated schema validation, reams of unreadable encoded text, and hierarchies that make no sense. I prefer to consume...

Demystifying the Windows 8 Grid Application by Bil Simser

If you’re looking to “re-imagine” your apps on the Windows 8 platform in Metro style you can start with the Grid Application template that’s provided in the Visual Studio 2011 preview. From Visual Studio choose New Project and select Grid Application...

MediaWiki, WP7 and JSON Together Again For The First Time by Bil Simser

In another project that I’m working on (like I don’t have enough of them) I stumbled across the MediaWiki API . MediaWiki is the workhorse wiki software that powers such sites as Wikipedia . What you may (or may not) know is that the MediaWiki API is...
Filed under: ,

Using the Builder Pattern To Create SharePoint Lists by Bil Simser

In building out a custom solution I get tired of writing procedural code to create a list, add the columns, setup the views, and add some initial data. Many moons ago I decided to follow a creational design pattern called the Builder pattern. This pattern...
Filed under: , , ,
More Posts