You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using hexadecimal values is very convenient when the property represents some flags. We should support it.
The reason this does not work today is that TelemetryConfigurationFactory.LoadInstanceFromValue() method calls into Convert.ChangeType(), which does not support hexadecimal values. For numeric properties we should try harder. For example, if the value starts with 0x or 0X, we could attempt Int32.TryParse() with AllowHexPrefix set before falling back to Convert.ChangeType.
The text was updated successfully, but these errors were encountered:
Currently it is not possible for numeric properties in the configuration to use hexadecimal numbers. For example
works but
does not.
Using hexadecimal values is very convenient when the property represents some flags. We should support it.
The reason this does not work today is that
TelemetryConfigurationFactory.LoadInstanceFromValue()
method calls intoConvert.ChangeType()
, which does not support hexadecimal values. For numeric properties we should try harder. For example, if the value starts with0x
or0X
, we could attemptInt32.TryParse()
withAllowHexPrefix
set before falling back toConvert.ChangeType
.The text was updated successfully, but these errors were encountered: