Crazy ideea, but who knows!!

  • Thread starter Thread starter Crirus
  • Start date Start date
C

Crirus

Hello

I'm looking for this:

A custom attribute I can mark my class members as NonSerialised or
something.
After all marks are done, I whould like to write a method that can iterate
through that members and do something with them...

Any chance?
 
Unless I am missing something, can you not give each member an IsSerialized
( Boolean ) member and test that ?

OHM
 
Some addition to first post.. I'm not using htat NonSerialised.. just as a
exemple... I need an attribute just to flag some members in order to filter
them in some iteration... the iteration itself is a question..
Can this be done?
 
Some addition to first post.. I'm not using htat NonSerialised.. just as a
exemple... I need an attribute just to flag some members in order to filter
them in some iteration... the iteration itself is a question..
Can this be done?

Iterating members of an object is not to hard... Look up reflection in
the docs.
 
What if the members are in fact a collection or an array?
How they figure out on serilisation that there a re more instances and a
loop is requred to get all data?
 
Back
Top