An open API service indexing awesome lists of open source software.

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.

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