بررسی تغییرات NET Framework 4.7.1.
نویسنده: وحید نصیری
تاریخ: ۱۳۹۶/۰۷/۰۷ ۸:۱۴
آدرس: www.dntips.ir
| مطالب | ۳۶۹۴ |
| نویسندگان | ۲۷۶ |
| گروههای مطالب | ۱۰۲۴ |
| نقشههای راه | ۱۱۹ |
| دورهها | ۱۴ |
| اشتراکها | ۱۷۹۱۴ |
Compiler – Support for ReadOnlyReferences
class Type1
{
// This parameter will have an attribute (in IL) of type `IsReadOnly`
public void Method1(ref readonly int param1) { throw null; }
// This method return type will have an attribute (in IL) of type `IsReadOnly`
public ref readonly int Method2() { throw null; }
}