public static UnsupportedCaptureLevelException CreateWithCounterSupport(UnsupportedEventParserLevelException ex) { return(new ( ex.SpecifiedLevel, ex.SupportedLevels .Select(x => x.ToCaptureLevel()) .ToImmutableHashSet() .Add(CaptureLevel.Counters) )); }
public UnsupportedCaptureLevelException(UnsupportedEventParserLevelException ex) : this(ex.SpecifiedLevel, ex.SupportedLevels.Select(x => x.ToCaptureLevel()).ToImmutableHashSet()) { }