چگونه باید یک لیست را در معرض دید سایر کلاسها قرار داد؟
نویسنده: وحید نصیری
تاریخ: ۱۳۹۵/۰۴/۰۲ ۱۰:۱۸
آدرس: www.dntips.ir
| مطالب | ۳۶۹۴ |
| نویسندگان | ۲۷۶ |
| گروههای مطالب | ۱۰۲۴ |
| نقشههای راه | ۱۱۹ |
| دورهها | ۱۴ |
| اشتراکها | ۱۷۹۱۴ |
Do use the interface IReadOnlyList<T> or IReadOnlyCollection<T> to expose a collection.
Use IReadOnlyList<T> if the item order is important and deterministic.
Use IReadOnlyCollection<T> if the item order is not important.