![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
湖东路59号
这个作者很懒,什么都没留下…
展开
-
extern外部方法使用
外部方法使用C#简单例子 1、增加引用using System.Runtime.InteropServices; 2、声明和实现的连接[DllImport("kernel32", SetLastError = true)] 3、声明外部方法public static extern int GetCurrentDirectory(int a, StringBuilder b);原创 2017-07-05 08:54:47 · 1018 阅读 · 0 评论 -
C#基础总结1
一、注释 C#中的3中注释符 1)单行注释// 2)多行注释/*要注释的内容*/ 3)文档注释///(用来说明类或方法的作用增加代码的可读性) 二、vs中常用的快捷键 ctrl+k+d:快速对齐代码 折叠冗余代码:#Region和#EndRegion Ctrl+k+c:注释所选代码 ctrl+k+u:取消注释 三、数据类型 int、double、decimal用来存储金钱,值原创 2017-06-30 16:38:15 · 400 阅读 · 0 评论 -
C#要点
xmlns="http://www.w3.org/1999/xhtml"> rel="canonical" href="http://blog.csdn.net/taotao12312/article/details/72782415"/> http-equiv="Cache-Control"转载 2017-06-29 19:11:55 · 172 阅读 · 0 评论 -
params out ref 参数
一、原来函数这样传参 先看一个函数和函数调用。 static void Main(string[] args) { int num = 10; Test(num);//局部变量在使用之前赋值 //Test(10); //直接为局部变量赋值 } stat转载 2017-07-18 08:44:03 · 217 阅读 · 0 评论