KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
The example below compiles: public static void Main() { Byte b = 255; b += 100; } but this one below fails public static void Main() { Byte b = 255; b = b + 100; } with Error 1 Cannot implicitly convert type 'int' to 'byte'. An explicit conversion exists (are you missing a cast?) Does this mean that for C# += operator provides EXPLICIT conversion?
Tags (comma-separated)
Save Edits
Cancel