best use loading vigilant serialized xml c#
greetings,
i have sole vigilant assembled file, such:
public category configobj
{
open configobj(string loadpath)
{
//load vigilant controlling .net's reputed serialization library
//resulting configobj object
configobj deserializedobj = voodooloadfunction(loadpath);
//the line next won't compile
= thisismyobj;
}
}
i wish to, essense, contend "ok, vigilant we've only deserialized, vigilant fact are." there few ways doing this, i'm wondering deliberate best-practice. ideas are:
- build copy-into-me duty copies vigilant domain field. tide doing i'm graceful certain the terrible thought given whenever new member total vigilant i need also remember supplement 'copy-into-me' function, there's proceed that's maintainable.
- build stationary slight configobj category acts de-facto constructor loading object. sounds many improved nonetheless unequivocally best-practice-y.
i'm wholly happy presumably two, though. concurred best use here?
Comments
Post a Comment