C# types दो मूलभूत श्रेणियों में आते हैं: value types (data को सीधे store करते हैं) और reference types (heap पर मौजूद data का reference/pointer store करते हैं)। ये इस बात में भिन्न होते हैं कि इन्हें कैसे store, copy और compare किया जाता है — एक महत्वपूर्ण अंतर जो पूरी भाषा में behavior को प्रभावित करता है।
दो श्रेणियाँ
Value types → struct, int, double, bool, char, enum, DateTime, decimal
Stored INLINE (stack for locals); copied BY VALUE.
Reference types → class, string, array, object, interface, delegate
Variable holds a REFERENCE to data on the heap; copied BY REFERENCE.
