Nullable Type in C#
Saturday, January 30th, 2010Nullable type in C#
We can declare a variable as nullable when we want to know that a value has been assigned to that variable or not. Declaring a variable as nullable enables the HasValue and Value members. We can use the HasValue property on the variable to check if the value has been assigned to [...] Read more »
.NET and J2EE. Status as of now and scope in future.(Updated with important note)
Saturday, October 10th, 2009Big question today: What is the scope of .NET and J2EE platforms. Which one is more dominant in industry today?
I want to answer this question in this post with my viewpoint with no intentions of hurting anybody but with a sole intention of increasing the knowledge of J2EE for .NET people and .NET for the [...] Read more »
Anonymous Constructor in C#
Monday, August 17th, 2009C# 3.0 introduced a very compact way of initializing objects of a class.
Previously we used to initialize objects like this:
MailMessage mailMessage = new MailMessage();
mailMessage.Subject=UIConstants.UIErrorSubject;
mailMessage.Body = message;
[...] Read more »
Regular Expression for alphanumeric password in C#
Wednesday, August 5th, 2009The task at hand is to validate the Textbox in asp.net for a valid password which should be an alphanumeric string consisting of numbers and alphabets only. It should have atleast 1 number and 1 a
We can attach a RegularExpressionValidator to the text box with the following regular expression: Read more »