private VssFileInfo GetOrCreateFile(VssItemName name) { VssFileInfo fileInfo; if (!fileInfos.TryGetValue(name.PhysicalName, out fileInfo)) { fileInfo = new VssFileInfo(name.PhysicalName, name.LogicalName); fileInfos[name.PhysicalName] = fileInfo; } return(fileInfo); }
private VssFileInfo GetOrCreateFile(VssItemName name) { VssFileInfo fileInfo; if (!fileInfos.TryGetValue(name.PhysicalName, out fileInfo)) { fileInfo = new VssFileInfo(name.PhysicalName, name.LogicalName); fileInfos[name.PhysicalName] = fileInfo; } return fileInfo; }
public void SetFileVersion(VssItemName name, int version) { VssFileInfo fileInfo = GetOrCreateFile(name); fileInfo.Version = version; }