如果您不能改变原始的API,那么您可以书写封装器代码,将聚集类型转化为数组。
If you cannot change the original API, you can write wrapper code to convert the collection type into an array.
如果代码的改变在被重构的方法内部引发了问题——变量未定义,或者类型不匹配——重构操作将对这些问题进行标记。
If the changes cause problems in the method being refactored — because it leaves undefined variables or mismatched types — the refactoring operations will flag these.
当然如果发生较大变化时,如删除属性或者改变属性的类型,仍会对COBOL代码产生一定的影响。
More profound changes, such as properties being deleted or changing type, would still have an impact on the COBOL code of course.
你得到错误消息的原因在上面的示例中,您改变了代码调用添加类型之间。
The reason you got the error message in the example above is that you changed the code between calls to Add-Type.
比如说,如果用户打算要改变数据库的地理位置,或甚至于要改变SQL数据库的类型,你也用不着去改写代码。
So, for example, if you ever decide to change the location of the database or even change the type of SQL server used, you don't want to have to rewrite all your code.
代码是否使用为每种可能改变数据类型的数据使用一个不同的类型?
Does the code use a different type for each kind of data that might change?
当你引用类型作为参数传递时,你不能改变你在调用代码中传递的指针,但表示引用类型的成员可以改变被调用的代码。
When you pass a reference type as a parameter, you can't change the pointer that you passed in your calling code, but the members of the indicated reference type can be changed in the called code.
当你引用类型作为参数传递时,你不能改变你在调用代码中传递的指针,但表示引用类型的成员可以改变被调用的代码。
When you pass a reference type as a parameter, you can't change the pointer that you passed in your calling code, but the members of the indicated reference type can be changed in the called code.
应用推荐