Archives for C# - Page 6
Using Caller Information attributes in C#
Caller Information attributes are newly introduced in Framework There are three attributes which are more helpful in tracing, debugging and diagnosis the application. These attributes will provide some information about…
Issue: The length of the string exceeds the value set on the maxJsonLength property
Problem Statement Many people had faced with their MVC Applications with the following issue. Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the…
Find given number is Palindrome Number or Not ?
What is Palindrome Number? A Palindrome number or numeral palindrome is a number that remains the same when its digits are reversed ( 11,121, 1331,12321). using System; namespace PalindromeNumber {…
Find given number is Prime or Not? Using Recursion & Non Recursion Methods.
What is Prime Number ? A number that is divisible only by itself and 1 ( 2, 3, 5, 7, 11). using System; using ; using ; using ; using…
Naming Conventions in C#.Net
For any developer, Naming Convention is a best practice to work on any development project. Let’s discuss more about Naming convention in this article. Why Naming Conventions? Naming Convention is…
Working with new Value Tuple Data Structure in C# 7.0
Problem Statement: Want to return multiple results from the single method of different types. To achieve this functionality, there are three methodologies until Framework version * and following are those…
Working with Local Functions in C# 7.0
Today we will learn something cool feature called Local Functions in our newly upgraded version of C# , As we already know about Public and Private functions in our C# language.…
Working with Concurrent Dictionary in C#
Concurrent Dictionary is a new member of Collection family and this Dictionary will be used to handle multiple threads scenarios. Let's dig more into this collection. ConcurrentDictionary can be found…
Do we need to use Newtonsoft.Json.JsonConvert.DeserializeObject() or Newtonsoft.Json.Linq.JToken.Parse()?
So many people got this question like to deserialize any JSON string should we need to use ()or ()method?? Let begin the explanation uses LINQ-TO-JSON API internally to loop through…
How Inheritance is importance in Object Oriented Programming?
One of the important features in the Object Oriented Programming is Reusability, as we said above that it is always a good way to reuse the already existing functionality rather than…