private static KeyValuePair <MapKey, IEnumerable <PropertyTypePredefined> > MultipleEntry(
     ReconcileProperty reconcileProperty,
     ItemTypePredefined itemTypePredefined,
     params PropertyTypePredefined[] propertyTypePredefineds)
 {
     return(new KeyValuePair <MapKey, IEnumerable <PropertyTypePredefined> >(new MapKey(reconcileProperty, itemTypePredefined), propertyTypePredefineds));
 }
        public IEnumerable <PropertyTypePredefined> GetPropertyTypePredefined(ReconcileProperty reconcileProperty,
                                                                              ItemTypePredefined baseItemTypePredefined)
        {
            IEnumerable <PropertyTypePredefined> propertyTypePredefined;

            if (_typePredefineds.TryGetValue(new MapKey(reconcileProperty, baseItemTypePredefined), out propertyTypePredefined))
            {
                return(propertyTypePredefined);
            }

            if (_typePredefineds.TryGetValue(new MapKey(reconcileProperty, null), out propertyTypePredefined))
            {
                return(propertyTypePredefined);
            }

            return(Enumerable.Empty <PropertyTypePredefined>());
        }
Пример #3
0
        public static ItemTypeReuseTemplateSetting GetCorrespondingReuseTemplateSetting(ReconcileProperty property)
        {
            ItemTypeReuseTemplateSetting setting;

            if (!ReconcilePropertyToItemTypeReuseTemplateSettingsMap.TryGetValue(property, out setting))
            {
                setting = ItemTypeReuseTemplateSetting.None;
            }

            return(setting);
        }
 private static KeyValuePair <MapKey, IEnumerable <PropertyTypePredefined> > Entry(
     ReconcileProperty reconcileProperty, ItemTypePredefined itemTypePredefined, PropertyTypePredefined propertyTypePredefined)
 {
     return(new KeyValuePair <MapKey, IEnumerable <PropertyTypePredefined> >(new MapKey(reconcileProperty, itemTypePredefined), Enumerable.Repeat(propertyTypePredefined, 1)));
 }