예제 #1
0
 public RuntimeVariables(IDictionary <string, object> locals) : base(locals.Count, DefaultComparer)
 {
     current = new VariableIndexList(null, locals.Count);
     if (locals == null)
     {
         throw new System.ArgumentNullException(nameof(locals));
     }
     foreach (var item in locals)
     {
         Add(item.Key, item.Value);
     }
 }
예제 #2
0
 internal RuntimeVariables() : base(0, DefaultComparer)
 {
     current = new VariableIndexList(null, 0);
 }
예제 #3
0
 internal RuntimeVariables(int capacity) : base(capacity, DefaultComparer)
 {
     current = new VariableIndexList(null, capacity);
 }