Office Night-Out

Welcome to...

Read More
C#: My experience with const keyword
Nov30

C#: My experience with const keyword

There are numerous post on internet about ‘what is const keyword in .net’ or ‘what is the difference between const keyword and read only’ and I must say many might have already mugged it up like me I can bet, many of us might not have tried some exercise to learn the real implementation or did not get caught in a situation where the learning would have come on the doorsteps by itself. I was lucky as the...

Read More
NetBiscuits: How fascinating can it be to create a mobile website?
Nov30

NetBiscuits: How fascinating can it be to create a mobile website?

My very first impression was like why do I need it, who wants to see a site on a mobile? How would a website be able to fit into my mobile without destroying the look and feel of a desktop site? Not so long ago, I remember behavior of a site varied in content display on the mobile device depending on the device type and OS used. Sometime, we have different browsers behaving different way making users’ life tough and it comes out to be...

Read More

Nullable .Net types

We declare .net types in our project daily but still we do not recollect default values for each .net type so we end up doing null check for each data type. Its a basic mistake of a developer but .net makes us intelligent with one of their operator, ‘?’ Nullable is represented by a ‘?’. Prior to that, uninitialized variables in C# is not allowed so we should know default values of .net datatypes. For value...

Read More

Useful ‘ref’ and ‘out’ parameters

It took me some time to realize the real potential of ref and out keywords, till the time I experience a condition which could only be simplified by implementing ref and out keyword. Lets start by a simple code example and will evolve while moving forward. public int CalculateSavings(int principal) { int result=0; //Calculate savings and return result return result; } Here we have a method ‘CalculateSavings’ which takes a...

Read More
Page 1 of 41234