| Minimum (Inclusive) | Maximum (Inclusive) | C# type |
|---|---|---|
| sbyte.MinValue | sbyte.MaxValue | sbyte |
| byte.MinValue | byte.MaxValue | byte |
| ushort.MinValue | ushort.MaxValue | ushort |
| short.MinValue | short.MaxValue | short |
| uint.MinValue | uint.MaxValue | uint |
| int.MinValue | int.MaxValue | int |
| ulong.MinValue | ulong.MaxValue | ulong |
| long.MinValue | long.MaxValue | long |
| decimal.MinValue | decimal.MaxValue | decimal |
| XML Schema type | totalDigits | C# type |
|---|---|---|
| xs:positiveInteger xs:nonNegativeInteger | <3 | byte |
| <5 | ushort | |
| <10 | uint | |
| <20 | ulong | |
| <30 | decimal | |
| >=30 | string | |
| xs:integer xs:nonPositiveInteger xs:negativeInteger | <3 | sbyte |
| <5 | short | |
| <10 | int | |
| <19 | long | |
| <29 | decimal | |
| >=29 | string |