摘要: 一、定义 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel.DataAnnotations; namespace HJ.B 阅读全文
posted @ 2019-12-22 16:57 秋飘 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 一、扩展类 //定义扩展方法 public static class ExtsionString { public static string GetTop10(this string value) { return value.Substring(0, 10); } } //调用扩展方法 this 阅读全文
posted @ 2019-12-22 16:37 秋飘 阅读(1480) 评论(0) 推荐(0) 编辑