xingd.net

.net related techonology

导航

随笔分类 -  Framework

摘要:float类型占32bit空间,只有7位精度,下面的程序 public class FloatPrecision { public static void Main() { Console.WriteLine((int)123456789F); } } 输出结果为123456792. double占64bit空间,15~16位精度,下面... 阅读全文

posted @ 2005-01-28 19:17 xingd 阅读(849) 评论(0) 推荐(0) 编辑

摘要:.NET中的序列化分为三类:二进制,Soap,XML。三个进行序列化/反序列化的类分别是System.Runtime.Serialization.Formatters.Binary.BinaryFormatter,System.Runtime.Serialization.Formatters.Soap.SoapFormatter和System.Xml.Serialization.X... 阅读全文

posted @ 2005-01-27 12:28 xingd 阅读(1625) 评论(0) 推荐(0) 编辑