2 // System.Runtime.Remoting.Metadata.W3cXsd2001.SoapPositiveInteger
5 // Martin Willemoes Hansen (mwh@sysrq.dk)
6 // Lluis Sanchez Gual (lluis@ximian.com)
8 // (C) 2003 Martin Willemoes Hansen
13 namespace System.Runtime.Remoting.Metadata.W3cXsd2001
16 public sealed class SoapPositiveInteger : ISoapXsd
20 public SoapPositiveInteger()
24 public SoapPositiveInteger (decimal value)
27 throw SoapHelper.GetException (this, "invalid " + value);
31 public decimal Value {
32 get { return _value; }
33 set { _value = value; }
36 public static string XsdType {
37 get { return "nonPositiveInteger"; }
40 public string GetXsdType()
45 public static SoapPositiveInteger Parse (string value)
47 return new SoapPositiveInteger (decimal.Parse (value));
50 public override string ToString()
52 return _value.ToString ();