c#入门6-表达式

时间:2021-03-16 13:37:55   收藏:0   阅读:0

各类表达式概览
·C#语言中表达式的分类
·A value.Every value has an associated type.任何能得到值的运算(回顾操作符和结果类型)
·A variable.Every variable has an associated type.
·A namespace.
·A type.
·A method group.例如:Console.WriteLine,这是一组方法,重载决策决定具体调用哪一个A null literal.
·An anonymous function.
A property access.
·An event access.
·An indexer access.
·Nothing.对返回值为void的方法的调用
·复合表达式的求值
·注意操作符的优先级和同优先级操作符的运算方向
·参考C#语言定义文档
·仅作参考,不必深究——毕竟我们是在学习语言、不是去实现这门语言

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!