上一页 1 ··· 6 7 8 9 10 11 12 13 下一页

2012年9月25日

C#进程的使用方法详解

摘要: 关于C#进程的一些学习,包含了进程的各个方面的知识,欢迎阅读C#进程学习,本机中的所有进程的监测与控制转载请注明出处:http://www.cnblogs.com/minotmin/using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Diagnostics;namespace ProcessMonitor{ 阅读全文

posted @ 2012-09-25 20:42 程序猴chengxuhou.com 阅读(1173) 评论(0) 推荐(2) 编辑

C#线程的使用

摘要: C#线程的使用简单示例代码如下:using System;using System.Threading;class Program{ static void Main(string[] args) { Thread.CurrentThread.Name = "主线程"; Thread thread1 = new Thread(new ThreadStart(Program.Output)); thread1.Name = "子线程1"; thread1.Priority = ThreadPriority.Lowest; ... 阅读全文

posted @ 2012-09-25 17:25 程序猴chengxuhou.com 阅读(7227) 评论(0) 推荐(1) 编辑

C#LINQ查询表达式用法

摘要: >代码如下,谢谢阅读,控制台应用程序:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;using System.Xml.Linq;namespace LinqQueryDemo{ class Student { public string Name { get; set; } public bool Sex { get; set; } public int Age { get; set; } } class Program { static 阅读全文

posted @ 2012-09-25 17:21 程序猴chengxuhou.com 阅读(4034) 评论(0) 推荐(0) 编辑

C#Lambda表达式的用法

摘要: 示例代码如下,控制台应用程序:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace LambdaExpressionDemo{ delegate void AddHandler(int a, int b); class Program { event AddHandler AddEvent; static void Main(string[] args) { int x = 10; int y = 5; Program program = new Program() 阅读全文

posted @ 2012-09-25 17:17 程序猴chengxuhou.com 阅读(477) 评论(0) 推荐(0) 编辑

C#3.0新特性之匿名类型

摘要: 示例代码如下,控制台应用程序:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace AnonymousTypeDemo{ class Program { static void Main(string[] args) { var personWang = new { Name = "张三", Sex = true, Age = 27 }; Console.WriteLine("Name属性:{0}",personWang.Na 阅读全文

posted @ 2012-09-25 17:14 程序猴chengxuhou.com 阅读(177) 评论(0) 推荐(0) 编辑

C#3.0新特性之隐式类型化局部变量

摘要: 示例代码如下:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace HiddenClassLocalVariablesDemo{ class Program { static void Main(string[] args) { var intAge = 27; var stringName = "张三"; var program = new Program(); if (intAge.GetType() == typeof(Int32)) Co 阅读全文

posted @ 2012-09-25 17:11 程序猴chengxuhou.com 阅读(414) 评论(0) 推荐(0) 编辑

2012年9月24日

C#实现邮件群发

摘要: C#实现邮件群发常常应用于网络营销,在网络营销方面卖的很火,大家完全可以做一个专业的群发软件去赚钱。尊重作者劳动成果,转发请注明出处:http://www.cnblogs.com/minotmin/附上邮件发送的基本代码:本例子中使用的QQSMTPusing System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms; 阅读全文

posted @ 2012-09-24 19:28 程序猴chengxuhou.com 阅读(4833) 评论(0) 推荐(2) 编辑

C#邮件发送的实现方法

摘要: 本段代码可以实现邮件的群发,主要是利用了SMTP的知识,测试没有错误,转发请注明出处:http://www.cnblogs.com/minotmin/using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Net.Mail;using System.IO;namespace 邮 阅读全文

posted @ 2012-09-24 19:23 程序猴chengxuhou.com 阅读(857) 评论(0) 推荐(0) 编辑

XML加约束操作技巧

摘要: XML加约束,dtd代码如下:转载请注明出处:http://www.cnblogs.com/minotmin/<?xml version="1.0" encoding="utf-8" ?><!DOCTYPE 应聘信息[ <!ELEMENT 应聘信息 (应聘者*)> <!ELEMENT 应聘者 (姓名,(本科|硕士|博士),(奖励|处分)*,(性别))> <!ELEMENT 姓名 (#PCDATA)> <!ELEMENT 本科 (#PCDATA)> <!ELEMENT 硕士 (#PCD 阅读全文

posted @ 2012-09-24 16:29 程序猴chengxuhou.com 阅读(305) 评论(0) 推荐(0) 编辑

C#进程管理启动和停止

摘要: C#进程的开始和结束,源码如下,谢谢转载请注明出处http://www.cnblogs.com/minotmin/using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.IO;//引用命名空间using System.Diagnostics;using System.Threading;namespace Sta 阅读全文

posted @ 2012-09-24 10:44 程序猴chengxuhou.com 阅读(3045) 评论(0) 推荐(0) 编辑

上一页 1 ··· 6 7 8 9 10 11 12 13 下一页

导航