You are previewing .NET Framework Standard Library Annotated Reference, Volume 1: Base Class Library and Extended Numerics Library.
O'Reilly logo
.NET Framework Standard Library Annotated Reference, Volume 1: Base Class Library and Extended Numerics Library

Book Description

Edited by a Lead Program Manager on Microsoft's .NET Framework team, .NET Framework Standard Library Annotated Reference, Volume 1, is the definitive reference for the .NET Framework base class library. This book utilizes extensive annotations and code samples from the creators of the technology to move beyond the online documentation and provide .NET developers with a dictionary-style reference to the most-used parts of the Framework. This volume covers a subset of the ISO CLI Standards, including the Base Class Library and the Extended Numerics Library.

In the printed book you will find informative overviews of each namespace covered and an easy-to-follow alphabetic reference of types in the standard, including type-level descriptions, sample code with output, and annotations from the design team and standardization committee.

With the ECMA and ISO standards as its core, this book includes:

  • Annotations from key members of the Microsoft design team and the Standardization committee. Comments cover everything from design rationale and history to common problems and shortcomings.

  • An overview of each namespace, describing its functionality and the inheritance hierarchy of types it defines.

  • Type descriptions. Each type is covered in its own chapter, with a detailed description of how the type is to be used and a quick reference of the C# declaration syntax for all members defined on the type. Also noted: which members are only available in the Microsoft implementation of the .NET Framework, which are not available in the .NET Compact Framework, and which are only available in V1.1 of the .NET Framework.

  • Code samples. Types are illustrated by fully compilable code samples with output included.

  • Reference tabs and an exhaustive index, which allow readers to quickly and easily navigate the text.

  • Reusable source code for more than one thousand samples. All code has been tested with versions 1.0, 1.1, and the 2.0 technical preview of the .NET Framework, and, where appropriate, with the .NET Compact Framework.

  • Table of Contents

    1. Copyright
    2. Microsoft .NET Development Series
    3. Foreword
    4. Preface
    5. Namespace Overviews
      1. System
        1. Basic Variable Types
        2. Attributes
        3. Utility Objects
        4. Interfaces
        5. Delegates
        6. Exceptions
        7. Diagram
      2. System.Collections
        1. Diagram
      3. System.Diagnostics
        1. Diagram
      4. System.Globalization
        1. Diagram
      5. System.IO
        1. Diagram
      6. System.Security
        1. Diagram
        2. System.Security.Permissions
        3. Diagram
      7. System.Text
        1. Diagram
      8. System.Threading
        1. Diagram
    6. Class Libraries
      1. System ApplicationException BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      2. System ArgumentException BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      3. System ArgumentNullException BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      4. System ArgumentOutOfRangeException BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      5. System ArithmeticException BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      6. System Array BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      7. System.Collections ArrayList BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      8. System ArrayTypeMismatchException BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      9. System.Text ASCIIEncoding BCL
        1. Summary
        2. Type Summary
        3. Description
      10. System AsyncCallback Delegate BCL
        1. Summary
        2. Type Summary
        3. Parameters
        4. Example
      11. System Attribute BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      12. System AttributeTargets Enum BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      13. System AttributeUsageAttribute BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      14. System Boolean Structure BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      15. System Byte Structure BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      16. System Char Structure BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      17. System CharEnumerator BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      18. System CLSCompliantAttribute BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      19. System.Security CodeAccessPermission BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      20. System.Security.Permissions CodeAccessSecurityAttribute BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      21. System.Collections Comparer BCL
        1. Summary
        2. Type Summary
        3. Example
      22. System.Diagnostics ConditionalAttribute BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      23. System Console BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      24. System Convert BCL
        1. Summary
        2. Type Summary
        3. Description
      25. System DateTime Structure BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      26. System.Globalization DateTimeFormatInfo BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      27. System.Globalization DateTimeStyles Enum BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      28. System Decimal Structure Extended Numerics
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      29. System.Text Decoder BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      30. System Delegate BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      31. System.Collections DictionaryEntry Structure BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      32. System.IO Directory BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      33. System.IO DirectoryNotFoundException BCL
        1. Summary
        2. Type Summary
        3. Example
      34. System DivideByZeroException BCL
        1. Summary
        2. Type Summary
        3. Example
      35. System Double Structure Extended Numerics
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      36. System DuplicateWaitObjectException BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      37. System.Text Encoder BCL
        1. Summary
        2. Type Summary
        3. Description
      38. System.Text Encoding BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      39. System.IO EndOfStreamException BCL
        1. Summary
        2. Type Summary
        3. Example
      40. System Enum BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      41. System Environment BCL
        1. Summary
        2. Type Summary
        3. Example
      42. System.Security.Permissions EnvironmentPermission BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      43. System.Security.Permissions EnvironmentPermissionAccess Enum BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      44. System.Security.Permissions EnvironmentPermissionAttribute BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      45. System EventArgs BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      46. System EventHandler Delegate BCL
        1. Summary
        2. Type Summary
        3. Parameters
        4. Description
        5. Example
      47. System Exception BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      48. System ExecutionEngineException BCL
        1. Summary
        2. Type Summary
        3. Description
      49. System.IO File BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      50. System.IO FileAccess Enum BCL
        1. Summary
        2. Type Summary
        3. Example
      51. System.Security.Permissions FileIOPermission BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      52. System.Security.Permissions FileIOPermissionAccess Enum BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      53. System.Security.Permissions FileIOPermissionAttribute BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      54. System.IO FileLoadException BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      55. System.IO FileMode Enum BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      56. System.IO FileNotFoundException BCL
        1. Summary
        2. Type Summary
        3. Example
      57. System.IO FileShare Enum BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      58. System.IO FileStream BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      59. System FlagsAttribute BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      60. System FormatException BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      61. System GC BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      62. System.Collections Hashtable BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      63. System IAsyncResult Interface BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      64. System ICloneable Interface BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      65. System.Collections ICollection Interface BCL
        1. Type Summary
        2. Summary
        3. Description
        4. Example
      66. System IComparable Interface BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      67. System.Collections IComparer Interface BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      68. System.Collections IDictionary Interface BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      69. System.Collections IDictionaryEnumerator Interface BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      70. System IDisposable Interface BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      71. System.Collections IEnumerable Interface BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      72. System.Collections IEnumerator Interface BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      73. System IFormatProvider Interface BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      74. System IFormattable Interface BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      75. System.Collections IHashCodeProvider Interface BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      76. System.Collections IList Interface BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      77. System IndexOutOfRangeException BCL
        1. Summary
        2. Type Summary
        3. Example
      78. System Int16 Structure BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      79. System Int32 Structure BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      80. System Int64 Structure BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      81. System.Threading Interlocked BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      82. System InvalidCastException BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      83. System InvalidOperationException BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      84. System InvalidProgramException BCL
        1. Summary
        2. Type Summary
        3. Description
      85. System.IO IOException BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      86. System.Security IPermission Interface BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      87. System MarshalByRefObject BCL
        1. Summary
        2. Type Summary
        3. Description
      88. System Math Extended Numerics
        1. Summary
        2. Type Summary
      89. System.IO MemoryStream BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      90. System.Threading Monitor BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      91. System NotFiniteNumberException Extended Numerics
        1. Summary
        2. Type Summary
        3. Description
      92. System NotImplementedException BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      93. System NotSupportedException BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      94. System NullReferenceException BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      95. System.Globalization NumberFormatInfo BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      96. System.Globalization NumberStyles Enum BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      97. System Object BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      98. System ObjectDisposedException BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      99. System ObsoleteAttribute BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      100. System OutOfMemoryException BCL
        1. Summary
        2. Type Summary
        3. Example
      101. System OverflowException BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      102. System.IO Path BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      103. System.IO PathTooLongException BCL
        1. Summary
        2. Type Summary
        3. Example
      104. System.Security PermissionSet BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      105. System.Security.Permissions PermissionState Enum BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      106. System Random BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      107. System RankException BCL
        1. Summary
        2. Type Summary
        3. Example
      108. System SByte Structure BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      109. System.Security.Permissions SecurityAction Enum BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      110. System.Security.Permissions SecurityAttribute BCL
        1. Summary
        2. Type Summary
        3. Example
      111. System.Security SecurityElement BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      112. System.Security SecurityException BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      113. System.Security.Permissions SecurityPermission BCL
        1. Type Summary
        2. Summary
        3. Description
        4. Example
      114. System.Security.Permissions SecurityPermissionAttribute BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      115. System.Security.Permissions SecurityPermissionFlag Enum BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      116. System.IO SeekOrigin Enum BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      117. System Single Structure Extended Numerics
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      118. System StackOverflowException BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      119. System.IO Stream BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      120. System.IO StreamReader BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      121. System.IO StreamWriter BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      122. System String BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Examples
      123. System.Text StringBuilder BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      124. System.IO StringReader BCL
        1. Summary
        2. Type Summary
        3. Example
      125. System.IO StringWriter BCL
        1. Summary
        2. Type Summary
        3. Example
      126. System.Threading SynchronizationLockException BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      127. System SystemException BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      128. System.IO TextReader BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      129. System.IO TextWriter BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      130. System.Threading Thread BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      131. System.Threading ThreadAbortException BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      132. System.Threading ThreadPriority Enum BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      133. System.Threading ThreadStart Delegate BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      134. System.Threading ThreadState Enum BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      135. System.Threading ThreadStateException BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      136. System.Threading Timeout BCL
        1. Summary
        2. Type Summary
        3. Example
      137. System.Threading Timer BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      138. System.Threading TimerCallback Delegate BCL
        1. Summary
        2. Type Summary
        3. Parameters
        4. Description
        5. Example
      139. System TimeSpan Structure BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      140. System Type BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      141. System TypeInitializationException BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      142. System UInt16 Structure BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      143. System UInt32 Structure BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      144. System UInt64 Structure BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      145. System UnauthorizedAccessException BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      146. System.Globalization UnicodeCategory Enum BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      147. System.Text UnicodeEncoding BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      148. System.Text UTF8Encoding BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      149. System ValueType BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      150. System.Security VerificationException BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      151. System Version BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      152. System.Threading WaitHandle BCL
        1. Summary
        2. Type Summary
        3. Description
        4. Example
      153. CD-ROM Warranty
    7. Index