Esempio n. 1
0
        internal static object CreateEditableKeyValuePair(object key, Type keyType, object value, Type valueType)
        {
            var itemType = ListUtilities.CreateEditableKeyValuePairType(keyType, valueType);

            return(Activator.CreateInstance(itemType, key, value));
        }
Esempio n. 2
0
 internal static bool IsCollectionOfItems(Type colType)
 {
     return(ListUtilities.GetCollectionItemType(colType) != null);
 }
Esempio n. 3
0
 internal static bool IsDictionaryOfItems(Type dictType)
 {
     return(ListUtilities.GetDictionaryItemsType(dictType) != null);
 }
Esempio n. 4
0
 internal static bool IsListOfItems(Type listType)
 {
     return(ListUtilities.GetListItemType(listType) != null);
 }