this is my code for example:
var output = new { NetSessionId = string.Empty }; foreach (var property in output.GetType().GetProperties()) { property
Anonymous types are immutable in C#. I don't think you can change the property there.