Dictionary Initializer is a new concept in C# 6.0 where Microsoft removed the Object {key,value} pair and directly we can assign values by the “=” operator.
Tuesday, 7 November 2017
Dictionary Initializer in C# 6.0
in: asp csharp
In this article, We will discuss How to Use Dictionary Initializer in C# 6.0.
Dictionary Initializer is a new concept in C# 6.0 where Microsoft removed the Object {key,value} pair and directly we can assign values by the “=” operator.
Dictionary Initializer is a new concept in C# 6.0 where Microsoft removed the Object {key,value} pair and directly we can assign values by the “=” operator.
For Example:
Dictionary<string, string> dicStr = new Dictionary<string, string>()
{
["Max"]="Texas"
};
RELATED POSTS

Install or UnInstall Windows Service With or Without using Visual Studio Command Prompt
Using Visual Studio Command Prompt:- Install:- Go to "Start" >> ...

Difference Between string.Format and String.Format in C#.
In this article We will Discuss about What is the difference between stri ...

Difference between Convert.ToString() and .ToString() in C#.
In this article, We will discuss about what is the difference between Con ...

HTTP Error 500.22 - Internal Server Error (An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.)
The issue is caused by the pipeline mode in your Application Pool setting ...
-
This issue is Completely related to EntityFramework and this issue arises whenever you have installed EntityFramework in one project at th...
-
This is generally a Common Problem or the error could be like this, To Resolve this error, One Small Solution is Exists which is as b...
-
In this article, We will discuss What is the above Error and How to resolve this Error. Whenever, We are Restoring our database into A...
0 comments:
Post a Comment