Overloading assignment operator in C#
It sounds like you should be using a struct rather than a class… and then creating an implicit conversion operator, as well as various operators for addition etc. Here’s some sample code: public struct Velocity { private readonly double value; public Velocity(double value) { this.value = value; } public static implicit operator Velocity(double value) { … Read more