C#编程资料,编程资料分享-爱资料
分类:
String类使用的例子(1)

String类使用的例子(1)

栏目分类:C# 浏览次数:250 发布时间:2015-09-26

网站重构优化! CSS完全应用 using System; class myString public String str; public myString (char[] strValue) str = new String(strValue); Console.WriteLine(The string ' + str + ' has been initialised by passing an array of character...

TAG:
Exception Handling in C#

Exception Handling in C#

栏目分类:C# 浏览次数:207 发布时间:2015-09-26

Exception Handling in C# Level Author Intermediate Anonymous What 抯 Wrong with Return Codes? Most programmers have probably written code that looked like this: bool success =CallFunction(); if (!success) //process the error This works oka...

TAG:
如何用Visual C#做组件

如何用Visual C#做组件

栏目分类:C# 浏览次数:238 发布时间:2015-09-26

本文来源于阿里西西WEB开发社区http://www.alixixi.com收集整理,欢迎访问。 如何用Visual C#做组件 用Visual C#来做组件,其实是一件很容易的事情。至少比用VISUAL C++要容易的多。在本文中,...

TAG:
c# 中如何定义和接收消息?(转)

c# 中如何定义和接收消息?(转)

栏目分类:C# 浏览次数:173 发布时间:2015-09-26

在C#中目前我还没有找到发送消息的类成员函数,所以只能采用通过调用WIN 32 API 的 SendMessage() 函数实现。由于 SendMessage的参数中需要得到窗体的句柄(handler) ,所以又要调用另一个API...

TAG:
Singleton Pattern in CSharp

Singleton Pattern in CSharp

栏目分类:C# 浏览次数:262 发布时间:2015-09-26

注册Alixixi会员,创建你的WEB开发资料库, 马上注册! Singleton Pattern in CSharp Level Author Beginner Kunal Cheda Singleton assures that there is one and only one instance of the class and provides a global point of acces...

TAG:
c#中对文件的操作小结

c#中对文件的操作小结

栏目分类:C# 浏览次数:188 发布时间:2015-09-26

1、建立一个文本文件 public class FileClass public static void Main() WriteToFile(); static void WriteToFile() StreamWriter SW; SW=File.CreateText(c:\MyTextFile.txt); SW.WriteLine(God is greatest of them all); SW.WriteLine(This is s...

TAG:
老外编的程序(五)--如何使用全球标识符(GUID)

老外编的程序(五)--如何使用全球标识符(GUID)

栏目分类:C# 浏览次数:217 发布时间:2015-09-26

最大的网站源码资源下载站, www.alixixi.com. // Snippet shows how interfaces and coclasses can adorn the Guid attribute. // Running the regasm will generate .reg and .tlb files. Reg file can be // used to register the interface...

TAG:
老外编的程序(四)--HashTable的使用示例

老外编的程序(四)--HashTable的使用示例

栏目分类:C# 浏览次数:242 发布时间:2015-09-26

using System; using System.Collections; using System.Text; public class SamplesHashtable public static void Main() // Create and initialize a new Hashtable. Hashtable table = new Hashtable(); //Student Name, Grade table.Add(Jay, 100); table...

TAG:
老外编的程序(三)--正则表达式的Demo

老外编的程序(三)--正则表达式的Demo

栏目分类:C# 浏览次数:197 发布时间:2015-09-26

最新的WEB源码下载,马上去看看... 商业源码热门下载 www.alixixi.com using System.Text.RegularExpressions; class Test static string CapText(Match m) // get the matched string string x = m.ToString(); // if the first char i...

TAG:
老外编的程序(二)--System.Net的示例程序

老外编的程序(二)--System.Net的示例程序

栏目分类:C# 浏览次数:171 发布时间:2015-09-26

using System; using System.Net; using System.Text; using System.Collections.Specialized; public class WebClientSample public static void Main() try // Download the data to a buffer WebClient client = new WebClient(); Byte[] pageData = clien...

TAG: