
本站地址:http://www.bajiao123.com

[FxCop.设计规则]6. 避免使用输出参数
The following application illustrates the user´s experience. The call to the redesigned library (UseTheSimplifiedClass method) is more straightforward, and the information returned by the method is easily managed. The output from the two methods is identical.
[C#]
using System;using DesignLibrary;namespace TestDesignLibrary{ public class UseComplexMethod { static void UseTheComplicatedClass() { // Using the version with the ref and out parameters. // You do not have to initialize an out parameter.
string[] reply = new string[5];
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >>
本站地址:http://www.bajiao123.com

