摘要: c#读写xml文件已知有一个XML文件(bookstore.xml)如下:<?xml version="1.0" encoding="gb2312"?><bookstore> <book genre="fantasy" ISBN="2-3631-4"> <title>Oberon's Legacy</title> <author>Corets, Eva</author> <price>5.95</price 阅读全文
posted @ 2013-04-03 15:42 StupidsCat 阅读(253) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/outtamyhead/archive/2012/12/02/2798412.html原文标题:How does it work in C#?-Part 3 (C# LINQ in detail),作者:MohammandA Rahman.目录LINQ基础扩展方法-幕后的工作扩展方法列表Where and SelectAllAverageConcatContainsCountDefaultIfEmptyDistinctElementAtEmptyExceptFirstFirstOrDefaultUnionIntersectLastLastOrDef 阅读全文
posted @ 2013-04-03 15:35 StupidsCat 阅读(1469) 评论(0) 推荐(0) 编辑
摘要: 1.首先,必须导入空间"Microsoft.Win32"2.利用Registry类,确定注册表的分支(ClassesRoot,CurrentUser,Users,LocalMachine,CurrentConfig)using Microsoft.Win32;RegistryKey key = Registry.LocalMachine;3.创建/打开/删除注册表项RegistryKey key = Registry.LocalMachine;//创建//注意:注册表路径一定是"\\"而不是"\"RegistryKey softwar 阅读全文
posted @ 2013-04-03 09:32 StupidsCat 阅读(399) 评论(0) 推荐(0) 编辑
摘要: CREATE procedure sp_who_lock as begin declare @spid int declare @blk int declare @count int declare @index int declare @lock tinyint set @lock=0 create table #temp_who_lock ( id int identity(1,1), spid int, blk int ) if @@error<>0 return @@error insert into #temp_who_lock(spid,blk) select 0 ,b 阅读全文
posted @ 2013-04-03 09:30 StupidsCat 阅读(338) 评论(0) 推荐(0) 编辑