摘要:
一、定义 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel.DataAnnotations; namespace HJ.B 阅读全文
摘要:
一、扩展类 //定义扩展方法 public static class ExtsionString { public static string GetTop10(this string value) { return value.Substring(0, 10); } } //调用扩展方法 this 阅读全文