Skip to Content
C# 7.0 核心技术指南(原书第7版)
book

C# 7.0 核心技术指南(原书第7版)

by Joseph Albahari, Ben Albahari
August 2019
Intermediate to advanced
1074 pages
24h 28m
Chinese
China Machine Press
Content preview from C# 7.0 核心技术指南(原书第7版)
26
2
add dynamic in orderby var
ascending equals into partial when
async from join remove where
await get let select yield
by global nameof set
descending group on value
使用上下文关键字作为标识符时,应避免与上下文中的关键字混淆。
2.2.2 字面量、标点与运算符
字面量是静态的嵌入程序中的原始数据片段。上述示例中用到的字面量 12 30
标点有助于划分程序结构。以下是示例中用到的标点:
{ } ;
大括号可将多条语句形成一个语句块。
分号用于结束一条语句。(但语句块并不需要分号。)这意味着语句也可以放在多行中:
Console.WriteLine
(1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10);
运算用于改变和结合表达式。大多 C# 算符都以符号表示,例如乘法运算 *
我们将在本章后续内容中详细介绍运算符。在上述示例中出现的运算符有:
. () * =
点号(.)表示某个对象的成员(或者数字字面量的小数点)。括号在声明或调用方法时
使用;空括号在方法没有参数时使用。(本章后续还会介绍括号的其他的用途。)等号用
赋值操作。(双等 == 于相等比较,请参见本章后续内容)。
2.2.3 注释
C# 供了两种方式源代码文档:单行注释和多行注释。单行注释由双斜线开始,到本行 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

算法技术手册(原书第2 版)

算法技术手册(原书第2 版)

George T.Heineman, Gary Pollice, Stanley Selkow
数字化转型:企业破局的34 个锦囊

数字化转型:企业破局的34 个锦囊

Gary O’Brien, Xiao Guo, Mike Mason

Publisher Resources

ISBN: 9787111631347