This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace LSP; | |
public abstract class Employee | |
{ | |
public int Id { get; } | |
public string Name { get; } | |
public Status Status { get; } | |
protected Employee(int id, string name, Status status) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var instance =(Application)Activator.CreateInstance(Marshal.GetTypeFromCLSID(new Guid("73A4C9C1-D68D-11D0-98BF-00A0C90DC8D9"))); | |
instance.OpenCurrentDatabase(filepath: "", Exclusive: true, bstrPassword: string.Empty); | |
//Performing required operations (Read & Write) | |
instance.Quit(AcQuitOption.acQuitSaveAll); | |
Marshal.ReleaseComObject(instance) |