K3

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  .net

摘要:class Program { [DllImport("wtsapi32.dll")] static extern IntPtr WTSOpenServer([MarshalAs(UnmanagedType.LPStr)] String pServerName); [DllImport("wtsapi32.dll")] static extern void WTSCloseServer(IntPtr hServer); [DllImport("wtsapi32.dll")] static extern Int... 阅读全文
posted @ 2014-03-18 13:22 K3 阅读(294) 评论(0) 推荐(0)

摘要:public class Program { static void Main(string[] args) { var alarm = new Alarm() { Code = "1588-OPER-2", Grade = "1", Source = "55A3E6C7E2A0560A956D3933F42E5AA2", Time = DateTime.Now, Te... 阅读全文
posted @ 2013-09-04 11:37 K3 阅读(570) 评论(0) 推荐(0)

摘要:参考自http://blog.csdn.net/yilan8002/article/details/7197981 /// /// 窗体动画函数 注意:要引用System.Runtime.InteropServices; /// /// 指定产生动画的窗口的句柄 /// 指定动画持续的时间 /// 指定动画类型,可以是一个或多个标志的组合。 /// [DllImport("user32")] private static extern bool AnimateW... 阅读全文
posted @ 2013-08-26 12:07 K3 阅读(400) 评论(0) 推荐(0)

摘要:using System.Reflection;using System.Runtime.CompilerServices;using System.Runtime.InteropServices;using System.Security;using System.Resources;// General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information// 阅读全文
posted @ 2013-08-26 11:48 K3 阅读(1403) 评论(0) 推荐(0)

摘要:C:\project>tfsdeleteproject /collection:https://buckh-test2.visualstudio.com/DefaultCollection TestingWarning: Deleting a team project is an irrecoverable operation. All version control, work item tracking and Team Foundation build data will be destroyed from the system. The only way to recover t 阅读全文
posted @ 2013-08-21 16:03 K3 阅读(431) 评论(1) 推荐(0)

摘要:/Files/sskset/ObjectToCSV.rar 阅读全文
posted @ 2012-10-22 05:06 K3 阅读(583) 评论(0) 推荐(0)

摘要:1usingSystem;2usingSystem.Collections.Generic;3usingSystem.Linq;4usingSystem.Text;5usingSystem.IO;67namespaceConsoleApplication38{9classProgram10{11staticvoidMain(string[]args)12{13varItems=newList<SortItem>();1415Items.AddRange(newSortItem[]{16newSortItem(){GroupId=1,Id=1,Count=1,Weight=100}, 阅读全文
posted @ 2012-09-06 19:16 K3 阅读(27772) 评论(0) 推荐(3)

摘要:What is AutoMapper?AutoMapper is a simple little library built to solve a deceptively complex problem - getting rid of code that mapped one object to another. This type of code is rather dreary and boring to write, so why not invent a tool to do it for us?How do I get started?Check out thegetting st 阅读全文
posted @ 2012-09-03 17:31 K3 阅读(462) 评论(0) 推荐(0)

摘要:碰到这么个奇怪的问题,百思不得其解"C:\ProgramFiles\MicrosoftSDKs\Windows\v7.0A\bin\WSDL"/l:CS/n:TestNameSpace/o:Test.csLPFlightDisplayService.wsdlpause 阅读全文
posted @ 2011-08-02 04:35 K3 阅读(254) 评论(0) 推荐(0)

摘要:publicstaticclassSingleInstanceFactory{privatestaticHashtableht=newHashtable();privatestaticobjectsyncObject=newobject();publicstaticTGetSingleInstance<T>()whereT:new(){stringkey=typeof(T).ToString();Tt=default(T);lock(syncObject){if(ht.ContainsKey(key)){t=(T)ht[key];}else{lock(syncObject){t=A 阅读全文
posted @ 2011-07-04 03:31 K3 阅读(305) 评论(0) 推荐(0)

摘要:原文在 http://www.codeproject.com/KB/aspnet/dotnetmysql.aspx要是地址失效了可以看这个截图http://images.cnblogs.com/cnblogs_com/sskset/280442/o_MySql_Membership.jpg代码在http://files.cnblogs.com/sskset/MySQLMembershipSample.zip 阅读全文
posted @ 2011-04-18 14:33 K3 阅读(378) 评论(0) 推荐(0)

摘要:Following by: http://www.cnblogs.com/symjie520/archive/2007/04/17/716571.htmlReference: http://ajaxpro.codeplex.com/[代码][代码][代码] 阅读全文
posted @ 2011-01-19 08:55 K3 阅读(496) 评论(0) 推荐(0)

摘要:[代码][代码] 阅读全文
posted @ 2010-11-04 14:42 K3 阅读(401) 评论(0) 推荐(0)