Exemple #1
0
 internal void MigrateSets(PropertySetMixer <CustomPropertyId, SetId> from, params SetId[] setIds)
 {
     foreach (SetId setId in setIds)
     {
         this.AddSet(setId, from.GetSet(setId));
     }
 }
Exemple #2
0
 internal CustomPropertyId[] GetSet(SetId id)
 {
     PropertySetMixer <CustomPropertyId, SetId> .PropertySet propertySet = this.propSetIdsToSets[id];
     CustomPropertyId[] array = new CustomPropertyId[propertySet.Mappings.Length];
     for (int i = 0; i < propertySet.Mappings.Length; i++)
     {
         array[i] = propertySet.Mappings[i].Id;
     }
     return(array);
 }
Exemple #3
0
 internal object[] FilterRow(object[] unfilteredRow, SetId setId)
 {
     PropertySetMixer <CustomPropertyId, SetId> .PropertySet propertySet = this.propSetIdsToSets[setId];
     object[] array = new object[propertySet.Mappings.Length];
     for (int i = 0; i < propertySet.Mappings.Length; i++)
     {
         array[i] = unfilteredRow[propertySet.Mappings[i].Index.BeforeInterception];
     }
     return(array);
 }
Exemple #4
0
        internal void AddSet(SetId setId, params CustomPropertyId[] propIds)
        {
            int num = this.maxIndex;

            PropertySetMixer <CustomPropertyId, SetId> .PropertyMapping[] array = new PropertySetMixer <CustomPropertyId, SetId> .PropertyMapping[propIds.Length];
            for (int i = 0; i < propIds.Length; i++)
            {
                if (this.propsToIndicies.ContainsKey(propIds[i]))
                {
                    array[i] = new PropertySetMixer <CustomPropertyId, SetId> .PropertyMapping(propIds[i], this.propsToIndicies[propIds[i]]);
                }
                else
                {
                    array[i] = new PropertySetMixer <CustomPropertyId, SetId> .PropertyMapping(propIds[i], this.maxIndex ++, this.shouldIntercept(propIds[i])? -1 : this.maxIndexAfterInterception++);

                    this.propsToIndicies[propIds[i]] = array[i].Index;
                }
            }
            this.propSetIdsToSets.Add(setId, new PropertySetMixer <CustomPropertyId, SetId> .PropertySet(array, num, this.maxIndex - num));
        }
Exemple #5
0
 public PropertyMapping(CustomPropertyId id, int totalIndex, int afterInterceptionIndex)
 {
     this = new PropertySetMixer <CustomPropertyId, SetId> .PropertyMapping(id, new PropertySetMixer <CustomPropertyId, SetId> .PropertyIndex(totalIndex, afterInterceptionIndex));
 }
Exemple #6
0
 public PropertyMapping(CustomPropertyId id, PropertySetMixer <CustomPropertyId, SetId> .PropertyIndex index)
 {
     this.Id    = id;
     this.Index = index;
 }