当我们从元组读取数据时需要类型转换 [英] Type cast is required when we read data from tuple

查看:98
本文介绍了当我们从元组读取数据时需要类型转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我们从元组读取数据时,需要输入类型?

解决方案

如果使用System.ValueTuple,请参阅我的MSDN代码示例,其中包含
丢弃


https://code.msdn.microsoft.com/C-7-Tuples-Discards-and -027da8e5?导向= 0


when we read data from tuple then type cast is required?

解决方案

If working with System.ValueTuple see my MSDN code sample which includes discards.

https://code.msdn.microsoft.com/C-7-Tuples-Discards-and-027da8e5?redir=0


这篇关于当我们从元组读取数据时需要类型转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆