c#代码的书写规范

namespace  TestJqueryAjax
 15 {
 16    /// <summary>
 17    /// 使用ICSharpZipCode.Dll实现解压缩
 18    /// Author:chenkai  Time:2009年7月13日22:03:27
 19    /// Version:Beta1.0.0-(测试版)
 20    /// </summary>

 21    public class ICSharpZipCodeTest
 22    {
 23
 24        /// <summary>
 25        /// 实现压缩功能
 26        /// </summary>
 27        /// <param name="filenameToZip">要压缩文件(绝对文件路径)</param>
 28        /// <param name="Zipedfiledname">压缩(绝对文件路径)</param>
 29        /// <param name="CompressionLevel">压缩比</param>
 30        /// <param name="password">加密密码</param>
 31        /// <param name="comment">压缩文件描述</param>
 32        /// <returns>异常信息</returns>

 33        public static string MakeZipFile(string[] filenameToZip, string Zipedfiledname, int CompressionLevel, 
 34            string password, string comment)
 35        {
 36            try
 37            {
 38              //使用正则表达式-判断压缩文件路径
 39                System.Text.RegularExpressions.Regex newRegex = new System.Text.

 40                    RegularExpressions.Regex(@"^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w   ]*.*))");

 41


上面所示好像是标准的C#代码书写格式,具体的需要进一步总结

你可能感兴趣的:(c#代码的书写规范)