<PackageReference Include="Microsoft.ApplicationInsights" Version="2.23.0" />

Microsoft.ApplicationInsights.Metrics.Util

static class Util
public const string NullString = "null"

public static int CombineHashCodes(int hash1)

public static int CombineHashCodes(int hash1, int hash2)

public static int CombineHashCodes(int hash1, int hash2, int hash3, int hash4)

public static int CombineHashCodes(int[] arr)

public static double ConvertToDoubleValue(object metricValue)

public static void CopyTelemetryContext(TelemetryContext source, TelemetryContext target)

Copies the TelemetryContext from one object to another.

public static double EnsureConcreteValue(double x)

public static bool FilterWillConsume(IMetricSeriesFilter seriesFilter, MetricSeries series, out IMetricValueFilter valueFilter)

public static bool FilterWillConsume(IMetricValueFilter valueFilter, MetricSeries series, double metricValue)

public static bool FilterWillConsume(IMetricValueFilter valueFilter, MetricSeries series, object metricValue)

public static double RoundAndValidateValue(double value)

public static void StampSdkVersionToContext(ITelemetry aggregate)

public static void ValidateNotNull(object value, string name)

Parameter check for Null.

public static void ValidateNotNullOrEmpty(string value, string name)

String parameter check with a more informative exception that specifies whether the problem was that the string was null or empty.

public static void ValidateNotNullOrWhitespace(string value, string name)

String parameter check with a more informative exception that specifies whether the problem was that the string was null, empty or whitespace only.