Adding generic extension methods to interfaces like IEnumerable
问题 I've been trying and trying to make my generic extension methods work, but they just refuse to and I can't figure out why . This thread didn't help me, although it should. Of course I've looked up how to, everywhere I see they say it's simple and it should be in this syntax: (On some places I read that I need to add "where T: [type]" after the parameter decleration, but my VS2010 just says that's a syntax error.) using System.Collections.Generic; using System.ComponentModel; public static