https://github.com/sunsided/medium-absurd-conversion
Code for the Converting between types in increasingly absurd ways medium post.
https://github.com/sunsided/medium-absurd-conversion
csharp dotnet dotnet-core expression-tree medium-article reflection source-generation
Last synced: 11 months ago
JSON representation
Code for the Converting between types in increasingly absurd ways medium post.
- Host: GitHub
- URL: https://github.com/sunsided/medium-absurd-conversion
- Owner: sunsided
- License: other
- Created: 2022-01-09T22:59:18.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-09T22:59:39.000Z (over 4 years ago)
- Last Synced: 2025-04-07T03:48:11.184Z (about 1 year ago)
- Topics: csharp, dotnet, dotnet-core, expression-tree, medium-article, reflection, source-generation
- Language: C#
- Homepage: https://medium.com/@sunside/converting-between-types-in-increasingly-absurd-ways-89414ae6eb7c
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Converting between types in increasingly absurd ways
Code for the [Converting between types in increasingly absurd ways] medium post.
This repo explores different approaches to convert between data classes as a response to and result of a now-deleted StackOverflow question. It uses
- [Reflection and `MethodInfo` invocation],
- [Reflection and Lambda expression compilation],
- [Source generation] and
- [AutoMapper] (because sanity).
[Converting between types in increasingly absurd ways]: https://medium.com/@sunside/converting-between-types-in-increasingly-absurd-ways-89414ae6eb7c
[Reflection and `MethodInfo` invocation]: ExtensionMethods70642141/ReflectedTests.cs
[Reflection and Lambda expression compilation]: ExtensionMethods70642141/ReflectedWithDelegateTests.cs
[Reflection and Lambda expression compilation]: ExtensionMethods70642141/ReflectedWithDelegateTests.cs
[Source generation]: ExtensionMethods70642141/SourceGeneratedTests.cs
[AutoMapper]: ExtensionMethods70642141/AutoMapperTests.cs