private static string GetFilterName(IBaseFilter filter) { var result = string.Empty; if (filter.QueryFilterInfo(out var info) == 0) { try { result = info.achName; } finally { DsUtils.FreeFilterInfo(info); } } #if NET35 var clid = Guid.Empty; if (clid.TryParse(result, out clid)) #else if (Guid.TryParse(result, out var clid)) #endif { result = Filters.LegacyFilters.GetByGuid(clid)?.Name ?? result; } return(result); }