上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 21 下一页
摘要: <td class="val"> <input type="hidden" id="List_UpMsg" /> <input type="hidden" id="List_AttachName" /></td>如果用 $.find(":text,textarea,:hidden") 将只会找到1个如果用 $.find(":text,textarea,input[type=hidden]") 2个都会找到。看 阅读全文
posted @ 2012-05-04 12:29 Shikyoh 阅读(246) 评论(1) 推荐(0) 编辑
摘要: 先记录稍后整理exec sp_lock 快捷键 C_2exec sp_who active exec sp_who快捷键 C_1用Profiler里面的Locks->Deadlock graph 监控看看,如果看到了死锁图,就可以比较形象地展现死锁发生的过程,还可以看到锁的具体类型和过程里面的语句,对你诊断会有帮助。Declare @LockTab table( spid int,dbid int ,ObjId int,IndId int ,Type varchar(50),Resource varchar(50),Mode varchar(50),Status varchar(50)) 阅读全文
posted @ 2012-04-18 14:41 Shikyoh 阅读(1763) 评论(0) 推荐(1) 编辑
摘要: 主要是为了应付不同类之间成员的相互赋值。节省代码量。namespace ConsoleApplication3{ public interface interTest { } public class Test : interTest { public string Name; public int Id; public int TestId; public int Property { get; set; } } public class TestClone { public... 阅读全文
posted @ 2012-04-11 16:58 Shikyoh 阅读(668) 评论(1) 推荐(0) 编辑
摘要: namespace ConsoleApplication2{ public abstract class Animal { public string GetRootName() { return "动物"; } public abstract string GetName(); } public class Monkey : Animal { public override string GetName() { return "猴子";... 阅读全文
posted @ 2012-04-10 16:42 Shikyoh 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 简单来讲:有符号整数:即有正号和负号无符号整数:即只有正号没有负号举个例子,16位整型数int i; i 为有符号整数,取值范围:-32768——32767unsigned int j; j 为无符号整数,取值范围:0——65535MSDN对Uint64 的描述:表示 64 位无符号整数此 API 不兼容 CLS。兼容 CLS 的替代 API 为 Decimal。但是 无符号整数不兼容CLS为什么呢。按照.Net CLS的定义:NET通过定义公共语言规范(CLS:Common Language Specification),限制了由这些不同引发的互操作性问题。CLS制定了一种以.NET平台为目 阅读全文
posted @ 2012-04-10 11:24 Shikyoh 阅读(24087) 评论(0) 推荐(0) 编辑
摘要: public class Clock { private object obj = new object(); public void RunClock(int Minute) { Thread thread1 = new Thread(() => { int sencond = Minute * 60 / 2; while (sencond > 0) { Di(true)... 阅读全文
posted @ 2012-03-22 14:15 Shikyoh 阅读(1318) 评论(0) 推荐(0) 编辑
摘要: 编码规范一 命名空间 <公司名称>.(<产品名称>|<相关技术>)[.<用途>][.<子命名空间>]二 代码风格花括号“{}”不允许省略,即使只有一段代码。不允许省略访问修饰符。类型默认是密封的。不允许公开字段。使用括号“()”来强调运算符优先级。三 命名规范(一) 类、结构和接口的命名使用名词或名词短语。使用Pascal方式。在接口名称前加上前缀“I”。考虑在派生类末尾使用基类的名字。如果该类仅仅为了实现某个接口,那么请保持其与接口命名的统一。如果从.NET 框架中存在的类型派生的类型,应该遵循以下规范:基类派生类System.At 阅读全文
posted @ 2012-03-22 13:29 Shikyoh 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 最近没什么事情,复习了下以前几块不熟悉的东西。IEnumerator接口,yield,operatornamespace test{ class Program { static void Main(string[] args) { Console.WriteLine("泛型方法数组遍历"); string[] strList = new string[] { "1", "2", "3", "4", "5" }; ListHelper<string> helper 阅读全文
posted @ 2012-03-16 15:18 Shikyoh 阅读(256) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Runtime.Serialization.Formatters.Binary;using System.IO;namespace TestBinaryFormatter{ class Program { static void Main(string[] args) { //序列化 从内存读取信息流 Book book =... 阅读全文
posted @ 2012-03-16 12:09 Shikyoh 阅读(2536) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;using System.Runtime.Serialization.Formatters.Binary;namespace CloneClass{ class Program { static void Main(string[] args) { Results set1 = new Results(); Resul... 阅读全文
posted @ 2012-03-16 11:45 Shikyoh 阅读(596) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 21 下一页