Hello.
The following link lists the mapping of XML Schema types to .Net Framework
types:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cp
conXSDSchemaObjectModelSOM.asp
I have a schema with an element of type "nonNegativeInteger". When I run
XSD.exe over it and generate C# code, the element is typed in .Net as
"string", and not "decimal" as the MSDN page indicates.
Is the information on that page old or am I just missing something?
Thanks in advance,
Mike
Dino Chiesa [Microsoft] - 14 Feb 2005 23:30 GMT
Something is amiss.
Use a type of xs:decimal to map to System.Decimal.
-D
> Hello.
>
[quoted text clipped - 11 lines]
>
> Mike
Dino Chiesa [Microsoft] - 22 Feb 2005 06:08 GMT
I confirmed this as a bug in the doc mentioned below.
They're fixing it.
Thanks for pointing it out.
-Dino
> Something is amiss.
> Use a type of xs:decimal to map to System.Decimal.
[quoted text clipped - 16 lines]
>>
>> Mike