示例#1
0
        public CompiledParticle(ParticleConstraint?particle)
        {
            Particle = particle;

            if (particle is null)
            {
                _lookup = new Lazy <LookupItem[]>(() => Cached.Array <LookupItem>(), true);
            }
            else
            {
                _lookup = new Lazy <LookupItem[]>(() => ParticleCompiler.Compile(particle), true);
            }
        }
示例#2
0
 public CompiledParticle(ParticleConstraint particle)
 {
     Particle = particle;
     _lookup  = new Lazy <LookupItem[]>(() => ParticleCompiler.Compile(Particle), true);
 }