Skip to content

Instantly share code, notes, and snippets.

View LodewijkSioen's full-sized avatar

Lodewijk Sioen LodewijkSioen

View GitHub Profile
using System;
using System.Reflection;
using Castle.Facilities.TypedFactory;
using Castle.MicroKernel.Registration;
using Castle.Windsor;
using NUnit.Framework;
namespace TestConsole.Castle
{
[TestFixture]
@LodewijkSioen
LodewijkSioen / Entity.cs
Created March 20, 2013 15:50
Base enity from NHibernate Cookbook
/// <summary>
/// Base Entity for NHibernate that implements equality
/// </summary>
/// <typeparam name="TId">Type of the identifier of the entity</typeparam>
/// <remarks>Code from the book NHibernate 3.0 Cookbook - Chapter 1 - Setting up a base entity class</remarks>
public abstract class Entity<TId>
{
/// <summary>
/// Gets or sets the id
/// </summary>
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JsonTest
{
@LodewijkSioen
LodewijkSioen / index.cshtml
Created February 20, 2013 19:29
Nancy embedded resource exception
hello world @Model.Name
@LodewijkSioen
LodewijkSioen / NothingComparesToYou.vb
Created February 14, 2013 10:32
It's funny because it's VB.net
Namespace SinéadOConnor
Public Class You
Implements IComparable
Public Function CompareTo(obj As Object) As Integer Implements IComparable.CompareTo
If (obj Is Nothing) Then
Return 0
End If
Return -1