bool IsIDictionary(Type t) { return t.GetInterface("System.Collections.IDictionary", true) != null; }