![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#基础知识
飞奔的QQ
以后这就是我家啦!!!
展开
-
string转化为Guid
string str = "b49ee95d-e137-4b72-bdcb-c6ed3b71d87c"; Guid guid = new Guid(str); Console.WriteLine(guid); Guid g = Guid.Parse(str); Console.WriteLine(g...原创 2019-07-17 12:26:50 · 3449 阅读 · 0 评论 -
C# 程序运行后不希望Winform窗体大小再随鼠标拉动变化
窗体FormBorderStyle属性设置为:FixedSingle,再把最大化MaximizeBox属性设置为:false原创 2019-07-11 15:15:32 · 219 阅读 · 0 评论 -
Directory和File的使用
//string path = "E://飞秋";//和下面效果一样 string path = "E:/飞秋"; string path1 = "E:/飞秋/2.txt"; if(!Directory.Exists(path))//判断文件夹是否存在 { Direc...原创 2019-05-29 17:35:59 · 801 阅读 · 0 评论 -
值传递和引用传递的区别
以值传递参数当实参当作值来传递时,就产生了一个新的拷贝。class Test { static void Main(string[] args) { int x=8; Fo(x); Console.WriteLine("...翻译 2019-05-17 18:04:56 · 206 阅读 · 0 评论