Cannot implicitly convert type 'X' to 'string' - when and how it decides that it “cannot”?
问题 Right now I'm having it with Guid s. I certainly remember that throughout the code in some places this implicit conversion works, in others it does not. Until now I fail to see the pattern. How the compiler decides when it cannot? I mean, the type method Guid.ToString() is present, isn't it called whenever this transformation is needed? Can someone please tell me under what circumstances this transformation is done automatically and when I have to call myInstance.ToString() explicitly? 回答1: