随笔分类 -  内参

摘要: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... 阅读全文
posted @ 2009-10-14 16:41 于斯人也 阅读(3972) 评论(2) 推荐(0)
摘要: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) {... 阅读全文
posted @ 2009-10-12 18:51 于斯人也 阅读(2228) 评论(0) 推荐(0)
摘要:<html xmlns="http://www.w3.org/1999/xhtml"><head> <title> new document </title> <meta name="generator" content="editplus" /> <meta name=&... 阅读全文
posted @ 2009-09-29 23:45 于斯人也 阅读(3258) 评论(2) 推荐(1)
摘要: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... 阅读全文
posted @ 2009-09-18 22:33 于斯人也 阅读(1335) 评论(0) 推荐(0)
摘要://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; /// ... 阅读全文
posted @ 2009-09-11 15:38 于斯人也 阅读(1077) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2009-09-11 13:11 于斯人也 阅读(721) 评论(2) 推荐(0)
摘要:namespace Microshaoft{ using System; using System.Timers; using System.Management; using System.ServiceProcess; using System.Diagnostics; using System.ComponentModel; using System.Collections.Generic;... 阅读全文
posted @ 2009-09-08 10:32 于斯人也 阅读(926) 评论(0) 推荐(0)
摘要:/*Remoting 异步队列实现,流程如下1.并发若干客户端程序通过调用 RemotingQueue Server 提供的公开远程方法 Enqueue 将数据元素入队尾2.RemotingQueue Server 发现队列不为空,则并发若干线程陆续 Dequeue 队首数据元素并处理注意:1.队列的数据元素定义需自行实现2.对出列数据元素的处理程序需自行实现不受 Remoting 生命周期租约过... 阅读全文
posted @ 2009-08-26 00:54 于斯人也 阅读(1016) 评论(1) 推荐(0)
摘要://---------------------------------------------------------------------// This file is part of the Microsoft .NET Framework SDK Code Samples.// // Copyright (C) Microsoft Corporation. All rights re... 阅读全文
posted @ 2009-08-25 12:00 于斯人也 阅读(1109) 评论(0) 推荐(0)
摘要:namespace Test{ using System; using Microshaoft; public class Class1 { static void Main(string[] args) { Console.WriteLine("第一个\".\"和第二个\".\"之间的数字按小数比较,其他按整数比较"); StringV... 阅读全文
posted @ 2009-08-05 13:34 于斯人也 阅读(1077) 评论(0) 推荐(0)
摘要:/*什么是泛型? 如何使用和定义泛型? 泛型是具有占位符(类型参数)的类、结构、接口和方法, 这些占位符是类、结构、接口和方法所存储或使用的一个或多个类型的占位符。 泛型集合类可以将类型参数用作它所存储的对象的类型的占位符; 类型参数作为其字段的类型和其方法的参数类型出现。 泛型方法可以将其类型参数用作其返回值的类型或者其形参的类型之一。 摘自《Microsoft .NET Framework S... 阅读全文
posted @ 2009-07-21 23:03 于斯人也 阅读(1484) 评论(1) 推荐(0)
摘要:1.Web 应用程序执行时如果发生异常,通过配置严禁将任何技术信息暴露:Web.Config:[代码]2.在客户端应用程序2.1 程序代码中一定要拼接 "参数化 SQL" ,并采取安全的"命令参数式" ADO.Net API,连接数据库并提交该查询,另外今后尽量减少应用程序拼接 SQL,而多使用存储过程。参阅如下代码:[代码]2.2 程序代码中直接调用存储过程,采取安全的"命令参数式" ADO.N... 阅读全文
posted @ 2009-07-19 13:59 于斯人也 阅读(4408) 评论(0) 推荐(0)
摘要:namespace Microsoft.Security.Application{ #region Namespaces using System; using System.Drawing; using System.Web; using System.Text; #endregion #region Namespace - Microsoft.Security.Application publ... 阅读全文
posted @ 2009-07-16 12:05 于斯人也 阅读(1731) 评论(0) 推荐(0)
摘要:/*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... 阅读全文
posted @ 2009-06-19 16:24 于斯人也 阅读(2755) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2009-06-08 23:35 于斯人也 阅读(1917) 评论(0) 推荐(0)
摘要:namespace Microshaoft{ using System.IO; using System.Text; using System.Collections.Generic; public static class EncodingHelper { public static Encoding IdentifyEncoding ( Stream stream , Encoding def... 阅读全文
posted @ 2009-05-23 13:26 于斯人也 阅读(2654) 评论(0) 推荐(0)
摘要:namespace Microsoft.ChannelSDK.Tools.FindPrivateKey{ using System; using System.IO; using System.Security.Cryptography.X509Certificates; using System.Runtime.InteropServices; class FindPrivateKey { st... 阅读全文
posted @ 2009-05-19 23:02 于斯人也 阅读(3520) 评论(0) 推荐(0)
摘要:/*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... 阅读全文
posted @ 2009-05-19 22:59 于斯人也 阅读(3384) 评论(0) 推荐(1)
摘要: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><... 阅读全文
posted @ 2009-05-11 23:24 于斯人也 阅读(2369) 评论(0) 推荐(0)
摘要:namespace Microshaoft{ using System; using System.IO; using System.Web.Services.Protocols; using System.Configuration; public class TraceSoapMessagesLoggerSoapExtension : SoapExtension { private Strea... 阅读全文
posted @ 2009-05-11 11:55 于斯人也 阅读(1915) 评论(0) 推荐(0)