c# - Deserialization with options -
i achieving serialization of collection file. results how expect
<persons> <person> <identity>1234</identity> <name>asd</name> </person> <person> <identity>12345</identity> <name>asdd</name> </person> </persons>
now, don't want deserialize whole collection want deserialize object file specific options. example,
object getpersonwithidentity(int identity ) { // here } object asd = getpersonwithidentity(1234); // expected person identity "1234" , name "asd"
is reasonable deserialize whole collection , find specific object , homecoming it, or there other solution this?
xml not seekable @ to the lowest degree have read forwards till find first match. framework not back upwards automatically have manually using xmlreader
laborious.
if file little and/or performance not issue, deserialize , done it.
if dataset big i'd consider moving more scalable format embedded sql database. sql databases have capability inherently.
c# deserialization
No comments:
Post a Comment