add readonly property support to C#

This commit is contained in:
wing328
2016-02-21 22:34:13 +08:00
parent e9bb912fca
commit 890b7d17e3
10 changed files with 81 additions and 13 deletions

View File

@@ -177,6 +177,9 @@ public class CodegenProperty {
if (this.isEnum != other.isEnum) {
return false;
}
if (this.isReadOnly != other.isReadOnly && (this.isReadOnly == null || !this.isReadOnly.equals(other.isReadOnly))) {
return false;
}
if (this._enum != other._enum && (this._enum == null || !this._enum.equals(other._enum))) {
return false;
}