小新的技术天地

Make It Works !

博客园 首页 新随笔 联系 订阅 管理
上一页 1 ··· 8 9 10 11 12 13 14 下一页

2004年10月20日 #

摘要: 注:原书上翻译为串行化,MSDN翻译为序列化,我以MSDN为准,写为序列化。可以使用属性(Attribute)将类的元素标为可序列化的(Serializable)和不可被序列化的(NonSerialized)。.NET中有两个类实现了IFormatter借口的类中的Serialize和Deserialize方法:BinaryFormatter和SoapFormatter。这两个类的区别在于数据流的... 阅读全文
posted @ 2004-10-20 22:45 小新0574 阅读(5995) 评论(3) 推荐(0) 编辑

摘要: 第一章 随机事件和概率 &1.1 随机事件的直观意义及其运算 一、必然现象和随机现象 1. 确定性现象或必然现象 2. 偶然性现象或随机现象 解释 – 省略…… 二、随机试验与事件 1. 我们把对某种自然现象作一次观察或一次科学试验,统称为一个试验。 2. 如果这个试验“在相同条件下可以重复进行”,而且每次试验的结果实前不可预测,我们就称它为一个随机试验。 ... 阅读全文
posted @ 2004-10-20 13:08 小新0574 阅读(1937) 评论(0) 推荐(0) 编辑

摘要: 由于看计算机的书太多,把这学期在学习的数学科目拉下了,所以开一个数学栏目,做些笔记,督促自己学习。 阅读全文
posted @ 2004-10-20 12:46 小新0574 阅读(567) 评论(0) 推荐(0) 编辑

2004年10月19日 #

摘要: 刚才跟FantasySoft兄聊天,他说我不该为了翻译而翻译,也应该学习翻译文章中的技术,我觉得也是,同时因为在看《C#技术揭秘》,里面的知识点比较分散,也不知道怎么马上用到实际中去。所以两者结合起来,目前想到的解决方案是,如果在翻译的文章中遇到的不明白的技术,直接看《C#技术揭秘》中的相关章节, 正好理论结合实践,呵呵,还不错吧!引用蔡学镛在《爪哇夜未眠》中提到的:“我一向是采用先深后广(也称... 阅读全文
posted @ 2004-10-19 17:36 小新0574 阅读(566) 评论(2) 推荐(0) 编辑

摘要: 原作者:Alex Farber 原文:http://www.codeproject.com/csharp/DrawTools.asp(源代码请参见原文) Introduction DrawTools sample shows how to create a Windows Forms application for drawing graphic objects in a Windows clie... 阅读全文
posted @ 2004-10-19 15:57 小新0574 阅读(19965) 评论(13) 推荐(0) 编辑

2004年10月18日 #

摘要: 指定属性继承规则 AttributeUsage的最后一个参数是继承标志,指出速航行是否可以被继承。如果设为true,它的意义取决于AllowMultiple属性的值。 继承 AllowMultiple 结果 True False 派生的属性覆盖基属性 True True 派生的属性和基属性共存 using System;using System.Reflection;... 阅读全文
posted @ 2004-10-18 22:30 小新0574 阅读(1631) 评论(0) 推荐(0) 编辑

2004年10月17日 #

摘要: 默认情况下,所有属性都是单次使用的。所以编译一下代码会得到一个编译器错误。 using System;public class SomethingAttribute : Attribute{ public SomethingAttribute(String str) { }}//Error[Something("abc")][Something("def")]class MyC... 阅读全文
posted @ 2004-10-17 21:59 小新0574 阅读(1023) 评论(0) 推荐(0) 编辑

2004年10月15日 #

摘要: 原作者:Kevin Stewart 文章出处:http://www.codeproject.com/csharp/pwdgen.asp Introduction This article illustrates how to create a very simple password generator using C#. Password generators are useful in ma... 阅读全文
posted @ 2004-10-15 23:45 小新0574 阅读(2366) 评论(3) 推荐(0) 编辑

摘要: 原作者:Nishant S Introduction Just about everything is a heap object when you are using C#. Only elementary native types like int are treated as value types. But there are two value types in C# that are... 阅读全文
posted @ 2004-10-15 17:10 小新0574 阅读(4999) 评论(11) 推荐(0) 编辑

摘要: 闲来无事,打算翻译一些codeproject上的一些技术文章,当然英文水平有限,只能先推出一些简单的文章,希望大家捧场,中英对照哦 阅读全文
posted @ 2004-10-15 15:39 小新0574 阅读(3584) 评论(16) 推荐(0) 编辑

上一页 1 ··· 8 9 10 11 12 13 14 下一页