We already have string.IsNullOrEmpty() method to check whether the string is null or empty.Now with Microsoft.NET Framework 4.0 there is a new another method that is called string.IsNullOrWhiteSpace() which will also check whether string is having whitespaces or not with null and empty string.This...
Monday, March 22, 2010
C# 4.0-string.IsNullOrWhiteSpace()
Posted by Jalpesh Vadgama |
March 22, 2010 |
.NET4.0, ASP.NET, C#-4.0, C#.NET, VisualStudio |
No comments
Sunday, March 21, 2010
C#-Constructors,Static Constructors and Destructors Execution in Inheritance
Posted by Jalpesh Vadgama |
March 21, 2010 |
C#.NET, Object-Oriented-Programming, VisualStudio |
No comments
While taking interview for .NET Technologies i often ask about the execution sequence of the constructor and destructor in inheritance But from the my experience i have found that lots of people are still confused with execution sequence of constructor and destructors. Lets create a simple example...
Singleton Class in C#
Singleton pattern is very popular pattern used by programmer. The idea behind the singleton pattern is to have only one instance of a class at any time. This kind of pattern is very useful for for heavy resources like Linq Data Context etc. It is also useful in multithreaded application where different...