RyanLamansky / dotnet-webassembly

Create, read, modify, write and execute WebAssembly (WASM) files from .NET-based applications.
Apache License 2.0
789 stars 74 forks source link

Removed Some Redundant Code #68

Closed martindevans closed 2 months ago

martindevans commented 2 months ago

Removed some minor redundant code, as highlighted by R#

Name and Content properties of CustomSection are documented as allowing null to be assigned. I haven't changed that behaviour, since it's specifically documented I assume it's important! Adding AllowNull lets null be assigned, but does not allow null to be returned.