So I have a anonymous type which I have used ToString on, and put into a file. It looks like this (and remarkably like JSon...):
{ Name = Name, Description = Description, Status = Pending, Key = Template, SubmittedBy = MyName, Identity = 2fb7a40b-e07a-4f1a-a48b-2c2720567f35 }
now I want to go the other way (edit:take the string from a file and put it into a format I can put into a known object) and put it into an anonymous type (which has the same properties, but I don't care if they are castable or anything like that, I just want a quick way to do something like.
AnonObject = GetObjectFromFile(blah);
RealObject.Name = AnonObject.Name;
I only have an interface for RealObject, so I can't add serialisation to the class. If you know a better way, let me know. Thanks.
Identitya guid? Looks like it.