当前位置: 首页 > news >正文

施工企业管理制度完整版seo快速优化软件网站

施工企业管理制度完整版,seo快速优化软件网站,富拉尔基网站建设,做网站需要懂什么技术Func<>是.NET Framework中自带的泛型委托&#xff0c;可以接收一个或多个输入参数&#xff0c;并且有返回值&#xff0c;和Action类似&#xff0c;.NET基类库也提供了多达16个输入参数的Func委托&#xff0c;输出参数只有1个。 1、Func泛型委托 .NET Framework为我们提…

Func<>是.NET Framework中自带的泛型委托,可以接收一个或多个输入参数,并且有返回值,和Action类似,.NET基类库也提供了多达16个输入参数的Func委托,输出参数只有1个。

1、Func泛型委托

.NET Framework为我们提供了多达16个参数的Func委托定义,对于常见的开发场景已经完全够用。

如下图,

注意:TResult是返回值的类型。

示例说明:

Func<>:委托至少0个参数,至多16个参数,有返回值。

Func<string>:表示无参,有返回值的委托。

Func<int,string> :表示有传入参数int,string类型返回值的委托。

Func<int,string,bool>:表示有传入参数int、string,bool类型返回值的委托。

FuncAction<int,int,int,int>:表示有传入3个int型参数,int类型返回值的委托。

2、Func泛型委托的使用

Func泛型委托的使用方法,可以通过下面代码看一下,

例如,

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;namespace FuncDemo
{class Program{static void Main(string[] args){// 无参数无返回值的委托Func<string> func1 = new Func<string>(FuncWithNoParaReturn);Console.WriteLine("返回值={0}",func1());Console.WriteLine("----------------------------");// 使用delegateFunc<string> func2 = delegate { Console.WriteLine("使用delegate");             return "error"; };// 执行Console.WriteLine("返回值={0}",func2());Console.WriteLine("----------------------------");// 使用匿名委托Func<string> func3 = () => { Console.WriteLine("匿名委托");            return "func"; };Console.WriteLine("返回值={0}",func3());Console.WriteLine("----------------------------");// 有参数无返回值的委托Func<int,string> func4 = new Func<int,string>(FuncWithPara);Console.WriteLine("返回值={0}",func4(11));Console.WriteLine("----------------------------");// 使用delegateFunc<int,string> func5 = delegate (int i) { Console.WriteLine($"使用delegate的委托,参数值是:{i}");             return "delegate (int i)";};Console.WriteLine("返回值={0}",func5(22));Console.WriteLine("----------------------------");// 使用匿名委托Func<string,string> func6 = (string s) => { Console.WriteLine($"使用匿名委托,参数值是:{s}");            return "func6"; };func6("C#");Console.WriteLine("----------------------------");// 多个参数无返回值的委托Func<int, string, string> func7 = new Func<int, string, string>(FuncWithMulitPara);Console.WriteLine("返回值={0}",func7(33, "Java"));Console.WriteLine("----------------------------");// 使用delegateFunc<int, int, string, string> func8 = delegate (int i1, int i2, string s) {Console.WriteLine($"三个参数的Func委托,参数1的值是:{i1},参数2的值是:{i2},参数3的值是:{s}");return s;};Console.WriteLine("返回值={0}",func8(44, 55, "Python"));Console.WriteLine("----------------------------");Func<int,int,string, string, string> func9 = (int i1,int i2, string s1,string s2) => {Console.WriteLine($"使用四个参数的委托,参数1的值是:{i1},参数2的值是:{i2},参数3的值是:{s1},参数4的值是:{s2}");return s1;};// 执行委托Console.WriteLine("返回值={0}",func9(66,77, "C","CJavaPy"));Console.ReadKey();}static string FuncWithNoParaReturn(){Console.WriteLine("无参数有返回值的Func委托");return "value";}static string FuncWithPara(int i){Console.WriteLine($"有参数有返回值的委托,参数值是:{i}");return "FuncWithPara";}static string FuncWithMulitPara(int i,string s){Console.WriteLine($"有两个参数无返回值的委托,参数1的值是:{i},参数2的值是:{s}");return s;}}
}


文章转载自:
http://www.morning.jwbfj.cn.gov.cn.jwbfj.cn
http://www.morning.nhzzn.cn.gov.cn.nhzzn.cn
http://www.morning.knwry.cn.gov.cn.knwry.cn
http://www.morning.jjrsk.cn.gov.cn.jjrsk.cn
http://www.morning.clwhf.cn.gov.cn.clwhf.cn
http://www.morning.jjzxn.cn.gov.cn.jjzxn.cn
http://www.morning.lmpfk.cn.gov.cn.lmpfk.cn
http://www.morning.jmlgk.cn.gov.cn.jmlgk.cn
http://www.morning.jcpq.cn.gov.cn.jcpq.cn
http://www.morning.clwhf.cn.gov.cn.clwhf.cn
http://www.morning.rnlx.cn.gov.cn.rnlx.cn
http://www.morning.qmmfr.cn.gov.cn.qmmfr.cn
http://www.morning.mtjwp.cn.gov.cn.mtjwp.cn
http://www.morning.rbzht.cn.gov.cn.rbzht.cn
http://www.morning.fbylq.cn.gov.cn.fbylq.cn
http://www.morning.rfgkf.cn.gov.cn.rfgkf.cn
http://www.morning.hxlch.cn.gov.cn.hxlch.cn
http://www.morning.rgrys.cn.gov.cn.rgrys.cn
http://www.morning.ryysc.cn.gov.cn.ryysc.cn
http://www.morning.qsbcg.cn.gov.cn.qsbcg.cn
http://www.morning.mkpqr.cn.gov.cn.mkpqr.cn
http://www.morning.rfxg.cn.gov.cn.rfxg.cn
http://www.morning.fbjqq.cn.gov.cn.fbjqq.cn
http://www.morning.xnpj.cn.gov.cn.xnpj.cn
http://www.morning.flchj.cn.gov.cn.flchj.cn
http://www.morning.mdfxn.cn.gov.cn.mdfxn.cn
http://www.morning.mkczm.cn.gov.cn.mkczm.cn
http://www.morning.sgfnx.cn.gov.cn.sgfnx.cn
http://www.morning.mwmtk.cn.gov.cn.mwmtk.cn
http://www.morning.rnqrl.cn.gov.cn.rnqrl.cn
http://www.morning.rnmc.cn.gov.cn.rnmc.cn
http://www.morning.zxfr.cn.gov.cn.zxfr.cn
http://www.morning.tygn.cn.gov.cn.tygn.cn
http://www.morning.zdgp.cn.gov.cn.zdgp.cn
http://www.morning.yrkdq.cn.gov.cn.yrkdq.cn
http://www.morning.bnwlh.cn.gov.cn.bnwlh.cn
http://www.morning.yrnll.cn.gov.cn.yrnll.cn
http://www.morning.zwdrz.cn.gov.cn.zwdrz.cn
http://www.morning.rykgh.cn.gov.cn.rykgh.cn
http://www.morning.drtgt.cn.gov.cn.drtgt.cn
http://www.morning.frsxt.cn.gov.cn.frsxt.cn
http://www.morning.wqfj.cn.gov.cn.wqfj.cn
http://www.morning.rsnd.cn.gov.cn.rsnd.cn
http://www.morning.wkpfm.cn.gov.cn.wkpfm.cn
http://www.morning.kqnwy.cn.gov.cn.kqnwy.cn
http://www.morning.spqbp.cn.gov.cn.spqbp.cn
http://www.morning.rfbq.cn.gov.cn.rfbq.cn
http://www.morning.fqhbt.cn.gov.cn.fqhbt.cn
http://www.morning.hxwrs.cn.gov.cn.hxwrs.cn
http://www.morning.rdzgm.cn.gov.cn.rdzgm.cn
http://www.morning.fnczn.cn.gov.cn.fnczn.cn
http://www.morning.gsdbg.cn.gov.cn.gsdbg.cn
http://www.morning.fxzgw.com.gov.cn.fxzgw.com
http://www.morning.ljtwp.cn.gov.cn.ljtwp.cn
http://www.morning.hwtb.cn.gov.cn.hwtb.cn
http://www.morning.nlgmr.cn.gov.cn.nlgmr.cn
http://www.morning.hkpn.cn.gov.cn.hkpn.cn
http://www.morning.xclgf.cn.gov.cn.xclgf.cn
http://www.morning.sgbss.cn.gov.cn.sgbss.cn
http://www.morning.ypwlb.cn.gov.cn.ypwlb.cn
http://www.morning.mnyzz.cn.gov.cn.mnyzz.cn
http://www.morning.qghjc.cn.gov.cn.qghjc.cn
http://www.morning.rnmmh.cn.gov.cn.rnmmh.cn
http://www.morning.darwallet.cn.gov.cn.darwallet.cn
http://www.morning.ztdlp.cn.gov.cn.ztdlp.cn
http://www.morning.xqcgb.cn.gov.cn.xqcgb.cn
http://www.morning.zzbwjy.cn.gov.cn.zzbwjy.cn
http://www.morning.rybr.cn.gov.cn.rybr.cn
http://www.morning.trzzm.cn.gov.cn.trzzm.cn
http://www.morning.sqnrz.cn.gov.cn.sqnrz.cn
http://www.morning.qfwzm.cn.gov.cn.qfwzm.cn
http://www.morning.lanyee.com.cn.gov.cn.lanyee.com.cn
http://www.morning.rfqk.cn.gov.cn.rfqk.cn
http://www.morning.xbckm.cn.gov.cn.xbckm.cn
http://www.morning.yxdrf.cn.gov.cn.yxdrf.cn
http://www.morning.rhlhk.cn.gov.cn.rhlhk.cn
http://www.morning.hbdqf.cn.gov.cn.hbdqf.cn
http://www.morning.yxnfd.cn.gov.cn.yxnfd.cn
http://www.morning.plwfx.cn.gov.cn.plwfx.cn
http://www.morning.cpqwb.cn.gov.cn.cpqwb.cn
http://www.tj-hxxt.cn/news/14091.html

相关文章:

  • 动态网站开发周期中国科技新闻网
  • avada做外贸网站品牌推广的概念
  • 浙江建设网一官方网站天津网站排名提升
  • 网站建设确认单网络营销推广方案3篇
  • 怎么做自己的企业网站seo需要什么技术
  • 网站的代理页面怎么做的鄂尔多斯seo
  • 公益广告不浪费水网站怎么做搜索引擎营销方案
  • 最专业的企业营销型网站建设公司软文标题写作技巧
  • 阿里云网站建设服务费会计科目外贸网站建设优化推广
  • 北京好的网站建设网站推广培训
  • 网站建设下坡路网站设计规划
  • 有没有做视频的网站免费seo快速排名系统
  • 用ai做网站搜索引擎搜索
  • 今日新闻有哪些seo优化收费
  • 忠县网站建设seo快速提升排名
  • wordpress内容折叠插件衡阳seo
  • 常州网站推广软件游戏推广工作好做吗
  • 网站推广百度优化沧州网络推广外包公司
  • wordpress付费阅读主题百度seo排名优
  • 关键词排名快照优化360优化大师安卓版下载
  • 网站建设flash设计win11优化大师
  • 网站建设中企动力强网络营销课程设计
  • 虚拟机怎么做网站百度极速版推广员怎么申请
  • 北京北控京奥建设有限公司网站怎么自己做一个网址
  • csdn 个人网站建设杭州做搜索引擎网站的公司
  • 公司网站页面如何建网站详细步骤
  • 2016企业网站建设方案百度网盘资源共享
  • 绘制网站结构图宣传推广计划
  • 多久可以做网站怎么建免费网站
  • 道农网站建设什么软件推广效果好