public DictionaryOrdered <string, string> CreateDefault()
        {
            DictionaryOrdered <string, string> dict = new DictionaryOrdered <string, string>();

            dict.Add("1", "a");
            dict.Add("2", "b");
            dict.Add("3", "c");
            dict.Add("4", "d");

            return(dict);
        }
Ejemplo n.º 2
0
        public MatrixSet(MatrixSet src)
        {
            rect      = src.rect;
            worldPos  = src.worldPos;
            worldSize = src.worldSize;

            foreach (var kvp in src.prototypesMatrices)
            {
                prototypesMatrices.Add(kvp.Key, new Matrix(kvp.Value));
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Initialize with loggers.
 /// </summary>
 /// <param name="loggers"></param>
 public void Init(string name, IList <ILog> loggers)
 {
     this.Name = name;
     _loggers  = new DictionaryOrdered <string, ILog>();
     loggers.ForEach(logger => _loggers.Add(logger.Name, logger));
     ActivateOptions();
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Append to the chain of loggers.
 /// </summary>
 /// <param name="logger"></param>
 public void Append(ILog logger)
 {
     // Add to loggers.
     ExecuteWrite(() => _loggers.Add(logger.Name, logger));
 }