[CSharp] add optional flag "optionalEmitDefaultValues" and update template (#4010)

This commit addresses issue #3274 and adds the proposed optionalEmitDefaultValues flag.
This commit is contained in:
sdoeringNew
2019-10-09 09:27:57 +02:00
committed by William Cheng
parent bbfcd3bf64
commit d8c3b4d342
8 changed files with 30 additions and 5 deletions

View File

@@ -21,6 +21,7 @@ sidebar_label: csharp
|returnICollection|Return ICollection<T> instead of the concrete type.| |false|
|optionalMethodArgument|C# Optional method argument, e.g. void square(int x=10) (.net 4.0+ only).| |true|
|optionalAssemblyInfo|Generate AssemblyInfo.cs.| |true|
|optionalEmitDefaultValues|Set DataMember's EmitDefaultValue.| |false|
|optionalProjectFile|Generate {PackageName}.csproj.| |true|
|generatePropertyChanged|Specifies a AssemblyDescription for the .NET Framework global assembly attributes stored in the AssemblyInfo file.| |false|
|nonPublicApi|Generates code with reduced access modifiers; allows embedding elsewhere without exposing non-public API calls to consumers.| |false|