Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions Unit/Nothing.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
namespace Unit
{
/// <summary>
/// This class should be used instead of void for return types.
/// This should be used instead of void for return types.
/// </summary>
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()
{
Expand Down
7 changes: 1 addition & 6 deletions Unit/Unit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Nothing.cs" />
Expand All @@ -50,4 +45,4 @@
<Target Name="AfterBuild">
</Target>
-->
</Project>
</Project>