>public static partial class ExtensionMethods >{ > static public string MyToString<T>(this T s) > { > return "<" + s.ToString() + ">"; > } > >} >>
>public static partial class ExtensionMethods >{ > static public string MyToString(this object s) > { > return "<" + s.ToString() + ">"; > } > >} >>
>public static partial class ExtensionMethods >{ > public static bool InList<T>(this T s, params T[] list) where T : IEquatable<T> > { > return list.Contains(s); > } >} >Thanks. Extension methods are still over my head at this point. I kinda sorta understand generics and interfaces, but have not gotten to extension methods. Yet ;-)