Ejemplo n.º 1
0
        private static void AddFunctionToPackage(string packageName, INamedItemInfo function) {
            BlockingCollection<INamedItemInfo> funcs;

            if (!_packageToFunctionsMap.TryGetValue(packageName, out funcs)) {
                funcs = new BlockingCollection<INamedItemInfo>();
                _packageToFunctionsMap[packageName] = funcs;
            }

            _functionToPackageMap[function.Name] = packageName;
            funcs.Add(function);
        }
Ejemplo n.º 2
0
        private static void AddFunctionToPackage(string packageName, INamedItemInfo function)
        {
            BlockingCollection <INamedItemInfo> funcs;

            if (!_packageToFunctionsMap.TryGetValue(packageName, out funcs))
            {
                funcs = new BlockingCollection <INamedItemInfo>();
                _packageToFunctionsMap[packageName] = funcs;
            }

            _functionToPackageMap[function.Name] = packageName;
            funcs.Add(function);
        }
Ejemplo n.º 3
0
 public ReplacementItemInfo(INamedItemInfo item, string newName)
 {
     Description = item.Description;
     ItemType    = item.ItemType;
     Name        = newName;
 }
 public ReplacementItemInfo(INamedItemInfo item, string newName) {
     Description = item.Description;
     ItemType = item.ItemType;
     Name = newName;
 }