摘要:Math.Abs((own - two) * (two - there) * 2 + 1) == 3 阅读全文
摘要:listen 8095; #端口 server_name localhost; #域名可以有多个 用空格隔开 #charset koi8-r; #access_log logs/host.access.log main; location / { root E:\; #代理项目路径 index index.html; #项目的地址 } location /api { proxy_pass... 阅读全文
摘要:using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { //class bf //{ // ... 阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(s... 阅读全文
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.... 阅读全文
摘要:using System.Xml.Linq; static void Main(string[] args) { XDocument xDocument = new XDocument(new XElement("mployess", //创建跟元素 new XElement("name", "a"),new XElem... 阅读全文
摘要:class Program { public IEnumerator GetEnumerator() { IEnumerable my = BlackAndWhite(); return my.GetEnumerator(); } public IEnumerable Bl... 阅读全文
摘要:如果派生类只是用于输出值,那么这种结构化的委托有效性之间的常数关系叫做协变 就是创建一个派生类委托对象 让派生类赋值给基类对象 协变关键字out 对期望传入基类时允许传入派生对象的特性叫逆变 逆变关键字in 看一下实现代码 阅读全文
摘要:public delegate tr func(t1 p1, t2 p2);//泛型委托 //TR 返回的委托类型 class MyClass { static public string printstring(int p1, int p2) { return p1 + p2 + ""; } ... 阅读全文
摘要:class Program { public string Name; public int Age; public Program(string name ,int age) { Name = name; Age = age; } pu... 阅读全文
摘要:对于类型转换是否溢出可以用 checked和unchecked运算符 在unchecked上下文中会忽略溢出 在checked 会抛出异常 也可以用代码块 阅读全文
摘要:using System; namespace ConsoleApp1 { interface IInterface1 { void ft(); } interface IInterface2 { void ft(); } class MyClass : IInterface1, IInterfa... 阅读全文
摘要:delegate void del(); class MyClass1 { public event del eventcount;//创建事件并发布 public void Count() { for (int i = 0; i < 100; i++) { ... 阅读全文
摘要:delegate int del(int a); static void Main(string[] args) { //匿名方法的几种表现形式 del del = delegate (int x) { return x; }; ... 阅读全文
摘要:class a{} class b:a{} a[] arr=new a[3]; a[] arr2=new a[3]; 给arr 数组赋值 arr[0]=new a(); arr2[0]=new b(); 此时 arr2 数组也可以接受b类 因为继承关系协变 值类型数组没有协变 阅读全文
摘要:申明数组 int [3][ ] arr; arr[0][ ]=new int [ , ] { { 1,2},{3,3} } arr[2][ ]=new int [ , ] { { 1,2},{3,3} } arr[3][ ]=new int [ , ] { { 1,2},{3,3} } 输出方式 c 阅读全文
摘要:pq实例图 如下 : int x=12,y=10; int a; a=x&y; //a=8 下面是计算试子的和加减法一样 二进制的个位,十位,百位,千位,分别对应的是1,2,4,8 二进制每多一位只需要乘2 那个个位置有1 就加上该位置的十进制数 。 上面说&运算时,当两个二进制操作位都为1时,结果 阅读全文
摘要:字符 说明 示例 输出 阅读全文
摘要:对于Web系统开发来说,Net其实也是有好多知识点需要学的,虽然目前JAVA是主流,就业市场比较大,但Net也在积极的拥抱开源,大Net Core 2 出来了,这无疑给Net开发者带来更大的希望,好了,以下是自己画的知识图,给正在找工作的自己一个时间梳理下,同时也希望给你带来些许帮助,第一次画并鉴于 阅读全文

点击右上角即可分享
微信分享提示