DEV Community

umida5
umida5

Posted on

Value type va Reference Type

c# da struct va class orasidagi asosiy farq nima?

Class reference ma’lumot turi, struct esa value ma’lumot turiga kiradi. Classlar inheritance (Meros) ni qo'llab-quvvatlaydi va null bo’la oladi. Bundan tashqari murakkab ob'ektlar uchun ishlatiladi. Struct esa inheritance (Meros) ni qo’llab-quvvatlamaydi va value ma’lumot turi bo’lgani uchun kichikroq ob’ektlar uchun ishlatiladi.

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more