这是什么意思,公共IDatabase数据库{get {return xxx;}} [英] what does it means , public IDatabase Database{ get{return xxx;}}
本文介绍了这是什么意思,公共IDatabase数据库{get {return xxx;}}的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
IDatabase
在这里是什么意思,我只知道它作为返回类型的接口.告诉更多相关信息.
What does it IDatabase
means here, I only know it as a interface as return type. Tell more related to it.
public IDatabase Database{
get{return xxx;}
}
推荐答案
这是名为Database
的只读公共属性的正确语法,该属性返回类型为IDatabase
的值,该值可能是接口,但不一定是;这是通过返回一个字段或另一个属性xxx
来完成的,该属性或属性应该是与IDatabase
兼容的类型分配.
这个问题没有道理. 您不能以这种方式学到任何东西.提出类似的问题原则上是没有意义的.您可以编写任何乱码,这是什么.否.相反,请读一本书和另一本手册,并从头开始学习.NET的语言和基础.
—SA
This is a correct syntax for a read-only public property namedDatabase
returning a value of the typeIDatabase
which is presumably an interface, but does not have to be; this is done by returning a field or another propertyxxx
which should be of the type assignment compatible withIDatabase
.
The question makes no sense. You cannot learn anything in this way. Asking similar questions makes no sense in principle; you can write any arbitrary gibberish and as what is it. No. Instead, take a book and another manual and learn the language and basics of .NET from scratch.
—SA
这篇关于这是什么意思,公共IDatabase数据库{get {return xxx;}}的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文