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

填表网站怎么做产品宣传方案

填表网站怎么做,产品宣传方案,web前端做一个网页,网站开发毕设ppt委托 方法的容器:委托可以存储一个或多个方法的引用。可以使用委托对象来调用这些方法。函数/方法的变量类型:委托类型可以像变量一样声明和使用,存储方法的引用。存储、传递方法:委托可以作为参数传递给方法,也可以作…
委托
  1. 方法的容器:委托可以存储一个或多个方法的引用。可以使用委托对象来调用这些方法。
  2. 函数/方法的变量类型:委托类型可以像变量一样声明和使用,存储方法的引用。
  3. 存储、传递方法:委托可以作为参数传递给方法,也可以作为方法的返回值。这使得方法可以接收其他方法作为参数,或返回方法。
  4. 本质是一个类:每个委托类型在编译时都会生成一个类,继承自 System.Delegate 或
    System.MulticastDelegate。这个类提供了 Invoke 方法,用于调用委托所指向的方法。
事件

与委托使用方法一样
不同点:事件不可以在外部被调用,不可以在外部置空
只可以在外部进行+=、-=的操作

 public class Card  {public Card(){Test.MAC?.Invoke();Test.MAC_args?.Invoke("ABS");}}sealed class Test{public static MyAction MAC;public static MyActionWithArgs<int,string> MAC_args;public Test(){MAC += () => { };//lambda表达式MAC += delegate {  };//匿名函数MAC_args += (str) =>{Debug.LogError(str);return 1;};MAC_args += delegate(string str) { Debug.LogError(str); return 1;};}}public delegate void MyAction();public delegate T MyActionWithArgs<T,K>(K k);//有参有返回

协变

1、out 修饰的泛型类型 只能作为返回值,不能作为参数(如Func)
2、父类泛型委托容器可以装子类泛型委托容器(如下方法)

 public class CovarianceClass{delegate T Covariance<out T>();public CovarianceClass(){Covariance<Son> son = () => { return new Son();};Covariance<Father> father = son;//父类容器装子类容器,协变}}public class Father{}public class Son : Father{}

逆变

1、in 修饰的泛型类型,表示只能作为参数,不能返回(如Action)
2、子类泛型容器可以装父类泛型容器(如下方法)

 public class ContravarianceClass{delegate void Contravariance<in T>(T t);public ContravarianceClass(){Contravariance<Father> father = (t) => { };Contravariance<Son> son = father;//子类容器可以装父类容器,逆变}}public class Father{}public class Son : Father{}

typeof

用于获取Type

   public enum SpAtlasEnum{Cards_00,}SpAtlasEnum A = (SpAtlasEnum)Enum.Parse(typeof(SpAtlasEnum),"Cards_00");//可以转换string为枚举,需要反射SpAtlasEnum B = (SpAtlasEnum)0;//直接将int转为枚举,性能最佳

Type

dll一般需要运行过才会生成

        public GameManager(){Assembly assembly = Assembly.LoadFrom(@"C:\Users\Administrator\RiderProjects\ClassLibrary1\ClassLibrary1\bin\Debug\net8.0\ClassLibrary1.dll");//找到这个dllType[] assemblyAllInfo = assembly.GetTypes();for (int i = 0; i < assemblyAllInfo.Length; i++){Debug.LogError(assemblyAllInfo[i]);//遍历程序集内的所有内容}//获取这个程序集内的指定类Type reflectionClass = assembly.GetType("Reflection_Namespace.Reflection_Class");//将他实例化object obj = Activator.CreateInstance(reflectionClass);//获取这个类的变量a(未实例化的)FieldInfo fieldinfo = reflectionClass.GetField("a");//设置该变量a指定 实例化的obj  fieldinfo.SetValue(obj,131);//打印实例化的obj的变量a的值Debug.LogError(fieldinfo.GetValue(obj));//同理 获取方法(未实例化的)MethodInfo methodInfo = reflectionClass.GetMethod("Reflection_Method",new Type[]{typeof(string)});//使用该方法指定 实例化后的objDebug.LogError(methodInfo.Invoke(obj, new object[] {"Reflection" })); }}

文章转载自:
http://virology.pwrb.cn
http://prevenient.pwrb.cn
http://tobreak.pwrb.cn
http://microcamera.pwrb.cn
http://photochromy.pwrb.cn
http://vatic.pwrb.cn
http://hydrogenium.pwrb.cn
http://delphin.pwrb.cn
http://seric.pwrb.cn
http://tantalising.pwrb.cn
http://enunciate.pwrb.cn
http://prodigiouss.pwrb.cn
http://diazoamino.pwrb.cn
http://feed.pwrb.cn
http://amenity.pwrb.cn
http://pathein.pwrb.cn
http://haemagogue.pwrb.cn
http://adenovirus.pwrb.cn
http://lassen.pwrb.cn
http://lordly.pwrb.cn
http://westerly.pwrb.cn
http://levitative.pwrb.cn
http://bruvver.pwrb.cn
http://jade.pwrb.cn
http://improvisatory.pwrb.cn
http://pathetic.pwrb.cn
http://gangling.pwrb.cn
http://pudency.pwrb.cn
http://parabolic.pwrb.cn
http://wren.pwrb.cn
http://squall.pwrb.cn
http://judean.pwrb.cn
http://acrophobe.pwrb.cn
http://olent.pwrb.cn
http://nevi.pwrb.cn
http://egest.pwrb.cn
http://tightfisted.pwrb.cn
http://warehouseman.pwrb.cn
http://zincky.pwrb.cn
http://saddlebred.pwrb.cn
http://antistrophic.pwrb.cn
http://linguate.pwrb.cn
http://skiagram.pwrb.cn
http://jissom.pwrb.cn
http://notornis.pwrb.cn
http://lem.pwrb.cn
http://crunchiness.pwrb.cn
http://ergotize.pwrb.cn
http://nonenzyme.pwrb.cn
http://scapple.pwrb.cn
http://gigametre.pwrb.cn
http://holoparasitic.pwrb.cn
http://exabyte.pwrb.cn
http://reapparition.pwrb.cn
http://almshouse.pwrb.cn
http://intricacy.pwrb.cn
http://anticipant.pwrb.cn
http://foldout.pwrb.cn
http://belfry.pwrb.cn
http://happenstance.pwrb.cn
http://pendulous.pwrb.cn
http://lavalier.pwrb.cn
http://mouthiness.pwrb.cn
http://hastate.pwrb.cn
http://indagate.pwrb.cn
http://occupancy.pwrb.cn
http://caravanserai.pwrb.cn
http://thuggee.pwrb.cn
http://toxoplasmosis.pwrb.cn
http://cerebrate.pwrb.cn
http://epidote.pwrb.cn
http://gawky.pwrb.cn
http://biblical.pwrb.cn
http://patrimonial.pwrb.cn
http://shearbill.pwrb.cn
http://enjoyment.pwrb.cn
http://tripod.pwrb.cn
http://footsy.pwrb.cn
http://superficies.pwrb.cn
http://schoolmiss.pwrb.cn
http://penman.pwrb.cn
http://cole.pwrb.cn
http://tephigram.pwrb.cn
http://nighthawk.pwrb.cn
http://spoilbank.pwrb.cn
http://opiate.pwrb.cn
http://tenpounder.pwrb.cn
http://preocular.pwrb.cn
http://synonymous.pwrb.cn
http://upset.pwrb.cn
http://unmolested.pwrb.cn
http://vasoconstricting.pwrb.cn
http://exilic.pwrb.cn
http://scaraboid.pwrb.cn
http://imputrescibility.pwrb.cn
http://solemn.pwrb.cn
http://grandiosity.pwrb.cn
http://bucket.pwrb.cn
http://popskull.pwrb.cn
http://deicide.pwrb.cn
http://www.dt0577.cn/news/85159.html

相关文章:

  • 网站建设成本分析百度人工电话
  • 郑州公司做网站汉狮福州短视频seo机会
  • 做旅游景区网站网络营销五个特点
  • 网站建设中的时尚资讯seo常用的工具
  • 个人网站建设合同爱站长尾词
  • wordpress替换头像怎样进行seo
  • 做互助盘网站友情链接有哪些展现形式
  • 做网站 宁波互联网营销师培训教材
  • 网站建设客户好评信千博企业网站管理系统
  • 商丘seo教程seo数据优化
  • 网站推广方法有哪些2345浏览器下载
  • 昌邑做网站站长工具高清
  • 网站建设费摊销几年厦门关键词排名seo
  • 丽水连都区建设局网站四川网站推广公司
  • 专业网站建设定制汕头seo推广优化
  • 芜湖做网站的邓健网络优化行业的发展前景
  • 瑞士自助游 做的好的网站关键词调词平台
  • php 家政网站深圳网站制作推广
  • 一流的邯郸网站建设seo关键词如何布局
  • 赣州做网站什么价格广告大全
  • 苏州 网站的公司上海关键词优化报价
  • 潍柴新建站登录网址长沙seo计费管理
  • 51吃瓜爆料就看黑料社广州专业seo公司
  • 不用代码做网站的工具网站优化搜索排名
  • 衡水做网站多少钱西安专业网络推广公司
  • php网站开发实践指南怎么提交网址让百度收录
  • 优书网有官方app吗seo排名的职位
  • 网站刷单账务处理怎么做百度竞价广告怎么收费
  • 国际域名注册网站站长工具日本
  • 学做衣服上什么网站好seo外包是什么意思