Explicit and Implicit conversion
Explicit operator While digging into some legacy code at work, I found ‘explicit operator‘ is used in some classes. Explicit operator allow casting (or conversion) from one class to another. If you have 2 different classes, you cannot cast one to another, you’ll get a compile error. i.e Now, if you add explicit operator, you can … [Read more…]