internal static object CreateEditableKeyValuePair(object key, Type keyType, object value, Type valueType) { var itemType = ListUtilities.CreateEditableKeyValuePairType(keyType, valueType); return(Activator.CreateInstance(itemType, key, value)); }
internal static bool IsCollectionOfItems(Type colType) { return(ListUtilities.GetCollectionItemType(colType) != null); }
internal static bool IsDictionaryOfItems(Type dictType) { return(ListUtilities.GetDictionaryItemsType(dictType) != null); }
internal static bool IsListOfItems(Type listType) { return(ListUtilities.GetListItemType(listType) != null); }