Esempio n. 1
0
        public void Overlay(ExposureRule rule)
        {
            float?nullable = rule.populationHalfLife;

            if (nullable.HasValue)
            {
                float?nullable2 = rule.populationHalfLife;
                populationHalfLife = nullable2.Value;
            }
            name = rule.Name();
        }
Esempio n. 2
0
 protected void AddExposureRule(ExposureRule g)
 {
     if (exposureRules == null)
     {
         exposureRules = new List <ExposureRule>();
         Debug.Assert(g.GetType() == typeof(ExposureRule), "First rule must be a fully defined base rule.");
         float?populationHalfLife = g.populationHalfLife;
         Debug.Assert(populationHalfLife.HasValue, "First rule must be a fully defined base rule.");
     }
     else
     {
         Debug.Assert(g.GetType() != typeof(ExposureRule), "Subsequent rules should not be base rules");
     }
     exposureRules.Add(g);
 }