c# - What is meant by "never lose information" in the MSDN for implicit -
this question has answer here:
- .net implicit conversion guidelines 4 answers
- how allow implicit conversion? 3 answers
an answer following question using implicit states "implicit conversion operators should never throw exceptions , never lose information": how allow implicit conversion?
the linked msdn http://msdn.microsoft.com/en-us/library/z5z9kes2%28v=vs.71%29.aspx gives example on using implicit doesn't elaborate on meant loss of information, , i'm struggling understand mean. example think of integers vs floating point numbers seems incorrect.
Comments
Post a Comment