Tags » Value Type

Familiarizing with value and reference types in C#

✓ Value types – Most of the primitive types, such as int, float, double, and char are collectively called value types. These types have a fixed size, and when you declare a variable, the compiler generates code that allocates a block of memory big enough to hold a corresponding value. 967 more words


Value Type and Reference Type

Value Type:

  • Small type that have their values allocated on the stack in memory.
  • Cannot be null; must always contain data.
  • When passed in method (by val), they are coped as new objects.So the original  value will never change only the copy will change.
  • 96 more words


Today’s topic is in complete contrast to the one I talked about yesterday. Unboxing literally means taking something out of the box. You must have done this quite often! 237 more words

Programming Fundamentals


Today we are going to talking about a term known as Boxing. The first thing which would strike your mind once you hear this word is obviously the boxing game. 156 more words

Programming Fundamentals

Value Types and Reference Types

This is one topic which you would find in many programming languages. The concept is the same for all only the syntax or the implementation may vary. 226 more words


Atomic* - testing with structs

In the last post I introduced Atomic* wrappers. They are extremely cheap to use as they’re stack allocated (the structs, not the values they point to) and wrap all the needed atomic operations. 344 more words


.NET - Reference Type, Value Type, Boxing, Unboxing, GAC, Constants, ReadOnly, Static, Struct, Class, Encapsulation, Delegates, DDL Hell Problem, Satellite Assembly, Debug, Trace, Overriding, Overloading


Reference Type, Value Type, Boxing, Unboxing, JIT, Portable Executable, Strong name, Global Assembly Cache (GAC), difference between constants, readonly and, static, difference between shared and public, types of authentication in .net, difference between a Struct and a Class, encapsulation, difference between Java and .NET garbage collectors, difference between const and readonly, advantage of using System.Text.StringBuilder over System.String, difference between the System.Array.Cop… 23 more words