// In essence, simply forces a cast of the value type so we can visit it correctly private void VisitPolymorphicType <TValue>(TValue value) { var container = new PolymorphicTypeContainer <TValue>() { Value = value }; PropertyContainer.Visit(ref container, this); }
// In essence, simply forces a cast of the value type so we can visit it correctly internal TValue VisitPolymorphicType <TValue>(TValue value) { var container = new PolymorphicTypeContainer <TValue>() { Value = value }; PropertyContainer.Visit(ref container, this); return(container.Value); }