本文介绍了如何在C#中使用信息关键字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! Hello All 运行我的C#以下代码并在一点上面临错误 下面是我的C#代码 _ lessons.Value = Convert.ToInt32((Information.IsNumeric(Request) [ edit_lessons])?请求[ edit_lessons]: 0 )); _hours.Value = Convert.ToDecimal((Information.IsNumeric(Request [ edit_hours ])?请求[ edit_hours]: 0 )); 错误: _ lessons.Value = Convert.ToInt32((Information.IsNumeric(Request [ edit_lessons])?请求[ edit_lessons]: 0 )); _hours.Value = Convert.ToDecimal((Information.IsNumeric(Request [ edit_hours ])?请求[ edit_hours]: 0 )); 名称'信息'在当前上下文中不使用解决方案 Hello AllAm running my below C# code and facing error in one pointBelow is my C# code_lessons.Value = Convert.ToInt32((Information.IsNumeric(Request["edit_lessons"]) ? Request["edit_lessons"] : 0)); _hours.Value = Convert.ToDecimal((Information.IsNumeric(Request["edit_hours"]) ? Request["edit_hours"] : 0));Error:_lessons.Value = Convert.ToInt32((Information.IsNumeric(Request["edit_lessons"]) ? Request["edit_lessons"] : 0)); _hours.Value = Convert.ToDecimal((Information.IsNumeric(Request["edit_hours"]) ? Request["edit_hours"] : 0));The name 'Information' does not use in current context 解决方案 这篇关于如何在C#中使用信息关键字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
09-03 15:15