namespace MyProject
{
public class Employee : IMyClass // เรียกใช้
{
#region IMyClass Member
[void] / [bool] Insert()
{
throw new Exception("The method or operation is not implemented.");
}
[void] / [bool] Update()
{
throw new Exception("The method or operation is not implemented.");
}
[void] / [bool] Delete()
{
throw new Exception("The method or operation is not implemented.");
}
#endregion
}
}
ถ้าเรียกใช้งาน หน้า Form UI เช่น
Code (C#)
public partial class Form1 : Form , IMyClass // เรียกใช้งาน
{
#region IMyClass Member
[void] / [bool] Insert()
{
throw new Exception("The method or operation is not implemented.");
}
[void] / [bool] Update()
{
throw new Exception("The method or operation is not implemented.");
}
[void] / [bool] Delete()
{
throw new Exception("The method or operation is not implemented.");
}
#endregion
}