Commit f67a8682 authored by 彭伟's avatar 彭伟 Committed by Lemon

Add implicit convert (#187)

* Add general host

* Add sign

* Add implicit convert
parent 10b7aaba
/*
/*
* Licensed to the SkyAPM under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
......@@ -61,5 +61,8 @@ namespace SkyApm.Common
if (HasIntValue) return _intValue.ToString();
return _stringValue;
}
public static implicit operator StringOrIntValue(string value) => new StringOrIntValue(value);
public static implicit operator StringOrIntValue(int value) => new StringOrIntValue(value);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment