当前位置:编程学习 > C#/ASP.NET >>

谁有关于C#的小程序

谁有关于C#的小程序要初学者的那种,还有关于C#的资料我要学习C#,有的能给我点么 谢谢了!
答案:
我有100个C#示例小程序,还有稍微深一点的.net示例大全  里面也有好多个
答案补充
你要的话,我传给你
 你要那方面的?
c#的资料的话 我建议你去,买书看
那样能搞的懂些
你要什么样的啊,呵呵,我这里一大把:IO流
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.IO;

namespace AsyncFileStream
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Main thread started. ThreadID = {0}",
Thread.CurrentThread.GetHashCode());

// Must use this ctor to get a FileStream with asynchronous
// read or write access.
FileStream fs = new FileStream("logfile.txt", FileMode.Append,
FileAccess.Write, FileShare.None, 4096, true);

string msg = "this is a test";
byte[] buffer = Encoding.ASCII.GetBytes(msg);

// Start the asynchronous write. WriteDone invoked when finished.
// Note that the FileStream object is passed as state info to the
// callback method.
fs.BeginWrite(buffer, 0, buffer.Length,
new AsyncCallback(WriteDone), fs);
}

private static void WriteDone(IAsyncResult ar)
{
Console.WriteLine("AsyncCallback method on ThreadID = {0}",
Thread.CurrentThread.GetHashCode());

Stream s = (Stream)ar.AsyncState;
s.EndWrite(ar);
s.Close();
}
}
}
你想要什么样的?我马上给你写

上一个:C#开发的.net程序如何做单元测试
下一个:我现在学的是C#~但我又想学JAVA

CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,