Exemple #1
0
        // 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);
        }
Exemple #2
0
        // 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);
        }