Comments on: Type Conversion in C# https://code-maze.com/csharp-type-conversion/ Learn. Code. Succeed. Thu, 16 Dec 2021 10:45:54 +0000 hourly 1 https://wordpress.org/?v=6.7.5 By: Marinko https://code-maze.com/csharp-type-conversion/#comment-331 Sun, 19 Aug 2018 10:08:00 +0000 https://code-maze.com/?p=4219#comment-331 In reply to Robert Huang.

Thank you for the suggestion. Still, this example will only help the beginners, and I will add another section to seperate it from the explicit conversion.

]]>
By: Robert Huang https://code-maze.com/csharp-type-conversion/#comment-330 Sun, 19 Aug 2018 04:54:00 +0000 https://code-maze.com/?p=4219#comment-330 Usually explicit and implicit conversions are operators that are defined for these conversions (explicit and implicit keywords). Using Convert class to convert variables cannot be accounted explicit nor implicit conversion in this context.

]]>
By: Marinko https://code-maze.com/csharp-type-conversion/#comment-308 Sat, 04 Aug 2018 07:31:00 +0000 https://code-maze.com/?p=4219#comment-308 In reply to Jer0enH.

Hello Jer0enH. Thank you for your note, I believe that this can only help readers to understand conversion better, so we will update this article.

]]>
By: Jer0enH https://code-maze.com/csharp-type-conversion/#comment-307 Fri, 03 Aug 2018 23:12:00 +0000 https://code-maze.com/?p=4219#comment-307 Note that the example b = x/y may confuse people. The result of x/y is of type int (so truncated) and only then converted to double. E.g. double c = 21/10 will also result in c having a value of 2.0. Maybe worth to call this out.

]]>