When we work with strings we sometimes need to verify the validity of input string.As the user can input any string so we need to verify if the input contains valid characters.Here we will validate the user entered input for checking string for … [Continue reading] about Checking string for balanced parentheses in C#
LINQ Interview Questions and Answers
What is LINQ? LINQ stands for Language Integrated Query.Before LINQ developers have to use different technologies when working with different data sources. For example to query databases developers have to use SQL.To query XML they need to use … [Continue reading] about LINQ Interview Questions and Answers
Map different Lists using LINQ in C#
LINQ provides us operator for different tasks such as selection,filtering,ordering.Usually we filter and select the same type as the original type when working with LINQ. In many scenarios we want to filter and mapĀ items to a different list type.For … [Continue reading] about Map different Lists using LINQ in C#
FirstOrDefault,SingleOrDefault,First and Single Extension methods
System.Linq namespace defines many useful extension methods.Following extension methods are used to return single value from the collection. FirstOrDefault SingleOrDefault FirstOrDefault FirstOrDefault is an extension method defined in the … [Continue reading] about FirstOrDefault,SingleOrDefault,First and Single Extension methods
Use and example of ngClass in AngularJS
ngClass directive let us add the CSS class at run time.We will understand this by use and example of ngClass in AngularJS.This is useful in many scenarios: Suppose we want to add a particular class when a control is disabled and other CSS class … [Continue reading] about Use and example of ngClass in AngularJS