摘要:
实际项目当中用到的案例,个人笔记。 USE [CA-SM]GO/****** Object: StoredProcedure [dbo].[PG_SM_AddSum] Script Date: 07/08/2013 18:56:43 ******/SET ANSI_NULLS ONGOSET QUO 阅读全文
摘要:
using System.Text;using System;using System.Net.Mail;using System.Net;using System.IO;namespace MailDemo{ public static void CreateCopyMessage(string server) { MailAddress from = new MailAddress("yuanyuncai_2010@163.com", "Ben Miller"); MailAddress to = new MailAddress("zhic 阅读全文
摘要:
服务器端: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net.Sockets;using System.Net;namespace Server{ cl 阅读全文
摘要:
TripleDES.Mode:获取或设置对称算法的运算模式; CipherMode.CBC:指定用于加密的块密码模式 CBC 密码块链 (CBC) 模式引入了反馈。每个纯文本块在加密前,通过按位“异或”操作与前一个块的密码文本结合。这样确保了即使纯文本包含许多相同的块,这些块中的每一个也会加密为不同 阅读全文
只有注册用户登录后才能阅读该文。 阅读全文
摘要:
// 注意: 使用“重构”菜单上的“重命名”命令,可以同时更改代码和配置文件中的接口名“IService1”。 //使用单向和请求-答复协定访问 WCF 服务 //1.声明服务协定。 要成为单向的操作必须在 OperationContractAttribute 中将 IsOneWay 设置为 true。 下面的代码声明具有 Add、Subtract、Multiply 和 Divide 的单向操作的 IOneWayCalculator 协定。 它还定义称为 SayHello 的请求响应操作。 //2.实现服务协定。 下面的代码实现 IOnewayCalculator 接口。 //3.在控制台.. 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Runtime.Serialization;using System.ServiceModel;using System.ServiceModel.Web;using System.Text;namespace WcfService1{ // 注意: 使用“重构”菜单上的“重命名”命令,可以同时更改代码和配置文件中的接口名“IService1”。 /** * 1.与下列各项之间的服务协定接口: * a.同步 SampleMethod 操作。 阅读全文
摘要:
第1章 Collections类、泛型类和Timing类概述这本书采用C#语言来讨论数据结构与算法的开发和实现。书中用到的数据结构都可以在.NET框架类库System.Collections中找到。本章会逐步展开群集的概念,首先是讨论自身特有的Collection类(采用数组作为我们实现的基础)的实现,接着会介绍.NET框架中Collection类的内容。泛型是C#语言2.0版新增加的一个重要补充。泛型允许C#语言程序员可以独立地或者在一个类中编写函数的某一个版本,而且不需要为了不同的数据类型而多次负载此函数。C#语言2.0版还为个别几种System.Collections数据结构实现范型提供 阅读全文
摘要:
using System.Text; using System.Collections.Generic; using System.Linq; using System; namespace 观察者 { public interface IServer { void Notice( IClient C); } public interface IClien... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text; namespace 前序遍历_中序遍历_后序遍历{ class Program { static void Main( string[ 阅读全文