internal static NgenPackageItem CreatePackageItem(File file) { NgenPackageItem item = null; if (!Ngen.ngens.TryGetValue(file, out item)) { item = new NgenPackageItem() { File = file, Parent = file }; Ngen.ngens.Add(file, item); } return(item); }
public static void SetFolder(File file, Folder folder) { NgenPackageItem item = Ngen.CreatePackageItem(file); item.Folder = folder; }
public static void SetExecute(File file, NgenExecuteType execute) { NgenPackageItem item = Ngen.CreatePackageItem(file); item.Execute = execute; }
public static void SetApplication(File file, IFileReference application) { NgenPackageItem item = Ngen.CreatePackageItem(file); item.Application = application; }
internal static bool TryGetPackageItem(File file, out NgenPackageItem ngen) { return(Ngen.ngens.TryGetValue(file, out ngen)); }