Ejemplo n.º 1
0
        void Start()
        {
            if (!InitializedTypes.Contains(MapperType))
            {
                Initialize();
            }

            if (!Default && string.IsNullOrEmpty(Id))
            {
                throw new Exception("Font mapper error: Id not set for a non-default font mapper");
            }

            if (!_mappers.ContainsKey(Id))
            {
                _mappers.Add(Id, this);
            }
        }
Ejemplo n.º 2
0
 public override void Initialize()
 {
     base.Initialize();
     InitializedTypes.Add("Apple");
 }
Ejemplo n.º 3
0
 public override void Initialize()
 {
     base.Initialize();
     InitializedTypes.Add("Fruit");
     IsFruit = true;
 }