Redian新闻
>
difference between property and indexer
avatar
difference between property and indexer# DotNet - 窗口里的风景
r*o
1
I got an interview yesterday, one of the question is the difference and pros
and cons of property and index.
I have no idea what is the pros and cons. Anybody can give me some suggestion?
avatar
a*i
2
i don't know what index you're talking about. do you mean indexed properties,
like the common Item property from collections? they allow you to get back
a colletion of values by optionally specifying a key or a combination of keys.

【在 r*******o 的大作中提到】
: I got an interview yesterday, one of the question is the difference and pros
: and cons of property and index.
: I have no idea what is the pros and cons. Anybody can give me some suggestion?

avatar
n*g
3
there is one indexer in C#.
indexer is a smart array just like property is smart field.

【在 a*****i 的大作中提到】
: i don't know what index you're talking about. do you mean indexed properties,
: like the common Item property from collections? they allow you to get back
: a colletion of values by optionally specifying a key or a combination of keys.

avatar
a*i
4
kinda remember coming across such a thing in reading.
is it available in other languages?

【在 n*********g 的大作中提到】
: there is one indexer in C#.
: indexer is a smart array just like property is smart field.

avatar
b*e
5
A very similar question is
* what's the advantage of typed dataset?
Hope this helps.

【在 r*******o 的大作中提到】
: I got an interview yesterday, one of the question is the difference and pros
: and cons of property and index.
: I have no idea what is the pros and cons. Anybody can give me some suggestion?

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。