Are implicit operators and TypeConverters equivalent?

前端 未结 4 2533
傲寒
傲寒 2021-02-20 09:57

It seems to me its very easy to implement an implicit operator versus a TypeConverter, so I\'m assuming they aren\'t equivalent because of the prevalence of TypeConverters in th

4条回答
  •  青春惊慌失措
    2021-02-20 10:31

    I am no expert on this.

    But at first glance, it looks like - you can provide converters outside of the original class (as against implicit operator) & maybe you can define multiple TypeConverter classes for a same thing (if you want to get different views for the same value).

提交回复
热议问题