![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
文章平均质量分 81
天使爱撒谎
这个作者很懒,什么都没留下…
展开
-
C# 静态类(static class)
类可以声明为 static 的,以指示它仅包含静态成员。 静态类在加载包含该类的程序或命名空间时,由 .NET Framework 公共语言运行库 (CLR;特指:C#语言) 自动加载。 使用静态类来包含不与特定对象关联的方法,具有通用性 注意事项: (1) 不能使用 new 关键字创建静态类的实例; (2) 仅包含静态成员; (3) 不能被实例化; (4转载 2014-10-15 13:55:57 · 1646 阅读 · 0 评论 -
拆箱转换
Unboxing is an explicit conversion from the type object to a value type or from an interface type to a value type that implements the interface. An unboxing operation consists of: Checking the ob转载 2014-11-04 15:11:54 · 824 阅读 · 0 评论 -
An Introduction to Reflection in C#
Introduction In this article, we will see something about reflection in .NET. First, we will see what the System.Reflectionnamespace will do for .NET developers. Reflection allows the inspection转载 2014-11-05 09:41:48 · 637 阅读 · 0 评论 -
C# String.Format格式说明
C#格式化数值结果表 字符 说明 示例 输出 C 货币 string.Format("{0:C3}", 2) $2.000 D 十进制 string.Format("{0:D3}", 2) 002 E 科学计数法 1.20E+001 1.20E+001 G 常规 string.Fo转载 2015-01-26 09:09:23 · 782 阅读 · 0 评论