Serialising cobra objects
Posted: Fri Mar 11, 2011 10:08 am
Charles,
what are your thoughts on serialisation and why is cobra compiler itself not serialisable
i mean its classes dont seem to have serialise attribute on them.
2) do you have any objection if all the user classes/code that were produced by cobra were serialisable by default.instead of the user putting Serialise attribute on every thing himself.
ofcourse there could be a option to not serialise automatically.when we want to serialise our class and base class does not have that attribute on it it becomes a pain althou i dont know
for many things object being passed should be serialisable but why microsoft has not
implemented an automatic algorithm for users to just pass the object and rest is taken care
by the assembly itself like Serialise(myobject).Point is if the class for which i dont have the
source code is my base class or i am using its variables in my code i cannot do anything about it anyway. at best i can restrict certain things from being serialised but there should be a default algorithm for that. just like there is when you have specified Serialise attribute on your
class. having Serialise attribute on classes by default would save that pain. one can always
turn off that feature if one does not want to automate.
so i propose.
Thanking_You
RIGHT_THEN
what are your thoughts on serialisation and why is cobra compiler itself not serialisable
i mean its classes dont seem to have serialise attribute on them.
2) do you have any objection if all the user classes/code that were produced by cobra were serialisable by default.instead of the user putting Serialise attribute on every thing himself.
ofcourse there could be a option to not serialise automatically.when we want to serialise our class and base class does not have that attribute on it it becomes a pain althou i dont know
for many things object being passed should be serialisable but why microsoft has not
implemented an automatic algorithm for users to just pass the object and rest is taken care
by the assembly itself like Serialise(myobject).Point is if the class for which i dont have the
source code is my base class or i am using its variables in my code i cannot do anything about it anyway. at best i can restrict certain things from being serialised but there should be a default algorithm for that. just like there is when you have specified Serialise attribute on your
class. having Serialise attribute on classes by default would save that pain. one can always
turn off that feature if one does not want to automate.
so i propose.
Thanking_You
RIGHT_THEN