[csharp] Remove generatePropertyChanged when explicitly false (#4280)

This commit is contained in:
Jim Schubert 2016-12-06 12:04:13 -05:00 committed by wing328
parent 648f8df235
commit 8e1eeaa737

View File

@ -199,6 +199,10 @@ public class CSharpClientCodegen extends AbstractCSharpCodegen {
} else {
setGeneratePropertyChanged(Boolean.valueOf(additionalProperties.get(CodegenConstants.GENERATE_PROPERTY_CHANGED).toString()));
}
if(Boolean.FALSE.equals(this.generatePropertyChanged)) {
additionalProperties.remove(CodegenConstants.GENERATE_PROPERTY_CHANGED);
}
}
additionalProperties.put("targetFrameworkNuget", this.targetFrameworkNuget);