When a type is referenced it will not use the correct type.
In my example i expect the year month and day properties to be of type int.
Comments: ** Comment from web user: pego **
In my example i expect the year month and day properties to be of type int.
Comments: ** Comment from web user: pego **
xs:integer is unbounded so it might be bigger than the [int] class in .NET can hold - remember the size in .NET is Signed 32-bit.
Try defining your type as xs:int and everything works fine!