更新时间:2022-03-15 21:36:18
请参见无法启动接口.它只是定义对象定义的规则.
因此,一旦实现了一个接口,您将使用与不使用它的类相同的方法和功能.
因此,要获取原始对象的值,请使用:
See Interface cant be initiated. Its just a rule which defines an object defination.
So once you implement an interface, you will be using the methods and functions the same way as you do with a class without it.
so to get the value of original object use :
<br />
this.Properties
ext
实际上是创建的新对象,并且您没有在UpdateProperties
内部设置属性的任何值.
ext
is actually a new object created and you didnt set any value for Properties inside UpdateProperties
.