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

[FxCop.设计规则]6. 避免使用输出参数
// The following syntax will work and is a better design. // It returns the altered argument as a new instance of string.
public static string BetterThanPassTheReference(string argument) { return argument + " ABCDE"; } }}
The following application calls each of the methods in the library to demonstrate the behavior.
[C#]
using System;using DesignLibrary;namespace TestDesignLibrary{ public class Test { public static void
<< 上一页 [11] [12] [13] [14] [15] 下一页
本站地址:http://www.bajiao123.com

