public ViewDataDictionary(object model, object values)
     : base(new ValueDictionary(values), StringComparer.OrdinalIgnoreCase)
 {
     _subDataItems = new Dictionary <string, ViewDataDictionary>(StringComparer.OrdinalIgnoreCase);
     _model        = model;
     _evaluator    = new ViewDataEvaluator(this);
 }
        public ViewDataDictionary(ViewDataDictionary dictionary)
            : base(dictionary, StringComparer.OrdinalIgnoreCase)
        {
            _subDataItems = new Dictionary <string, ViewDataDictionary>(StringComparer.OrdinalIgnoreCase);
            foreach (KeyValuePair <string, ViewDataDictionary> item
                     in dictionary.SubDataItems)
            {
                _subDataItems.Add(item);
            }

            _evaluator = new ViewDataEvaluator(this);
            _model     = dictionary.Model;
            //_template = dictionary._template;
        }
 public ViewDataDictionary()
     : base(StringComparer.OrdinalIgnoreCase)
 {
     _subDataItems = new Dictionary <string, ViewDataDictionary>(StringComparer.OrdinalIgnoreCase);
     _evaluator    = new ViewDataEvaluator(this);
 }