You Are Browsing ‘Programming’ Category

Difference between String and StringBuilder in C#

String and StringBuilder are yet another concept in C# which often goes neglected. Everytime a programmer has to save some string into a variable, they simply declare a string in their program and use it. But in the long term and in big projects, it often leads to high memory consumption. In this article, we will explain why this happen and how to avoid it using StringBuilder. The difference between string and...

Generics : C# and .NET Interview Question – Lesson for beginners

Generics is one of the most important concept of object oriented programming. It exists not only in C# but is also used extensively in popular programming languages including Java. While Generics is an important concept which is often neglected, it remains to be one of the favorite question in C# and .NET interviews. One of our known was once working with TCS and on his very first viva during his training program,...