Has anyone tried writing a strategy DLL in C#?

How would that work and any examples of how to do it with .Net 5 and C# 9 ?