S
Samuel R. Neff
Is there a way to add the NonSerialized attribute to the "Event"
fields that the VB.NET compiler creates when you declare an event?
I have a class that we use with binary serialization and we just added
two events so now old files won't deserialize to the new class. It
says it was expecting 2 more fields, obviously corresponding to the
two private fields created for the events.
I tried adding the fields explicitly with the NonSerialized attribute
but then I get a compiler error about the names conflicting.
Thanks,
Sam
fields that the VB.NET compiler creates when you declare an event?
I have a class that we use with binary serialization and we just added
two events so now old files won't deserialize to the new class. It
says it was expecting 2 more fields, obviously corresponding to the
two private fields created for the events.
I tried adding the fields explicitly with the NonSerialized attribute
but then I get a compiler error about the names conflicting.
Thanks,
Sam