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

电子商务网站建设与管理李建忠凡科网站能在百度做推广吗

电子商务网站建设与管理李建忠,凡科网站能在百度做推广吗,厦门网站建设系统,牡丹江城乡建设局网站字面解释 explicit:清楚明白的;易于理解的;(说话)清晰的,明确的;直言的;坦率的;直截了当的;不隐晦的;不含糊的。 implicit:含蓄的;不直接言明的;成为一部分的;内含的;完全的;无疑问的。 operator:操作人员;技工;电话员;接线员;…

字面解释

explicit:清楚明白的;易于理解的;(说话)清晰的,明确的;直言的;坦率的;直截了当的;不隐晦的;不含糊的。

implicit:含蓄的;不直接言明的;成为一部分的;内含的;完全的;无疑问的。

operator:操作人员;技工;电话员;接线员;(某企业的)经营者,专业公司。

专业解释

explicit用于强制转换,implicit用于隐式转换

用法

public static 返回的结果类型 operator unary-operator (参数类型 param)
unary-operator:+ - ! ~ ++ — true false
public static 返回的结果类型 operator binary-operator (参数类型 param1, 参数类型 param)
binary-operator:+ - * / % & | ^ << >> == != > < >= <=
public static implicit operator 返回的结果类型 (参数类型 param )
public static explicit operator 返回的结果类型 (参数类型 param )

explicit、implicit都是与operator一起操作使用的,operator 关键字用于在类或结构声明中声明运算符。

示例

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;namespace ConversionOperator
{public class IntDouble{private readonly int intV;private readonly double doubleV;public IntDouble(int value) : this(value, 0){}public IntDouble(double value) : this(0, value){}public IntDouble(int intV, double doubleV){this.intV = intV;this.doubleV = doubleV;}//将IntDouble类型隐式转为int类型,返回int类型public static implicit operator int(IntDouble intdouble){return intdouble.intV;}//将IntDouble类型显式转为double类型,返回double类型public static explicit operator double(IntDouble intdouble){return intdouble.doubleV;}//将int类型隐式转化为IntDoublepublic static implicit operator IntDouble(int intdouble){return new IntDouble(intdouble);}//将double类型显式转化为IntDoublepublic static explicit operator IntDouble(double intdouble){return new IntDouble(intdouble);}public static IntDouble operator ++(IntDouble intdouble){var t = intdouble.intV + 1;var t2 = intdouble.doubleV + 1;var temp = new IntDouble(t, t2);return temp;}public override string ToString(){return $"intV:{intV},doubleV:{doubleV}";}}internal class Program{static void Main(string[] args){IntDouble doubleV = (IntDouble)2.1;Console.WriteLine($"原始数据:{doubleV}");doubleV++;//此处IntDouble显示转为double类型double c = (double)doubleV;//此处IntDouble隐示转为int类型int c2 = doubleV;Console.WriteLine($"int的值:{c2},double的值:{c}");Console.WriteLine($"{doubleV}");Console.ReadKey();}}
}

结果

http://www.yayakq.cn/news/495130/

相关文章:

  • 做开箱的网站html怎么做多个网页
  • 筑云电商网站建设公司淄博学校网站建设公司
  • 中小型网站开发网站站外推广的内外链接怎么做
  • 建wordpress丹阳网站优化
  • 网站后台怎么上传图片产品洪江市网站
  • 巨鹿网站建设设计在线花钱做网站
  • 互联网教育网站开发查询域名信息
  • 动漫做h免费网站有哪些微信推广引流方法
  • 房产网站模板绍兴网站建设哪好
  • 网站设计流程步骤企业信息查询app哪个最好
  • 上杭网站建设o2o电子商务网站建设
  • wordpress建站的好处大连小型网站建设
  • 模拟网站建设织梦网站图标
  • 中国建设网官方网站电子银行小公司简介模板
  • 广东建设公司网站烟台定制网站建设价格
  • 网站建设接单渠道做爰片免费观看网站
  • 云服务器怎么上传网站关键词分类
  • 网站建设需要多少人陕西省建设工程招投标信息网官网
  • 宣讲家网站支部建设重庆网站推广运营
  • 嘉兴ai人工智能开发网站建设好用的海报设计网站
  • 越秀区建设水务局网站北京高端网站建
  • 甜品网站建设项目规划书论坛建设免费
  • 手机怎么上wap网站茶类网站建设方案
  • 提出网络营销思想的网站改版计划oa系统手机端
  • 点样用外网访问自己做的网站教程网wordpress
  • 高端手机网站设计付费做网站关键词优化是怎么做的呀
  • 网站推广 优帮云手机图文制作软件
  • 新网官方网站登陆南宁模板做网站
  • 网站建设成功案例那个网站可以做考卷
  • 一般做个网站多少钱wordpress instagram