public interface IUserDal { void Delete(int userId); } public class UserDal : IUserDal { public void Delete(int userId) { // Code to delete user from data source } }Package library: This method is commonly used in data access layers of C# applications and can be found in various package libraries such as Entity Framework, Dapper, and ADO.NET.