内参
摘要: namespace Microshaoft{ using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using System.IO; class Program { static void Main() { string r = string.Empty; string rootPath =...阅读全文
摘要: /* * Source Code File Name: * Microshaoft.beautify.JScript.NET.js * Microshaoft invent for EditPlus user tool by using Microsoft JScript.NET"); * Thanks for "http://jsbeautifier.org/" supply \"https://github.com/einars/js-beautify\""); * JavaScript Source References: * 阅读全文
摘要: /* * Source Code File Name: * Microshaoft.beautify.CScript.js * Microshaoft invent for EditPlus user tool by using WScript"); * Thanks for "http://jsbeautifier.org/" supply \"https://github.com/einars/js-beautify\""); * JavaScript Source References: * https://github.com阅读全文
摘要: namespace Microshaoft.Web.ShareCache{ using System; using System.Linq; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Microsoft.Utilitys; public static class DataManager { //[STAThread] static void Main(string[] arg...阅读全文
摘要: namespace ConsoleApplication{ using System; using System.Linq; using System.Collections.Generic; using System.Reflection; using Microshaoft; /// <summary> /// Class1 的摘要说明。 /// </summary> public class PerformanceCountersCategoryCreater { /// <summary> /// ...阅读全文
摘要: namespace Test{ using System; using System.Threading; using System.Threading.Tasks; using Microshaoft; class Program { static void Main() { var q = new ConcurrentAsyncQueue<int>(); q.AttachPerformanceCounters("new"); Random random = ne...阅读全文
摘要: namespace ConsoleApplication{ using System; using System.Diagnostics; using System.Reflection; using System.Threading; using System.Linq; using Microshaoft; using Test.Share; public class Class1 { //[STAThread] static void Main(string[] args) { ...阅读全文
摘要: namespace Microshaoft{ using System; using System.Linq; using System.Reflection; using System.Collections.Generic; using System.Collections.Concurrent; using System.Linq.Expressions; public static class ObjectsTypesBytesHelper { public static byte[] ObjectToBytes<T> ...阅读全文
摘要: namespace Microshaoft{ using System; using System.Linq; using System.Threading.Tasks; using System.Collections.Generic; using System.Collections.Concurrent; class Program { static void Main(string[] args) { var list = new List<Employee>() ...阅读全文
摘要: namespace Test{ using System; using System.IO; using System.Text; using System.Xml; using System.Xml.Serialization; using System.Runtime.Serialization; using System.Runtime.Serialization.Json; using System.Runtime.Serialization.Formatters.Soap; using Test.Share; using M...阅读全文
摘要: namespace Microshaoft{ using System; using System.Linq; public class Class1 { static void Main(string[] args) { var entrys = new[] { new { ...阅读全文
摘要: //==========================================================================================================================/*csc /r:Share.dll Server.cs*/namespace Microshaoft.RemotingObjects.Server{ using System; using System.Threading; using System.Collections.Concurrent; using Microsh...阅读全文
摘要: namespace Microshaoft{ using System; using System.Diagnostics; using System.Threading; using System.Threading.Tasks; using System.Runtime.InteropServices; public static class CodeTimer { public static void Initialize() { Process.GetCurrentProcess().Prior...阅读全文
摘要: namespace ConsoleApplication{ using System; using System.Reflection; using System.Reflection.Emit; using System.Collections.Generic; //using System.Text; using System.Linq; using System.Diagnostics; //using System.Linq.Expressions; using Microshaoft; /// <summary> //...阅读全文
摘要: // csc test.cs /r:Google.ProtocolBuffers.dllnamespace ConsoleApplication{ using System; using System.IO; using System.Linq; using Google.ProtocolBuffers; using Microshaoft; /// <summary> /// Class1 的摘要说明。 /// </summary> public class Program { static void Main(str...阅读全文
摘要: using System.Runtime.CompilerServices;[assembly: InternalsVisibleTo(MsgPack.CompiledPacker.MethodBuilderPacker.AssemblyName)]//========================================================================================================//// Copyright 2011 Kazuki Oikawa//// Licensed under the Apache Licen阅读全文
摘要: namespace ConsoleApplication{ using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using System.IO; using System.Net; using System.Net.Mail; using System.Net.Mime; using Microshaoft; using OpenPop.Mime; using OpenPop.P...阅读全文
摘要: namespace Microshaoft{ using System; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using Microshaoft; class Program { static void Main(string[] args) { Assembly asm = Assembly.GetExecutingAssembly(); ...阅读全文
摘要: namespace ConsoleApplication{ using System; using System.Linq; using System.Reflection; using System.Collections.Generic; using Microshaoft; public class Class1 { static void Main(string[] args) { string formula = "(({0}-{1})/{2}+{3})*{4}"; st...阅读全文
摘要: //#define c4 //C# 4.0+#define c4namespace Microshaoft{ using System; using System.Threading; using System.Diagnostics; using System.Collections.Generic;#if c4 using System.Collections.Concurrent;#endif using Microshaoft; public class ConcurrentAsyncQueue<T>#if c2 ...阅读全文
摘要: //===========================================================================================// Share.cs// csc.exe /t:library Share.cs//#define c4 //C# 4.0+#define c4namespace Microshaoft{ using System; using System.Threading; using System.Diagnostics; using System.Collections.Generic;#i...阅读全文
摘要: //===========================================================================================// Share.cs// csc.exe /t:library Share.cs//#define c4 //C# 4.0+#define c4namespace Microshaoft{ using System; using System.Threading; using System.Diagnostics; using System.Collections.Generic;#i...阅读全文
摘要: 缩写 英文 中文 AC Actual Cost 实际成本 ACWP Actual Cost of Work Performed 已完工作实际成本 BAC Budget At Completion 完工预算 BCWP Budgeted Cost of Work Performed 已完工作预算成本 ...阅读全文
摘要: /* Microshaoft 本文代码改自 http://powertools.codeplex.com/ http://powertools.codeplex.com/releases/view/74771#DownloadId=291022 文本水印、透明度、旋转 使用本文代码替代 Classes\WatermarkAccessor.cs 文件中的代码 Classes 目录下供 34个文件清单如下: Classes\BackgroundAccessor.cs Classes\ChartsheetAccessor.cs Classes\C...阅读全文
摘要: /*DES, TripleDES and BlowFish in Silverlight*/namespace BroccoliProducts{ using System; using System.Collections.Generic; #if DEBUG using System.Diagnostics; #endif // #if DEBUG using System.Linq; using System.Text; using System.IO; using System.Security.Cryptography; /...阅读全文
posted @ 2011-11-11 01:47 Microshaoft| 编辑
摘要: //-----------------------------------------------------------------------// <copyright file="MD5.cs" company="Microsoft Corporation">// Copyright (c) Microsoft Corporation. All rights reserved.// </copyright>// <author>Reid Borsuk and Jenny Zheng</author>/阅读全文
摘要: namespace ConsoleApplication{ using System; using Microsoft.Security.Application; /// <summary> /// Class1 的摘要说明。 /// </summary> public class Class1 { /// <summary> /// 应用程序的主入口点。 /// </summary> //[STAThread] static void Main(string[] args) ...阅读全文
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title> new document </title> <META NAME="Generator" CON阅读全文
摘要: /*makecert.exe -n "CN=Microshaoft X509 Test - A" -sky exchange -pe -sv a.pvk a.cerpvk2pfx.exe -pvk a.pvk -spc a.cer -pfx a.pfx -f -po 123makecert.exe -n "CN=Microshaoft X509 Test - B" -sky exchange -pe -sv b.pvk b.cerpvk2pfx.exe -pvk b.pvk -spc b.cer -pfx b.pfx -f -po abc*/namesp阅读全文
摘要: alter procedure zsp_IndexesReorganizeRebuildSQL @ReorganizePercent int = 10 , @RebuildPercent int = 15 , @Rows int = 10000 , @Online bit = 1 , @FillFactor int = 85 , @IndexType varchar(max) = '1,2' --聚集,非聚集as--exec zsp_IndexesReorganizeRebuildSQL 0,0, 0, 1,0,0begin --Microshaoft declare @Tex阅读全文
摘要: //AsyncQueue.cs//#define c4 //C# 4.0+#define c4namespace Microshaoft{ using System; using System.Threading; using System.Diagnostics; using System.Collections.Generic;#if c4 using System.Collections.Concurrent;#endif using Microshaoft; public class ConcurrentAsyncQueue<T> where T : class { pub阅读全文
摘要: //AsyncQueue.cs//#define c4 //C# 4.0+#define c4namespace Microshaoft{ using System; using System.Threading; using System.Diagnostics; using System.Collections.Generic;#if c4 using System.Collections.Concurrent;#endif using Microshaoft; public class AsyncQueue<T> where T : class { public delega阅读全文
摘要: 砍头不要紧 爱情价更高 欲穷千里目 粒粒皆辛苦1.少小离家老大回,安能辨我是雄雌。(苦命的人儿,这些年你都经历了什么?)2.红酥手,黄藤酒,两个黄鹂鸣翠柳。长亭外,古道边,一行白鹭上青天。(如此意境,只有汉语做得到)3.夜深忽梦少年事,惟梦闲人不梦君。(跟此人有仇啊?)4.借问酒家何处有,姑苏城外寒山寺。(不许瞎说!)5.洛阳亲友如相问,轻舟已过万重山,(欠人钱了?跑得够快的啊!)6.爷娘闻女来,举身赴清池;阿姊闻妹来,自挂东南枝。小弟闻姊来,琵琶声停欲语迟。(这位姑娘,你人品真差)7.在天愿作比翼鸟,大难临头各自飞。(你俩真配)8.美人卷珠帘,万径人踪灭。两岸猿声啼不住,惊起蛙声一片。(这还阅读全文
摘要: 给没谱的 Les Paul's 96th Birthday 2011-06-09 google logo guitar HTML and JavaScript 增加键盘记谱功能阅读全文
摘要: // /r:"C:\Program Files\Microsoft Visual Studio 10.0\VSTSDB\Deploy\Microsoft.Data.Schema.ScriptDom.dll";"C:\Program Files\Microsoft Visual Studio 10.0\VSTSDB\Deploy\Microsoft.Data.Schema.ScriptDom.Sql.dll"namespace Microsoft.Security.Application.SecurityRuntimeEngine.PlugIns{ usi阅读全文
摘要: //Server.csnamespace Microshaoft.RemotingObjects.Server{ using System; using System.Threading; using System.Collections; using System.Runtime.Remoting; using System.Runtime.Remoting.Channels; using System.Runtime.Remoting.Channels.Tcp; using System.Runtime.Serialization.Formatters; using System.Serv阅读全文
摘要: alter procedure [dbo].[zsp_backup_HourlyJob] @BackupRootPath varchar(256) , @oddWeekPath varchar(256) = 'OddWeek' , @evenWeekPath varchar(256) = 'EvenWeek' , @dbName sysname = null --严禁手动执行asbegin--zsp_backup_HourlyJob 'd:\dbbackup'declare @now datetimeset @now = getdate()-- 阅读全文
摘要: /*makecert.exe -n "CN=Microshaoft X509 Test - A" -sky exchange -pe -sv a.pvk a.cerpvk2pfx.exe -pvk a.pvk -spc a.cer -pfx a.pfx -f -po 123makecert.exe -n "CN=Microshaoft X509 Test - B" -sky exchange -pe -sv b.pvk b.cerpvk2pfx.exe -pvk b.pvk -spc b.cer -pfx b.pfx -f -po abc*/namesp阅读全文
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title> new document </title> <meta name="generator" con阅读全文
摘要: drop table dbo.num_tbdrop table dbo.tbcreate table num_tb(d datetime, id int)insert num_tbselect '2004-01-01', 1CREATE TABLE [tb]( [AutoID] [bigint] IDENTITY(1,1) NOT NULL, [id] [varchar](20) NULL, [n...阅读全文
摘要: // /r:"C:\Program Files\Microsoft Visual Studio 10.0\VSTSDB\Deploy\Microsoft.Data.Schema.ScriptDom.dll";"C:\Program Files\Microsoft Visual Studio 10.0\VSTSDB\Deploy\Microsoft.Data.Schem...阅读全文
摘要: namespace Microshaoft{ using System; using System.Threading; public class WakeProcessor<TData> { private delegate void ProcessCaller(AutoResetEvent wait, TData data); public delegate void WaitEv...阅读全文
摘要: #define cs4 //C# 4.0+//#define cs2 //C# 2.0+// /r:C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Runtime.Caching.dllnamespace Test{ using System;#if cs4 using System.Runtime.Caching;#endif using...阅读全文
摘要: namespace Test{ using System; using System.IO; using System.Text; using System.Xml; using System.Xml.Serialization; using Test.Share; using Microshaoft; public class Class1 { static void Main(string[]...阅读全文
摘要: <%@ WebHandler Language="C#" Class="Microshaoft.AsyncProcessHandler" %>//=================================================#define c4 //C# 4.0+//#define c2namespace Microshaof...阅读全文
摘要: //AsyncQueue.cs#define c4 //C# 4.0+//#define c2namespace Microshaoft{ using System; using System.Threading; using System.Diagnostics; using System.Collections.Generic;#if c4 using System.Collections.C...阅读全文
摘要: // Server.csnamespace WCF.Services{ using System; using System.ServiceModel; using Contracts.Operations; // Service class which implements the service contract. // Added code to write output to the co...阅读全文
摘要: // WCF.MSMQ.Message.Sender.(WCF.to.MSMQ).csnamespace WCF.MSMQ.MessageSender.Host{ using System; using System.Transactions; using System.ServiceModel.MsmqIntegration; using System.ServiceModel; using C...阅读全文
摘要: namespace Test{ using System; using System.Net; using System.Net.Sockets; using System.Text; using Microshaoft; public class AsyncSocketAsyncQueueHandlerProxyServer { public static int Main(String[] a...阅读全文
摘要: namespace Test{ using System; using System.Net; using System.Net.Sockets; using System.Text; using System.IO; using System.Threading; using Microshaoft; public class AsyncSocketAsyncDataQueueHandlerEc...阅读全文
摘要: <%@ Page language="C#" validaterequest="false" enableviewstate="false"%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www...阅读全文
摘要: /*Remoting 异步队列实现,流程如下1.并发若干客户端程序通过调用 Remoting CocurrentQueue Server 提供的公开远程方法 Enqueue 将数据元素入队尾2.Remoting CocurrentQueue Server 发现队列不为空,则并发若干线程陆续 Dequeue 队首数据元素并处理注意:1.队列的数据元素定义需自行实现2.对出列数据元素的处理程序需自行实...阅读全文
摘要: /*csc /t:library Share.cs*/namespace Microshaoft{ using System; using System.Collections; using System.Collections.Generic; using System.Runtime.Remoting; using System.Runtime.Remoting.Channels; using...阅读全文
摘要: /*csc /t:library Share.cs*/namespace Microshaoft{ using System; using System.Collections; using System.Collections.Generic; using System.Runtime.Remoting; using System.Runtime.Remoting.Channels; using...阅读全文
摘要: /* C# 委托的发展史: .Net 1.x 委托 =>.Net 2.x 匿名方法 => .Net 3.0/3.5 Lambda 表达式 ms-help://MS.MSDNQTR.v90.chs/dv_csref/html/6ce3f04d-0c71-4728-9127-634c7e9a8365.htm 在 C# 1.0 中,您通过使用在代码中其他位置定义的方法显式初始化委托来创建委托...阅读全文
摘要: namespace Test{ using System; using System.Net; using System.Net.Sockets; using System.Text; using Microshaoft; public class AsyncSocketAsyncQueueHandlerProxyServer { public static int Main(String[] a...阅读全文
摘要: namespace Test{ using System; using System.Net; using System.Net.Sockets; using System.Text; using System.IO; using System.Threading; using Microshaoft; public class AsyncSocketAsyncDataQueueHandlerEc...阅读全文
摘要: namespace Test{ using System; using System.Net; using System.Net.Sockets; using System.Text; using Microshaoft; public class SyncSocketAsyncHandlerProxyServer { public static int Main(String[] args) {...阅读全文
摘要: <html xmlns="http://www.w3.org/1999/xhtml"><head> <title> new document </title> <meta name="generator" content="editplus" /> <meta name=&...阅读全文
摘要: namespace Test{ using System; using System.IO; using System.Text; using System.Xml; using System.Xml.Serialization; using Microshaoft; public class Class1 { static void Main(string[] args) { string te...阅读全文
摘要: //csc.exe /r:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\microsoft.visualbasic.dll noname1.csnamespace ConsoleApplication{ using System; using System.Text; using JeffreyZhao; using Microshaoft; /// ...阅读全文
摘要: EditPlus 于 2009-08-08 升级到 v3.11(421) 但是今天2009-09-11才在官网可以下载的升级包http://www.editplus.com/trouble.htmlDATE: 2009-08-08BUILD: 421This is a patch file to fix the bugs of EditPlus v3.11Copyright © 1998...阅读全文
摘要: namespace Microshaoft{ using System; using System.Timers; using System.Management; using System.ServiceProcess; using System.Diagnostics; using System.ComponentModel; using System.Collections.Generic;...阅读全文
摘要: /*Remoting 异步队列实现,流程如下1.并发若干客户端程序通过调用 RemotingQueue Server 提供的公开远程方法 Enqueue 将数据元素入队尾2.RemotingQueue Server 发现队列不为空,则并发若干线程陆续 Dequeue 队首数据元素并处理注意:1.队列的数据元素定义需自行实现2.对出列数据元素的处理程序需自行实现不受 Remoting 生命周期租约过...阅读全文
摘要: //---------------------------------------------------------------------// This file is part of the Microsoft .NET Framework SDK Code Samples.// // Copyright (C) Microsoft Corporation. All rights re...阅读全文
摘要: namespace Test{ using System; using Microshaoft; public class Class1 { static void Main(string[] args) { Console.WriteLine("第一个\".\"和第二个\".\"之间的数字按小数比较,其他按整数比较"); StringV...阅读全文
摘要: /*什么是泛型? 如何使用和定义泛型? 泛型是具有占位符(类型参数)的类、结构、接口和方法, 这些占位符是类、结构、接口和方法所存储或使用的一个或多个类型的占位符。 泛型集合类可以将类型参数用作它所存储的对象的类型的占位符; 类型参数作为其字段的类型和其方法的参数类型出现。 泛型方法可以将其类型参数用作其返回值的类型或者其形参的类型之一。 摘自《Microsoft .NET Framework S...阅读全文
摘要: 1.Web 应用程序执行时如果发生异常,通过配置严禁将任何技术信息暴露:Web.Config:[代码]2.在客户端应用程序2.1 程序代码中一定要拼接 "参数化 SQL" ,并采取安全的"命令参数式" ADO.Net API,连接数据库并提交该查询,另外今后尽量减少应用程序拼接 SQL,而多使用存储过程。参阅如下代码:[代码]2.2 程序代码中直接调用存储过程,采取安全的"命令参数式" ADO.N...阅读全文
摘要: namespace Microsoft.Security.Application{ #region Namespaces using System; using System.Drawing; using System.Web; using System.Text; #endregion #region Namespace - Microsoft.Security.Application publ...阅读全文
摘要: /*makecert.exe -n "CN=Microshaoft X509 Test - A" -sky exchange -pe -sv a.pvk a.cerpvk2pfx.exe -pvk a.pvk -spc a.cer -pfx a.pfx -f -po 123makecert.exe -n "CN=Microshaoft X509 Test - B&qu...阅读全文
摘要: What'sVersion 3.11(Build 340)<feature>* 'Send PWD after each interval' FTP option.* Allows custom file filter on the Directory Window.* 'Save current file' option for user tool setting.* 'FTP ac...阅读全文
摘要: namespace Microshaoft{ using System.IO; using System.Text; using System.Collections.Generic; public static class EncodingHelper { public static Encoding IdentifyEncoding ( Stream stream , Encoding def...阅读全文
摘要: namespace Microsoft.ChannelSDK.Tools.FindPrivateKey{ using System; using System.IO; using System.Security.Cryptography.X509Certificates; using System.Runtime.InteropServices; class FindPrivateKey { st...阅读全文
摘要: /*makecert.exe -n "CN=Microshaoft X509 Test - A" -sky exchange -pe -sv a.pvk a.cerpvk2pfx.exe -pvk a.pvk -spc a.cer -pfx a.pfx -f -po 123makecert.exe -n "CN=Microshaoft X509 Test - B&qu...阅读全文
摘要: namespace ConsoleApplication{ using System; using System.Net; using System.Net.Mail; using System.Net.Mime; public class Class1 { static void Main(string[] args) { string html = "<html><...阅读全文
摘要: namespace Microshaoft{ using System; using System.IO; using System.Web.Services.Protocols; using System.Configuration; public class TraceSoapMessagesLoggerSoapExtension : SoapExtension { private Strea...阅读全文
摘要: 一直想做一个通用的 JavaScript Web API 图形验证码服务
这样封装,比做成 ASP.Net Server WebControl 更加通用,可以为任意消费页面(htm、jsp、php、asp、aspx)提供“Web 图形验证码”服务
以下是一些关键说明
阅读全文
摘要: namespace ConsoleApplication{ using System; using Microshaoft; public class Class1 { static void Main(string[] args) { DateTime x = DateTime.Now; x = new DateTime(2008,1,1,13,1,1,1); string s = DateTimeHelper.Get_yyyyMMddHHmmss_String(x); ...阅读全文

