locked
Primitive & complex type matching using Visual Studio 2015 reflection RRS feed

  • Question

  • I want to put this source & target property in a collection after matching the corresponding value.

    The source & target will come from XML & after matching the result will go to collection.

    The left side means srcprop is primitive type where as trgprop is complex type.

    Reflection needs to be used as I want to work with dynamic.

    Source Property( srcprop)

    (Primitive type)

    Target Property( trgprop)

    (Complex type)

    Reflection.EntityContextModel.FirstName

    Reflection.EntityDomainModel.FirstName

    Reflection.EntityContextModel.LastName

    Reflection. EntityDomainModel.LastName

    Reflection.EntityContextModel.City

    Reflection. EntityDomainModel.HomeAdress.City

    Reflection.EntityContextModel.Country

    Reflection. EntityDomainModel. HomeAdress .Country




    Saturday, February 20, 2016 7:31 AM

Answers