コード例 #1
0
 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);
 }
コード例 #2
0
        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;
        }
コード例 #3
0
 public ViewDataDictionary()
     : base(StringComparer.OrdinalIgnoreCase)
 {
     _subDataItems = new Dictionary <string, ViewDataDictionary>(StringComparer.OrdinalIgnoreCase);
     _evaluator    = new ViewDataEvaluator(this);
 }