Will the c# compiler perform multiple implicit conversions to get from one type to another?
问题 Let's say you have yourself a class like the following: public sealed class StringToInt { private string _myString; private StringToInt(string value) { _myString = value; } public static implicit operator int(StringToInt obj) { return Convert.ToInt32(obj._myString); } public static implicit operator string(StringToInt obj) { return obj._myString; } public static implicit operator StringToInt(string obj) { return new StringToInt(obj); } public static implicit operator StringToInt(int obj) {