/// <summary> /// Get the <see cref="NetFieldExportGroup"/> by the path. /// </summary> /// <param name="path"></param> /// <returns><see cref="NetFieldExportGroup"/></returns> public NetFieldExportGroup GetNetFieldExportGroup(string path) { if (path == null || !NetFieldExportGroupMap.TryGetValue(path, out var group)) { return(null); } return(group); }
public NetFieldExportGroup GetNetFieldExportGroup(string pathName) { if (String.IsNullOrEmpty(pathName)) { return(null); } if (NetFieldExportGroupMap.TryGetValue(pathName, out NetFieldExportGroup netFieldExportGroup)) { return(netFieldExportGroup); } return(null); }
/// <summary> /// Tries to find the ClassNetCache for the given group path. /// </summary> /// <param name="group"></param> /// <returns>true if ClassNetCache was found, false otherwise</returns> public bool TryGetClassNetCache(string group, out NetFieldExportGroup netFieldExportGroup) { if (group == null) { netFieldExportGroup = null; return(false); } if (!_cleanedClassNetCache.TryGetValue(group, out var classNetCachePath)) { classNetCachePath = $"{group.RemoveAllPathPrefixes()}_ClassNetCache"; _cleanedClassNetCache[group] = classNetCachePath; } return(NetFieldExportGroupMap.TryGetValue(classNetCachePath, out netFieldExportGroup)); }