using System.Collections.Generic; namespace Features { public static class MyLinq { // Implement a customized LINQ using extension public static int MyLinqCount(this IEnumerable sequence) { // Any IEnumerable instance can use this method now as extension int count = 0; foreach (var item in sequence) { count += 1; } return count; } } }