摘要:
public interface IMouseFactory { Mouse createMouse(); } public class HpMouseFactory : IMouseFactory { public Mouse createMouse() { return new HpMouse( 阅读全文
posted @ 2025-03-02 20:34
androllen
阅读(7)
评论(0)
推荐(0)
摘要:
设计模式 解耦 重用 设计模式原则: 开闭原则 OPEN CLOSE PRINCIPLE 开闭原则是面向对象设计中最基础的设计原则 对扩展开放,对修改关闭 依赖倒置原则 具体实现应该依赖于抽象 高模块不应该依赖低模块,都依赖抽象 public interface IDriver{ public vo 阅读全文
posted @ 2025-03-02 20:29
androllen
阅读(9)
评论(0)
推荐(0)
摘要:
使用方法 Debug.WriteLine(IpLongUtils.ip2Long("HTTP://192.168.1.1")); Debug.WriteLine(IpLongUtils.ip2Long("192.168.0.1")); Debug.WriteLine(IpLongUtils.long 阅读全文
posted @ 2025-03-02 20:25
androllen
阅读(10)
评论(0)
推荐(0)
摘要:
namespace demoSp; class Program { static void Main(string[] args) { threadpl(); } public static void threadpl() { Console.WriteLine("Async Test job:") 阅读全文
posted @ 2025-03-02 20:01
androllen
阅读(7)
评论(0)
推荐(0)

浙公网安备 33010602011771号