第5章 C#高级特性.pptVIP

  • 2
  • 0
  • 约 38页
  • 2016-12-20 发布于贵州
  • 举报
5.4.2 程序集  Function的源程序如下所示: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Function { public class DigitCount { // 计算字符串中的数字个数 public static int NumberOfDigits(string TheString) { ? int Count = 0; for (int i = 0; i TheString.Length; i++) { if (Char.IsDigit(TheString[i])) { Count++; } } return Count; } } } 5.4.2 程序集  编译生成文件Function.dll。依次单击【开始】→【所有程序】→【Microsoft Visual Stu

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档