`
yaoyuan
  • 浏览: 25992 次
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
1. workspace -- gwt - project     -- src / main / java       -- com . gwt . GwtProjectModule           -- GwtProjectModule . gwt . xml -- non - gwt - project     -- src / main / java       -- com . nongwt . package . that . contains ...

Object Serialization

    博客分类:
  • .Net
1. The term serialization describes the process of persisting (and possibly transferring) the state of an object into a stream (file stream, memory stream, etc.). The persisted data sequence contains all necessary information needed to reconstruct (or deserialize) the state of the object for use late ...
1. Specifically speaking, a delegate object maintains three important pieces of information: • The address of the method on which it makes calls • The arguments (if any) of this method • The return value (if any) of this method   2. When the C# compiler processes delegate types, it automatically gene ...
1.  Interface: IEnumerable, IEnumerator, 2.  Abstract classes: CollectionBase, ReadonlyCollectionBase
1. Interface layout 2. the .NET platform supports two broad groups of data types, termed value types and reference types. C# provides a very simple mechanism, termed boxing, to convert a value type to a reference type.   3. In summary, generic containers provide the following benefits over their no ...
1. The class is nothing more than a blueprint that describes how an instance of this type will look and feel in memory.     2. When Garbage collector destroy a object in memory? The short (i.e., incomplete) answer is that the garbage collector removes an object from the heap when it is unreachable ...

记录一些WPF

    博客分类:
  • .Net
1. DispatcherUnhandledException 事件处理程序接受一个传递给它的 DispatcherUnhandledExceptionEventArgs 参数,该参数包含关于未处理异常的上下文信息,其中包括异常本身 (DispatcherUnhandledExceptionEventArgs..::.Exception)。使用该信息可以确定如何处理异常。 在处理 DispatcherUnhandledException 时,应当将 DispatcherUnhandledExceptionEventArgs..::.Handled 属性设置为 true;否则,WPF 仍会将异常 ...
正在进行的项目需要一个Table列出一些数据,每一行记录都有一些特定的信息需要保存。比如每一行都需要属性记录是否被选中,个别行还有自己的保留信息。 比较直接的想法是用数组,但是那样的话,数组和列关联起来不是很容易。后来发现原来可以直接把数据作为HTML元素的属性保存起来 下面的函数用来在一个元素中保存一个健值对。 var IS_IE = false;var IS_MOZILLA = false;if ((!document.all)&&(document.getElementById)) IS_MOZILLA = true;if ((document.all)&& ...
在测试数据访问层的DAO代码时,如果连接真实的数据库会导致产生一些测试数据。应用HSQLDB在内存中建立一个同结构的数据库用来测试是个好主意。下面就针对使用Ibatis的DAO代码进行测试。 1. 下载HSQLDB 的jar文件。 2. 建立一个数据库描述文件 java 代码 driver=org.hsqldb.jdbcDriver   url=jdbc:hsqldb:mem:testfixture   username=sa   password=       其中testfixture是可以更改的。 3. 建立一个PersistenceFixtur ...
java 代码   package test;      import javax.xml.namespace.QName;      import org.apache.axis.client.Call;   import org.apache.axis.client.Service;      public class Test {          /**       * @param args       * @throws Exception        */      ...
1. 每个JSP页面应该有如下的code     java 代码   <%@ page language="java" contentType="text/html; charset=UTF-8"       pageEncoding="UTF-8"%>                最好再加上 java 代码   "Content-Type" content="text/html; charset=UTF-8">   2.  用一个 ...
Resource Bundle Editor Web site: http://www.resourcebundleeditor.com/ Update URL:  n/a Log4E Web site: http://log4e.jayefem.de/index.php/Main_Page Update URL: n/a CheckStyle Web site: http://eclipse-cs.sourceforge.net Update URL: http://eclipse-cs.sourceforge.net/update/ Coverlipse Web site: http ...
Global site tag (gtag.js) - Google Analytics