Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
[Fork] https://stackoverflow.com/questions/63782208/remove-defaultvalue-attribute-for-xml-serialization-in-c-sharp by dbc_MinLength
Environment version: .NET 9.0.0 (9.0.0)

<?xml version="1.0" encoding="utf-8"?>
<MyType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <myValue>false</myValue>
  <SomeOtherValue xmlns="https://DefaultNamespace">false</SomeOtherValue>
</MyType>
Cached Result
Last Run: 12:18:14 pm
Compile: 0.081s
Execute: 1.16s
Memory: 13.43Mb
CPU: 1.241s