示例#1
0
        internal void OnUnitCreated(Unit unit)
        {
            this.units.Add(unit);
            this.metaObjectById.Add(unit.Id, unit);

            this.Stale();
        }
示例#2
0
 private void GetUnits()
 {
     this.BinaryType = (Unit)this.metaPopulation.Find(UnitIds.BinaryId);
     this.BooleanType = (Unit)this.metaPopulation.Find(UnitIds.BooleanId);
     this.DecimalType = (Unit)this.metaPopulation.Find(UnitIds.DecimalId);
     this.DoubleType = (Unit)this.metaPopulation.Find(UnitIds.FloatId);
     this.IntegerType = (Unit)this.metaPopulation.Find(UnitIds.IntegerId);
     this.StringType = (Unit)this.metaPopulation.Find(UnitIds.StringId);
     this.UniqueType = (Unit)this.metaPopulation.Find(UnitIds.Unique);
 }