Beispiel #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));
        }
Beispiel #2
0
 internal static bool IsCollectionOfItems(Type colType)
 {
     return(ListUtilities.GetCollectionItemType(colType) != null);
 }
Beispiel #3
0
 internal static bool IsDictionaryOfItems(Type dictType)
 {
     return(ListUtilities.GetDictionaryItemsType(dictType) != null);
 }
Beispiel #4
0
 internal static bool IsListOfItems(Type listType)
 {
     return(ListUtilities.GetListItemType(listType) != null);
 }