In this post, we will see how to resolve Instantiate struct by name or ID in C Question: I know reflection is not possible in C, but I have a unique issue in an embedded environment that can only allocate ...
In this post, we will see how to resolve Reflection and Dapper Question: I’m trying to map my classes with specific Attribute then QueryAsync< T > of Dapper but, since I don’t know the < T > generic parameter I’m ...
In this post, we will see how to resolve How to use class loader to hack the Singleton Pattern (create multiple instances of Singleton with different classloaders) Question: I read this :Breaking of sinlgleton by two different class loaders But ...
In this post, we will see how to resolve Identify DU level when partially applied Question: Suppose we have a DU with 3x levels parameterised by reference types as shown: Noting that the GetUnionCases function within the FSharp.Reflection.FSharpType namespace can, ...
In this post, we will see how to resolve .NET 6 Is it possible to scan the background services and invoke AddHostedService<T> dynamically without adding them one by one Question: I am now using .NET 6 Worker Service to develop ...
In this post, we will see how to resolve How to detect virtual threads on java 19 Question: Lets say I want to ship a program that runs on java 17 as that is what is available widely, but use ...
In this post, we will see how to resolve Type negation in Scala 3 Question: Is it possible to implement fail proof Not[A] type in Scala 3? Here is a question asked some years ago: how-can-i-have-a-negation-type-in-scala. Unfortunately, a solution based ...
In this post, we will see how to resolve How can I using OpCodes and Emit set a parameter to an instantiated Property of type T? Question: I am trying to write a Method that returns that a DynamicMethod which ...
In this post, we will see how to resolve Get all properties of an inherited class in a function using generic type <T> Question: I have a function that converts a DataTable to a List of an object. I use ...
In this post, we will see how to resolve Avro Schema is being generated in wrong field order (alphabetical) Question: I have a class the I need to converto to an avro schema: I use a generic method to get ...