C# 0perators

class/struct 可以覆盖内置操作符,或者自定义 conversion operators。

Operators (C# Programming Guide)

Overloaded operators

operator (C# Reference)

Overloadable Operators (C# Programming Guide)

Conversion Operators

Conversion Operators (C# Programming Guide)

implicit (C# Reference)

用户定义的 operators 必须是 public。