找回密码
 To register

QQ登录

只需一步,快速开始

扫一扫,访问微社区

Titlebook: Illustrated C# 2012; Daniel M. Solis Book 20122nd edition Daniel Solis 2012

[复制链接]
楼主: industrious
发表于 2025-3-26 22:36:31 | 显示全部楼层
发表于 2025-3-27 01:46:50 | 显示全部楼层
Structs,Structs are programmer-defined data types, very similar to classes. They have data members and function members. Although structs are similar to classes, there are a number of important differences. The most important ones are the following:
发表于 2025-3-27 06:45:13 | 显示全部楼层
Enumerations,An enumeration, or enum, is a programmer-defined type, such as a class or a struct.
发表于 2025-3-27 11:51:59 | 显示全部楼层
Arrays,An array is a set of uniform data elements represented by a single variable name. The individual elements are accessed using the variable name together with one or more indexes between square brackets, as shown here:
发表于 2025-3-27 17:36:30 | 显示全部楼层
Delegates,You can think of a delegate as an object that holds one or more methods. Normally, of course, you wouldn’t think of “executing” an ., but a delegate is different from a typical object. You can execute a delegate, and when you do so, it executes the method or methods that it “holds.”
发表于 2025-3-27 19:11:39 | 显示全部楼层
Events,One common requirement in many programs is that when a particular program event occurs, other parts of the program need to be notified that the event has occurred.
发表于 2025-3-27 23:08:03 | 显示全部楼层
发表于 2025-3-28 02:06:50 | 显示全部楼层
Conversions,To get an understanding of what conversions are, let’s start by considering the simple case in which you declare two variables of different types and then assign the value of one (the .) to the other (the .). Before the assignment can occur, the source value must be converted to a value of the target type. Figure 16-1 illustrates type conversion.
发表于 2025-3-28 09:36:54 | 显示全部楼层
发表于 2025-3-28 14:10:38 | 显示全部楼层
Enumerators and Iterators,In Chapter 12, you saw that you can use a f oreach statement to cycle through the elements of an array. In this chapter, you’ll take a closer look at arrays and see why they can be processed by f oreach statements. You’ll also look at how you can add this capability to your own user-defined classes, using iterators.
 关于派博传思  派博传思旗下网站  友情链接
派博传思介绍 公司地理位置 论文服务流程 影响因子官网 SITEMAP 大讲堂 北京大学 Oxford Uni. Harvard Uni.
发展历史沿革 期刊点评 投稿经验总结 SCIENCEGARD IMPACTFACTOR 派博系数 清华大学 Yale Uni. Stanford Uni.
|Archiver|手机版|小黑屋| 派博传思国际 ( 京公网安备110108008328) GMT+8, 2025-5-26 08:48
Copyright © 2001-2015 派博传思   京公网安备110108008328 版权所有 All rights reserved
快速回复 返回顶部 返回列表