c# uri.host

Uri.FromHex()方法 (Uri.FromHex() Method)

Uri.FromHex() method is a static method that returns an integer that represents a decimal digit of specified hex char.

Uri.FromHex()方法是一个静态方法,该方法返回一个整数,该整数表示指定的十六进制字符的十进制数字。

Syntax:

句法:

    int Uri.FromHex (char ch);

Parameter(s):

参数:

  • char ch – represents the specified hex char.

    char ch –表示指定的十六进制字符。

Return value:

返回值:

The return type of this method is int, it returns an integer that represents a decimal digit of specified hex char.

此方法的返回类型为int ,它返回一个整数,该整数表示指定的十六进制char的十进制数字。

Example to demonstrate example of Uri.FromHex() method

演示Uri.FromHex()方法示例的示例

using System;
class UriExample
{//Entry point of Program
static public void Main()
{char ch1 = 'e';
char ch2 = 'g';
int decimalDigit = 0;
if (Uri.IsHexDigit(ch1))
{decimalDigit = Uri.FromHex(ch1);
Console.WriteLine("Hex Digit: {0}, decimal digit: {1}",ch1,decimalDigit);
}
else
Console.WriteLine("It is not hex digit");
if (Uri.IsHexDigit(ch2))
{decimalDigit = Uri.FromHex(ch2);
Console.WriteLine("Hex Digit : {0}, decimal digit: {1}", ch2, decimalDigit);
}
else
Console.WriteLine("It is not hex digit");
}
}

Output

输出量

Hex Digit: e, decimal digit: 14
It is not hex digit

翻译自: https://www.includehelp.com/dot-net/uri-fromhex-method-with-example.aspx

c# uri.host

c# uri.host_C#| Uri.FromHex()方法与示例相关推荐

  1. c# uri.host_C#| Uri.GetLeftPart()方法与示例

    c# uri.host Uri.GetLeftPart()方法 (Uri.GetLeftPart() Method) Uri.GetLeftPart() method is an instance m ...

  2. c# uri.host_C#| Uri.IsHexEncoding()方法与示例

    c# uri.host Uri.IsHexEncoding()方法 (Uri.IsHexEncoding() Method) Uri.IsHexEncoding() method is a stati ...

  3. c# uri.host_C#| Uri.CheckHostName()方法与示例

    c# uri.host Uri.CheckHostName()方法 (Uri.CheckHostName() Method) Uri.CheckHostName() method is a stati ...

  4. c# uri.host_C#| Uri.EscapeUriString()方法与示例

    c# uri.host Uri.EscapeUriString()方法 (Uri.EscapeUriString() Method) Uri.EscapeUriString() method is a ...

  5. c# uri.host_C#| 具有示例的Uri.Equality()运算符

    c# uri.host Uri.Equality()运算符 (Uri.Equality() Operator) Uri.Equality() Operator is overloaded which ...

  6. c# uri.host_C#| 具有示例的Uri.Host属性

    c# uri.host Uri.Host属性 (Uri.Host Property) Uri.Host Property is the instance property of Uri class w ...

  7. c# uri.host_C#| Uri.HostNameType属性与示例

    c# uri.host Uri.HostNameType属性 (Uri.HostNameType Property) Uri.HostNameType Property is the instance ...

  8. android 缩略图uri_课题_android系统通过图片绝对路径获取URI的三种方法

    最近做项目要通过图片的绝对路径找到图片的 URI ,然后删除图片,小小总结一下获取 URI 的方法,亲自试 验在 android 4.1.3 的系统上都是可用的. 1. 将所有的图片路径取出,遍历比较 ...

  9. css不支持data image,CSS_CSS中使用image data URI来处理图片的方法,即将图片资源转换为 base64 字 - phpStudy...

    CSS中使用image data URI来处理图片的方法 即将图片资源转换为 base64 字符串格式嵌到页面或样式中.这样连图片的请求链接都省了. 如: 使用方式 CSS Code复制内容到剪贴板 ...

最新文章

  1. GNN教程:GraghSAGE算法细节详解!
  2. 漫画:阿里巴巴四十大盗的故事-背包问题
  3. GdiPlus[12]: IGPLinearGradientBrush 的其他构建方式
  4. Oracle创建删除用户、角色、表空间、导入导出数据库命令行方式总结
  5. mysql加删查语句_MySQL基本语句——增、删、查、改
  6. APF filter到底支持多复杂的条件
  7. java内存模型概述_Java内存模型-快速概述和注意事项
  8. 元宵节正月十五主题海报还没设计好,PSD分层模板来喽!
  9. js 取得input绑定的datalist中的值_原生JS写一个ToDo Demo
  10. 小D课堂-SpringBoot 2.x微信支付在线教育网站项目实战_4-3.登录检验JWT实战之封装通用方法...
  11. Java知识积累——参数个数可变的函数(Varargs)
  12. nokia 5220 XpressMusic 自己刷机
  13. 《Mars说光场》系列文章整理
  14. matlab求阶乘函数的代码,matlab阶乘
  15. 安卓搞机教程--修改设置里 添加选项 添加文字 修改图标 修改版本号等等 实例解析
  16. python爬取拉勾网_Python搭建代理池爬取拉勾网招聘信息
  17. d2l.train_ch3函数,将输入数据转化为该函数所接受的格式
  18. 快手与欧足联达成版权合作,获本赛季欧冠直播和短视频二创授权
  19. 1~100以内的所有素数
  20. AtomicBoolean意义何在

热门文章

  1. php中改变函数路由,通过PHP重启路由器以更换IP(原创)
  2. TVM:交叉编译和RPC
  3. DVWA sql注入 WP
  4. unity如何往下挖地形_Unreal Engine地形系统辨析(一)
  5. python求平行四边形面积_python 已知平行四边形三个点,求第四个点的案例
  6. Linux基础(使用ssh服务管理远程主机1)
  7. Anaconda安装Tensorflow环境
  8. Ubuntu18.04 关于使用vnc的踩坑
  9. 上海交通大学2006年各学院本科生平均薪酬统计
  10. Kafka的配置文件详细描述