Syntax: The use of round brackets () in front of a method call

前端 未结 1 1087
悲哀的现实
悲哀的现实 2021-01-26 18:47

I was hoping to get some clarity on the use of () before the call of a method (applies to class,struc, etc as well). Firstly I don\'t know what the action is called so having tr

相关标签:
1条回答
  • 2021-01-26 19:19

    in languages like c# and java explicit type conversions are done by specifying the type the data should be converted to inside () brackets. so in your case the object returned by the Activator.GetObject is converted to type TestClassRemoting.

    find more info here,

    http://en.wikipedia.org/wiki/Type_conversion

    0 讨论(0)
提交回复
热议问题