C#的新手,需要一些帮助和指导 [英] New to C# and need some help and guidance
本文介绍了C#的新手,需要一些帮助和指导的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好。 我是C#的新手,我正在试图弄清楚下面的代码是否适用于GetControlName例程,以及我将如何编写GetValueFromId例程。 这将使用实体框架。 任何帮助和帮助
将不胜感激。 谢谢。
Hi everyone. I'm new to C# and I'm trying to figure out if the code below will work for the GetControlName routine and how I would go about coding the GetValueFromId routine. This will be using the entity framework. Any help and assistance would be appreciated. Thanks.
public IEnumerable< Control>控制{get;私人集; }
public IEnumerable<Control> Controls { get; private set; }
推荐答案
该方法可行,但它也没有做任何有趣的事情。 这是一种花哨的方式告诉您控件是否存在该名称,因为该方法将返回字符串或null。 这是意图吗?
The method would work, but it doesn't really do anything interesting either. It is a fancy way of telling you if a control exists with that name, since the method will return string or null. Was that the intent?
这篇关于C#的新手,需要一些帮助和指导的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文