It is safe to do this because the internal class that implements a transformation configuration also implements IInheritingTransformConfig.
这样做很安全,因为实现转换配置的内部类也会实现IInheritingTransformConfig。
Next, change the existing phone validator to implement that interface, and make it an internal class.
接下来,修改已经存在的电话号码验证对象来实现该接口,使它成为一个内部类。
Avoid Returning References to Internal Class Objects.
避免返回内部类对象的引用。
Avoid Returning References to Internal Class Objects.
避免返回内部类对象的引用。
应用推荐