Esempio n. 1
0
 internal ParticleCollection(Type type, CompiledParticle compiled, OpenXmlCompositeElement element)
 {
     _type        = type;
     _element     = element;
     _compiled    = compiled;
     _elementPath = compiled.Find(type);
 }
Esempio n. 2
0
        private void Visit(ElementParticle element)
        {
            var newValues = new ParticlePathItem[_values.Count];

            _values.CopyTo(newValues, 0);
            Array.Reverse(newValues);

            var particlePath = ParticlePath.Create(newValues);

            _path.Add(new LookupItem(element.ElementType, particlePath));
        }
Esempio n. 3
0
 public Enumerator(ParticlePath path)
 {
     _path = path._values;
     _idx  = -1;
 }
Esempio n. 4
0
 internal ParticleCollection(CompiledParticle compiled, OpenXmlCompositeElement element)
 {
     _element     = element;
     _compiled    = compiled;
     _elementPath = compiled.Find <TElement>();
 }