Đang chuẩn bị liên kết để tải về tài liệu:
Chapter12 - Working with String

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

“Describes how strings are a first-class type in the CLR and how to use them effectively in C#. A large portion of the chapter covers the string-formatting capabilities of various types in the .NET Framework and how to make your defined types behave similarly by implementing IFormattable. Additionally, I introduce you to the globalization capabilities of the framework and how to create custom CultureInfo for cultures and regions that the .NET Framework doesn’t already know about.” | Chapter 12. Working With String Hoang Anh Viet VietHA@it-hut.edu.vn HaNoi University of Technology 3. Data Types 2008 © 2008 Microsoft Objectives “Describes how strings are a first-class type in the CLR and how to use them effectively in C#. A large portion of the chapter covers the string-formatting capabilities of various types in the .NET Framework and how to make your defined types behave similarly by implementing IFormattable. Additionally, I introduce you to the globalization capabilities of the framework and how to create custom CultureInfo for cultures and regions that the .NET Framework doesn’t already know about.” 3. Data Types 2008 © 2008 Microsoft Roadmap 12 .1 String Overview 12.2 String Literals 12.3 Format Specifiers and Globalization 12.4 Working String from Outsite Sources 12 5 StringBuilder 12.6 Searching Strings with Regular Expression. . 12.1 String Overview In C#, String is a built-in type. In the built-in type collection , String is a . | Chapter 12. Working With String Hoang Anh Viet VietHA@it-hut.edu.vn HaNoi University of Technology 3. Data Types 2008 © 2008 Microsoft Objectives “Describes how strings are a first-class type in the CLR and how to use them effectively in C#. A large portion of the chapter covers the string-formatting capabilities of various types in the .NET Framework and how to make your defined types behave similarly by implementing IFormattable. Additionally, I introduce you to the globalization capabilities of the framework and how to create custom CultureInfo for cultures and regions that the .NET Framework doesn’t already know about.” 3. Data Types 2008 © 2008 Microsoft Roadmap 12 .1 String Overview 12.2 String Literals 12.3 Format Specifiers and Globalization 12.4 Working String from Outsite Sources 12 5 StringBuilder 12.6 Searching Strings with Regular Expression. . 12.1 String Overview In C#, String is a built-in type. In the built-in type collection , String is a reference type and but most of the built-in types are value types. String Basics A string is an object of type String whose value is text. The text is stored as a readonly collection of Char objects. Each of which represents one Unicode character encoded in UTF-16. There is no null-terminating character at the end of a C# string (unlike C and C++). therefore a C# string can contain any number of embedded null characters ('\0'). The length of a string represents the number of characters regardless of whether the characters are formed from Unicode surrogate pairs or not. Alias and String Class Alias In C#, the string keyword is an alias for String -> string and String are equivalent. String Class The String class provides many methods for Creating strings Manipulating strings Comparing strings. It overloads some operators to simplify common string operations. Declaring and Initializing Strings We can declare and initialize strings in various ways, as shown in the following example:

TÀI LIỆU LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.