using System.Text.RegularExpressions;
using System.Collections.Generic;
public static void Main()
var label ="the name fiels_ contain's some.thing,not allowed\n\rand /Por que te estás riendo:also 你为什么笑";
var storename =label.Replace(".", string.Empty);
storename = Regex.Replace(storename,@"[^a-zA-z0-9_]","_");
Console.WriteLine(label);
Console.WriteLine(storename);
Dictionary<string, string> dict = new Dictionary<string, string>();
dict.Add("UserID", "test");
string userIDFromDictionaryByKey ;
dict.TryGetValue("UserID",out userIDFromDictionaryByKey);
Console.WriteLine(userIDFromDictionaryByKey);