Tag Archives: developer

Asp.Net: More about Cookies

Welcome to CodeSpread!We have seen, how our cookies looks in our last article Cookies Part 1. In this article, we will talk about their properties,limitations and technical part. Properties and Limitations Cookies are associated with website and not single pages. Cookie is stored in our system as Text File. They are stored in plain text…..

Asp.Net: Hidden Truth of Cookies

I know there are several articles on cookies as what are they? and how can they be created? but i always wanted to know more about them. My questions were where they are stored? how to track their expiry? If they contain user centric information then Can they be encrypted? Lets explore each of my…..

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…..

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 ‘?’……

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…..