using System.Collections.Generic;
public int? A {get; set;}
public string B {get; set;}
public static string CleanPathName(string originalPathName)
var cleanedPathName = originalPathName
.Replace(@".", "_").Replace(@"}", "_").Replace(@"{", "_")
.Replace(@"|", "_").Replace(@"/", "_")
.Replace(@"?", "_").Replace(@">", "_").Replace(@"<", "_")
.Replace(@"%", "_").Replace(@"#", "_").Replace("\"", "_")
.Replace(@"~", "_").Replace(@":", "_").Replace(@"*", "_")
return System.Text.RegularExpressions.Regex.Replace(cleanedPathName, @"\+", m => m.Value.Length == 1 ? "" : m.Value);
public static void Main()
List<int> a = new List<int>() {1,2,3};
List<int> b = new List<int>() {1,2,3,4,5,6,7};
List<Test> c = new List<Test>() {
var grouping = c.GroupBy(g => g.A);
foreach (var petGroup in grouping)
Console.WriteLine(petGroup.Key);
foreach (Test name in petGroup)
Console.WriteLine(" {0}", name.B);
var ttt = Guid.TryParse(null, out dropAreaId);
Console.WriteLine("YES");
var TestStringconv = TestString.Split(';');
Console.WriteLine(TestStringconv.Any());
Console.WriteLine(TestStringconv[0]);
var TES = TestStringconv.Select(id => (int.Parse(id))+1);
foreach (var TESs in TES)
Console.WriteLine("---------");
var fileIds = new int[] {1,2,3};
var r = string.Join(";", fileIds);
Console.WriteLine(r.Count());
Console.WriteLine("---------");
var notExcluded = fileIds.Except(new int[]{2});
foreach (var TESs in notExcluded)
Console.WriteLine("---------");
Console.WriteLine(CleanPathName(@"Test\Test2\Test3\tes"));
Console.WriteLine("Hello World");