Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Generate mapping
Generate mapping

Generate mapping

NeVeS

|
1,601 installs
| (2) | Free
Generates mapping code, between method input parameters and method return type. If any of them is void, "this" is used instead. Design time AutoMapper alternative.
Download

Visual Studio code refactoring that generates mapping code, between method input parameters and method return type. If any of them is void, "this" is used instead. Design time AutoMapper alternative.

What can be generated:

  • mapping method
  • copy constructor
  • memento method get state
  • memento method set state

General rules:

  • mapping is available only for methods/constructors with an empty body
  • mapping can be done for more than one input parameter
  • for the left side of the assignment are considered all writable fields and properties
  • for the right side of the assignment are considered all readable fields and properties
  • for the assignment of mutable reference type, a "new" instance is always created
  • recursive mapping is not, and will not be supported
  • mapping to tuples is supported
  • mapping to positional records is supported
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft