Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

join dictionaries keys c#

Dictionary<string, string> g = new Dictionary<string, string>();
g.Add("K", "k1");
g.Add("L", "l1");

var keys1 = g.Select(x=>String.Format("{0}=@{0}", x.Key));
var result1 = String.Join(",", keys1);
Console.WriteLine(result1);

var keys2 = g.Select(x=>String.Format("{0}={1}", x.Key, x.Value));
var result2 = String.Join(",", keys2);
Console.WriteLine(result2);
Comment

PREVIOUS NEXT
Code Example
Csharp :: async await c# 
Csharp :: count the number of notes in a given amount c# 
Csharp :: mvc c# return renderPartial 
Csharp :: c# bootstrap checkbox 
Csharp :: c# convert date to oracle format 
Csharp :: group-by-in-linq 
Csharp :: c# float 
Csharp :: c# callback param 
Csharp :: Get Mac address of Device in Xamarin 
Csharp :: constructor in c# 
Csharp :: C# Convert 1 range to another 
Csharp :: aspx receive variable from url 
Csharp :: ArgumentException: Input Key named: Fire1 is unknown 
Csharp :: decimal operator in Convert.toDouble() C# 
Csharp :: csharp 3d array length 
Csharp :: c# Remove String In C# 
Csharp :: Unity Object rotation along any axis 
Csharp :: global variables unity 
Csharp :: spiral matrix 
Csharp :: administrative priviledge in c# 
Csharp :: c# loop through queue 
Csharp :: how to get length of okobjectresult c# 
Csharp :: serial begin 
Csharp :: c# ip address to string 
Csharp :: .net core copy file in folder to root 
Csharp :: generate random light colors programatically in android 
Csharp :: array sum c# 
Csharp :: dotnet core encryption and decryption 
Csharp :: c# Write a program to reverse an array or string 
Csharp :: c# 2d arrays 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =