tl24 / jsonexserializer

Automatically exported from code.google.com/p/jsonexserializer
1 stars 1 forks source link

Common properties should be shared between base class and child class metadata #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently each type creates its own property metadata for all properties.  
This means that for classes that use inheritance, and properties inherited 
from base classes have their own set of property metadata and thus changes 
made to them are not shared.  Example:

public class A {
   public int Prop { get; set; }
}

public class B : A { }

The following should succeed after the change;

context.TypeHandlerFactory[typeof(A)].FindProperty("Prop") ==
context.TypeHandlerFactory[typeof(B)].FindProperty("Prop");

Care should be taken that overriden properties and shadowed properties are
not shared.

Original issue reported on code.google.com by elliott....@gmail.com on 4 Jan 2009 at 6:52

GoogleCodeExporter commented 9 years ago

Original comment by elliott....@gmail.com on 25 Jan 2009 at 4:49

GoogleCodeExporter commented 9 years ago
3.0 Release

Original comment by elliott....@gmail.com on 26 Jan 2009 at 2:22