Пример #1
0
 private static ArgumentInputs EnsureInputs(Dictionary<Type, ArgumentInputs> dict, Type type) {
     ArgumentInputs res;
     if (!dict.TryGetValue(type, out res)) {
         dict[type] = res = new ArgumentInputs(type);
     }
     return res;
 }
Пример #2
0
 private static ArgumentInputs EnsureInputs(Dictionary <Type, ArgumentInputs> dict, Type type)
 {
     if (!dict.TryGetValue(type, out ArgumentInputs res))
     {
         dict[type] = res = new ArgumentInputs(type);
     }
     return(res);
 }