斗志 发表于 2025-3-23 10:51:53

Structs,Structs are programmer-defined data types, very similar to classes. They have data members and function members. Although similar to classes, there are a number of important differences. The most important ones are the following:

inflame 发表于 2025-3-23 15:41:32

Enumerations,An enumeration, or enum, is a programmer-defined type, like a class or a struct.

antidote 发表于 2025-3-23 20:19:46

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.

描述 发表于 2025-3-23 23:29:33

http://reply.papertrans.cn/47/4613/461217/461217_14.png

含沙射影 发表于 2025-3-24 04:01:55

http://reply.papertrans.cn/47/4613/461217/461217_15.png

genuine 发表于 2025-3-24 09:10:27

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 18-1 illustrates type conversion.

assent 发表于 2025-3-24 14:22:25

Generics,With the language constructs you’ve learned so far, you can build powerful objects of many different types. You do this mostly by declaring classes that encapsulate the behavior you want and then creating instances of those classes.

Entirety 发表于 2025-3-24 16:21:32

http://reply.papertrans.cn/47/4613/461217/461217_18.png

Factual 发表于 2025-3-24 20:20:27

Methods,o a method and receive data back as output. As you saw in the previous chapter, a method is a function member of a class. Methods have two major sections, as shown in Figure 5-1—the method header and the method body.

牛马之尿 发表于 2025-3-25 02:12:05

http://reply.papertrans.cn/47/4613/461217/461217_20.png
页: 1 [2] 3 4 5 6 7
查看完整版本: Titlebook: Illustrated C# 2010; Daniel M. Solis Book 2010 Daniel Solis 2010 .NET..NET framework.Arrays.C#.Generics.LINQ.programming.programming langu