Create a new interface with members derived from an existing class, struct, or interface.
We're going to create an interface of an existing class, select elements to comprise the interface, with the generated interface in a separate file shown below.
using System;
namespace OLAF.MailServer
{
interface IMessageStore
{
int DeletedCount { get; set; }
int DraftsCount { get; set; }
void Reset();
}
}