Overriding explicit and implicit conversion in C# .NET
December 9, 2016 Leave a comment
Custom implicit and explicit conversions for numeric types can be defined in C# quite easily. You need to be aware of the “implicit”, “explicit” and “operator” keywords.
Consider the following class:
public class Measurement { public int Value { get; set; } }