// C# Extension Method
// Doc: [url will be determined later]
// @nuget: Z.ExtensionMethods
using System;
using System.Collections.Generic;
public class Program
{
public static void Main()
var list = new List<string> {"zA", "zB", "C"};
foreach (var item in list)
Console.WriteLine(item);
}
Console.WriteLine("\nAfter RemoveIfContains\n");
// C# Extension Method: ICollection<T> - RemoveRange
list.RemoveRange("zA", "zB");