Module 13: Properties and Indexers

The obvious common feature of properties and indexers is that they both use get and set accessor syntax. This module does not cover the more advanced aspects of properties and indexers, such as their use in interfaces or their use with virtual, abstract, override, and new modifiers. After completing this module, students will be able to: Create properties to encapsulate data within a class. Define indexers to use objects with array-like notation. | msdn training Module 13 Properties and Indexers Contents Overview 1 Using Properties 2 Using Indexers 17 Lab Using Properties and Indexers 33 Review 42 Microsoft Information in this document including URL and other Internet Web site references is subject to change without notice. Unless otherwise noted the example companies organizations products domain names e-mail addresses logos people places and events depicted herein are fictitious and no association with any real company organization product domain name e-mail address logo person places or events is intended or should be inferred. Complying with all applicable copyright laws is the responsibility of the user. Without limiting the rights under copyright no part of this document may be reproduced stored in or introduced into a retrieval system or transmitted in any form or by any means electronic mechanical photocopying recording or otherwise or for any purpose without the express written permission of Microsoft Corporation. Microsoft may have patents patent applications trademarks copyrights or other intellectual property rights covering subject matter in this document. Except as expressly provided in any written license agreement from Microsoft the furnishing of this document does not give you any license to these patents trademarks copyrights or other intellectual property. 2001-2002 Microsoft Corporation. All rights reserved. Microsoft MS-DOS Windows Windows NT ActiveX BizTalk IntelliSense JScript MSDN PowerPoint SQL Server Visual Basic Visual C Visual C Visual J Visual Studio and Win32 are either registered trademarks or trademarks of Microsoft Corporation in the . and or other countries. The names of actual companies and products mentioned herein may be the trademarks of their respective owners. Module 13 Properties and Indexers iii Instructor Notes Presentation The obvious common feature of properties and indexers is that they both use 30 Minutes get and set accessor syntax. This module does .

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
5    67    1    26-06-2024
Đã 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.