Why is this switch case returning a double even though it is an int?

前端 未结 0 876
广开言路
广开言路 2021-01-28 04:33

Given following code:

object value = header.DataContentType switch
{
    DataContentType.DOUBLE => (double)BitConverter.         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题