From 6f2b7a6d435157e122eeca7da7bb4fe7edcc608e Mon Sep 17 00:00:00 2001 From: Pavel Hritonenko Date: Mon, 9 Mar 2015 16:31:09 +0300 Subject: [PATCH 1/2] Unused references --- Unit/Unit.csproj | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Unit/Unit.csproj b/Unit/Unit.csproj index b8543d5..bf05304 100644 --- a/Unit/Unit.csproj +++ b/Unit/Unit.csproj @@ -32,11 +32,6 @@ - - - - - @@ -50,4 +45,4 @@ --> - + \ No newline at end of file From 0a58c0af687b28d8583f3e33f527d2d8d8fb0eb9 Mon Sep 17 00:00:00 2001 From: Pavel Hritonenko Date: Mon, 9 Mar 2015 16:31:33 +0300 Subject: [PATCH 2/2] Null Reference fix --- Unit/Nothing.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Unit/Nothing.cs b/Unit/Nothing.cs index 37f1930..e73dbfd 100644 --- a/Unit/Nothing.cs +++ b/Unit/Nothing.cs @@ -1,13 +1,11 @@ namespace Unit { /// - /// This class should be used instead of void for return types. + /// This should be used instead of void for return types. /// - public class Nothing + public struct Nothing { - public static readonly Nothing Instance = new Nothing(); - - private Nothing() { } + public static readonly Nothing Value = new Nothing(); public override string ToString() {