• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
Dreama
只想要简简单单的快乐!
博客园    首页    新随笔    联系   管理     
上一页 1 ··· 3 4 5 6 7
2013年11月20日
C#泛型类的简单创建与使用
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication13{ class Program { static void Main(string[] args) { Test t = new Test("Age",16); t.Run(); t.SetT1Value = "Height"; t.SetT2Va... 阅读全文
posted @ 2013-11-20 22:52 Dreamma 阅读(503) 评论(0) 推荐(0)
线程、委托、lambda运算符的简单示例
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;namespace ConsoleApplication11{ class Program { public delegate void TestDeleagte(string temp); static void Main(string[] args) { Thread t = new Thread(() =>... 阅读全文
posted @ 2013-11-20 20:55 Dreamma 阅读(363) 评论(0) 推荐(0)
2013年11月19日
异步编程中使用帮助类来实现Thread.Start()的示例
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading; 6 7 namespace ConsoleApplication9 8 { 9 class Program10 {11 static void Main(string[] args)12 {13 14 15 // 异步调用 16 // 将需传递给异步执行方法数... 阅读全文
posted @ 2013-11-19 20:40 Dreamma 阅读(443) 评论(0) 推荐(0)
2013年11月9日
C#操作INI配置文件示例
摘要: 源文件地址:http://pan.baidu.com/share/link?shareid=2536126078&uk=1761850335创建如图所示的控件:源代码: usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Runtime.InteropServices;namespa 阅读全文
posted @ 2013-11-09 15:35 Dreamma 阅读(3637) 评论(0) 推荐(1)
C#“简单加密文本器”的实现
摘要: 本示例只能加密英文文本,使用的算法为异或算法。源代码:http://pan.baidu.com/share/link?shareid=3241348313&uk=1761850335(本示例属于原创,转载请注明出处)1)打开此软件,可以点击如下图所示的“写入TXT”按钮,将所要加密的文本读到软件文本框里;2)所要加密的文本内容如下图的TXT文件所示;3)在“加密/解密字符”右边的文本框输入一个字符,本示例使用“-”字符,如下图所示;4)点击“加密”按钮后,将出现一个保存为“*.txts”文件的对话框,本示例使用“demo.txts”,将该文件保存后将生成一个“demo.txts”的文件 阅读全文
posted @ 2013-11-09 15:29 Dreamma 阅读(1449) 评论(0) 推荐(0)
C# 读取XML文件示例
摘要: 有关XML文件编写规范,请参考:http://www.w3school.com.cn/xml/index.aspXML内容如下(文件名为:Information.xml):浏览器显示: 001Choi21MaleGuiLin 002Li18FemaleShanghai 003Xu28MaleBeijing 004Xi19MaleHongkong 使用TreeView控件编写代码如下(完整项目文件,请从http://pan.baidu.com/s/1eylW下载): usingSystem;usingSystem.Collections.Generic;usingSystem.Comp... 阅读全文
posted @ 2013-11-09 15:24 Dreamma 阅读(3454) 评论(0) 推荐(0)
C# LINQ to XML示例
摘要: static void Main(string[] args) { // Create the data source by using a collection initializer. var students = new[] { new {First="Svetlana", Last="Ome 阅读全文
posted @ 2013-11-09 15:16 Dreamma 阅读(306) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3

© 本文章版权归 Dreama 所有, 转载授权请联系: cnxy@88.com

如果本文对您有帮助,欢迎支持原创

支付宝

支付宝扫码支持

微信

微信赞赏支持