随笔分类 -  C#

摘要:Antlr 各种语言的语法识别器、解析器、编译和翻译器 Microsoft.AspNet.Web.Optimization 绑定优化CSS和JavaScript文件,也就是App_Start下的BundleConfig WebGrease 优化JavaScript、css文件和图像 Moderniz 阅读全文
posted @ 2019-09-17 11:28 hllive 阅读(423) 评论(0) 推荐(0)
摘要:[JsonObject(MemberSerialization.OptOut)] public class employeePersonalForm { [JsonIgnore] public string eid { get; set; } public int? sex { get; set; } public ... 阅读全文
posted @ 2019-06-21 12:14 hllive 阅读(1096) 评论(0) 推荐(0)
摘要:using System.Data; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System; using System.Text; namespace es.Common { public class JsonParse : IDisposable { #region 释放资源... 阅读全文
posted @ 2017-10-12 22:44 hllive 阅读(876) 评论(0) 推荐(0)
摘要:const 一般修饰 的变量为只读变量也就是常量。 字段被声明了readonly 和 const的效果是一样的,区别在于,只读表达式在程序运行时形成,而const表达式的值在编译时就形成了 静态方法:程序启动时就会在内存中为静态方法创建一个实例 构造函数:实例化对象时自动调用的函数,必须与类同名,且 阅读全文
posted @ 2016-07-12 11:09 hllive 阅读(133) 评论(0) 推荐(0)
摘要:允许传递一个类A的方法m给另一个类B的对象,使得类B的对象能够调用这个方法m,说白了就是可以把方法当作参数传递。class Program { //delegate的使用方法一 public delegate void users(string name ,int ... 阅读全文
posted @ 2016-01-10 11:22 hllive 阅读(218) 评论(0) 推荐(0)