Wednesday, December 24, 2014

Highlights of year 2014 !!!

The first blog of the year coming at the end of the year :). This year time passed away very fast and before i realized it is only few days left for calender to be replaced. Therefore I thought it is good time to scan the events happened during this year.

  • New House: With all complexity finally able to build and shifted to my new house. It was a awesome feeling and enjoyed every moment of building the house.
  • Promoted to M4 grade (Product Architect): This year i got promoted to new role of Product Architect. It was a new role and of course new challenge. I am not sure how much i able to do the justice to the role but at now at least i am aware and have more clarity about my career path.
  • Beginning of Omi's school life: Time when passed never come back again. This year i come to know this statement is not correct but the correct statement is times always repeats itself. This year my daughter started her school life with Play school. Believe me it was more excitement for me than for her. I felt the excitement of first day in school, I enjoyed preparing her dress for fancy dress, i enjoyed all the small small activities done by her in school.

Monday, May 13, 2013

What is the difference between constant and readonly?


Constant
  • Its value is determine at compilation time and embedded in the IL.
  • Set at compilation time.
  • Can only for define for primitive type.
ReadOnly
  • Its value is initialized at the run-time inside the constructor.
  • Set during run-time.
  • Can be define for value type and reference type.

Monday, May 6, 2013

Difference between reference type and value type

Value Type
  • Allocated on stack
  • Have both representation i.e. boxed form & unboxed form
  • Derived from System.ValueType
  • No Method can be abstract
  • While assigning field by field copy is made.
  • Storage is free as soon as they goes out of scope

Reference Type
  • Allocated on heap
  • Always has boxed formed
  • Derived from any object other than System.ValueTye
  • Methods can be abstract
  • While assigning only memory address is copied
  • Storage is freed using Garbage collection