update property using csharp

im trying to update value on vsy_rev can someone help with the c# code

Innovator innovator = this.getInnovator();
decimal rev = Convert.ToDecimal(this.getProperty("vsy_rev"))+1;


string new_rev= Convert.ToString(rev);
this.setProperty("vsy_rev", new_rev);
return this;