public void LoadFromFile(COMObject hostApplication) { return; DynamicCommandDefinition def1 = new DynamicCommandDefinition(); def1.Definition.Name = "buhu1"; def1.Definition.CustomClasses.AddNew(CommandBuilder.CreateCommandClass(hostApplication.ToString())); def1.Compile(); }