The .NET Framework(非原创---外教讲义)[10]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

those base classes. You can use these derived classes 'as is" or derive your own classes from them.

It also provides interfaces and default implementations of those interfaces. To get the interface's

functionality, you can either implement the interface yourself or use or derive a class from one of the runtime-based classes that implements the interface.

 

The framework classes include standard base class libraries, such as collections, input/output, string, and numerical classes . It also includes base  class, libraries that provide access to operating system services, such as graphics, networking, threading, globalization, and cryptography, and a data access class library. Apart from these, it provides classes that can be used by development tools, such as debugging and profiling services..NET Framework types are named using a dot-syntax naming scheme that connotes a naming hierarchy. This technique is used to logically group related classes together so that they can be searched and referenced more easily. For example, the System. Reflection.x  Field no class is related to other classes that also use a System. Refiection.x naming pattern: all of the classes named with a System. Reflection prefix can be used to discover information about types at runtime. The part of the name up to the last dot (e.g., System. Reflection) is often referred to as the namespace name and the

last part (e.g., Field no) as the class name. The use of naming patterns to group related classes into

namespaces is a very useful way to build and document. class libraries. This naming syntax has no

effect on visibility, member access, inheritance, or binding. A namespace may be partitioned across

multiple assemblies and a single assembly may contain classes from multiple namespaces. It is the

assembly that provides the formal structure for visibility and versioning in the runtime.

The root namespace for the types in the .NET Framework is the System namespace. This namespace

includes classes that represent the base data types used by all applications: Object (the root of the

inheritance hierarchy), Byte, Char,-ATray,'lfit32, String, etc. Many of these types correspond to the

primitive data types that your language compiler uses. When you write a code using .NET Framework

types, you can, if you wish, use your language's corresponding type when a runtime-based type is

expected. Along with the base data types, there are almost 100 classes directly in the System namespace ranging from classes for handling exceptions and forming delegates to dealing with core runtime concepts such as application domains and the automatic memory manager,                            

本文关键:The .NET Framework(非原创---外教讲义)
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top