how to get value from appsettings.json

So there are really two ways to go about this. Option 1 : Options Class You have an appsettings.json file : { “myConfiguration”: { “myProperty”: true } } You create a Configuration POCO like so : public class MyConfiguration { public bool MyProperty { get; set; } } In your startup.cs you have something in … Read more

What are alternatives to generic collections for COM Interop?

After some more research and trial-and-error, I think I found a solution by using System.Collections.ArrayList. However, this does not work with getting a value by index. To do so, I created a new class ComArrayList that inherits from ArrayList and adds new methods GetByIndex and SetByIndex. COM Interop compatible collection: public class ComArrayList : System.Collections.ArrayList … Read more