summaryrefslogtreecommitdiff
path: root/src/dotnet-library/scala/runtime/BoxedUnit.cs
blob: d3ef5a3e119f2b9aff24a2acd4a43661c1fca8bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*                     __                                               *\
**     ________ ___   / /  ___     Scala API                            **
**    / __/ __// _ | / /  / _ |    (c) 2002-2007, LAMP/EPFL             **
**  __\ \/ /__/ __ |/ /__/ __ |                                         **
** /____/\___/_/ |_/____/_/ | |                                         **
**                          |/                                          **
\*                                                                      */

// $Id$


namespace scala.runtime {

  using System;

  [Serializable]
  public sealed class BoxedUnit {

    public static readonly BoxedUnit UNIT = new BoxedUnit();

    private BoxedUnit() { }

    override public bool Equals(object other) {
      return this == other;
    }

    override public int GetHashCode() {
      return 0;
    }

    override public string ToString() {
      return "()";
    }
  }

}