Some more classes
[mono.git] / mcs / class / corlib / System / Int16.cs
1 //
2 // System.Int16.cs
3 //
4 // Author:
5 //   Miguel de Icaza (miguel@ximian.com)
6 //
7 // (C) Ximian, Inc.  http://www.ximian.com
8 //
9
10 namespace System {
11         
12         public struct Int16 : ValueType {
13                 public const short MinValue = -32768;
14                 public const short MaxValue =  32767;
15                 
16                 short value;
17
18                 public int CompareTo (object v)
19                 {
20                         if (!(value is System.Int16))
21                                 throw new ArgumentException ("Value is not a System.Int16");
22
23                         return value - ((short) v);
24                 }
25
26                 public override bool Equals (object o)
27                 {
28                         if (!(o is System.Int16))
29                                 return false;
30
31                         return ((short) o) == value;
32                 }
33
34                 public override int GetHashCode ()
35                 {
36                         return value;
37                 }
38
39                 public TypeCode GetTypeCode ()
40                 {
41                         return TypeCode.Int16;
42                 }
43
44                 public static short Parse (string s)
45                 {
46                         // TODO: Implement me
47                         return 0;
48                 }
49
50                 public static short Parse (string s, IFormatProvider)
51                 {
52                         // TODO: Implement me
53                         return 0;
54                 }
55
56                 public static short Parse (string s, NumberStyles s, fp)
57                 {
58                         // TODO: Implement me
59                         return 0;
60                 }
61
62                 public static short Parse (string s, NumberStyles s, IFormatProvider fp)
63                 {
64                         // TODO: Implement me
65                         return 0;
66                 }
67         }
68 }