Here my simplified code:
var responseObj = new
{
memo = ""
};
responseObj.memo = "Test";
As you can see, I tried to modify responseObj.memo
, but the result:
Is there any other way for it?
Here my simplified code:
var responseObj = new
{
memo = ""
};
responseObj.memo = "Test";
As you can see, I tried to modify responseObj.memo
, but the result:
Is there any other way for it?
Anonymous type based classes are read only. You will have to create your own class in order to write back to the member.
class MyClass
{
public string Memo { get; set; }
}