0

As said in the title I don't understand the difference between this two type of conversion. Not only for the byte but also the other variable type.

So what is the difference and when I have to use one instead of the other?

Ondrej Janacek
  • 12,486
  • 14
  • 59
  • 93
nicetoCyou
  • 39
  • 1
  • 5
  • Welcome to Stack Overflow! Please, do not include information about a language used in a question title unless it wouldn't make sense without it. Tags serve this purpose. – Ondrej Janacek Mar 04 '14 at 12:44
  • What a fast reply! Thank you very much! – nicetoCyou Mar 04 '14 at 12:46
  • The answer really depends on the type of `val`. You can check the mono [source code](https://github.com/mono/mono/blob/5a20d0438a420272b44f9a52baf74429e3de8de6/mcs/class/corlib/System/Convert.cs#L405) or download [ILSpy](http://ilspy.net/) to see how it works. – Paolo Moretti Mar 04 '14 at 12:57

0 Answers0