随笔分类 - C#语言
C#使用中相关不熟悉的代码记录
摘要:https://www.cnblogs.com/sf-2020/p/14210443.html public static Type typen(string typeName) { Type type = null; Assembly[] assemblyArray = AppDomain.Cur
阅读全文
摘要:参考 https://blog.csdn.net/xiaolei1982/article/details/2294364 获取类外层的标签: [DataContract1("People")] public class Person { public String UserName { get; s
阅读全文
摘要:C# 最好使用 set get 属性函数 针对class里的prop 最好使用Set Get来设置数据,尤其是高频赋值的。 断点也好断啊。。。。 不用自带的Set 自己写个Set接口也行。。 而且,即使是在本class内, 最好也使用function。。 针对线上项目 导表优化 (仅仅针对策划觉得表
阅读全文
摘要:参照: https://blog.csdn.net/LucasMoreau/article/details/89740076 查看IL代码: Deriveclass 初始赋值:init_assign 构造赋值:construct_assign 得出结论:对于deriveClass , IL中 顺序是
阅读全文
摘要:转载: https://zhuanlan.zhihu.com/p/19972689 http://youxiputao.com/articles/5064 详细解释了IL2CPP的流程。
阅读全文
摘要:参考 《编写高质量代码:改善C#程序的157个建议》 , 尽量使用FCL中的委托声明。 FCL: FrameWork Class Library 三种常用:Action、Func、Predicate 小例子: 1.Action :无返回值 2.Func<T1,T2....,out Tn>:有返回值,
阅读全文
摘要:显示保留一位小数
阅读全文
摘要:C#日常开发
阅读全文