public string GetUniqueId(string fullPath) { if (!(UniqueIdLookup.ContainsKey(fullPath))) { return(null); } else { return(UniqueIdLookup[fullPath]); } }
public string GetPath(string uniqueId) { var ppair = UniqueIdLookup.FirstOrDefault(pp => pp.Value == uniqueId); if (ppair.Equals(default(KeyValuePair <string, string>))) { return(null); } else { return(ppair.Key); } }