© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
2 replies
Cracker

✅ ILGenerator Object Mapper Property Set

Hey, I have following object mapper for non nested class types https://www.paste.org/124478. There are some use cases where return value of Convert method is not re-assigned to destination type, therefore the passed TTgt target argument is not updated since the reference properties are not set directly, therefore I added "ref" wrapper but I don't want to change existing codes to "ref" version. How can I update the existing ILGenerator that maps the properties explicitly, meaning it will update the argument target parameter as reference
Paste code - paste.org
www.paste.org - allows users to paste snippets of text, usually samples of source code, for public viewing. A place where lack of code gets binned; sharing code iterations since 2006.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Unable to set property 'onsubmit' on object of type
C#CC# / help
3y ago
✅ XmlReader generic Mapper
C#CC# / help
2y ago
Generic Dto Mapper
C#CC# / help
4y ago
Previewing IL generated by ILGenerator
C#CC# / help
3y ago