Now that we have Xs: integer, why do we need Xs: Int?
After some searches, the truth emerges:
Xs: integer is an integer of any length without decimal number. If it is to represent money, it may be a large number, or it may be more suitable for future extension.
Xs: int 32-bit integer without decimal number
After xsdgencode or svcutil is generated, the properties marked with xs: integer will be converted to the string type in C # using Xs: the attribute of the int mark will be converted to the int type. It may be better for the int type than the string type, so we have the following test: 1. define an XSD, use 30 Xs: int/Xs: integer, and then convert it to datacontract2. run deserialization times respectively. 3. the difference is 700 ms, so the difference between each operation is 0.0007 MS, which makes little sense, and there is also the overhead of type conversion in logic. Conclusion: Generally, when XSD is defined, xs: integer is used.