Com.cs (259B)
1 namespace DriverUpdater; 2 3 static class Com 4 { 5 // Creates a COM object by its ProgID, to be called through dynamic. 6 public static dynamic Create(string progId) => 7 Activator.CreateInstance(Type.GetTypeFromProgID(progId, throwOnError: true)!)!; 8 }