You need to set the field variable and save the value there if you are going to use a custom getter and setter.
With the code that you have now, you will run into a stack overflow. When you assign something to mongoFormId , you will run the line this.MongoFormId = value; . This is the purpose of mongoFormId , which results in the string this.MongoFormId = value; etc. It will never stop.
The correct way is this field:
private string _mongoFormId; public string mongoFormId { get { return this._mongoFormId; } set { this._mongoFormId = value; revalidateTransformation(); } }
JustAnotherUserYouMayKnow
source share