core-library126 pages
Core library
The base class library that C# idiom is built on: strings, equality, collections, generics, memory, events.
- Apply attributes 03/02/2026
- Extend metadata using attributes 10/14/2020
- Retrieving Information Stored in Attributes 08/05/2022
- Write custom attributes 03/02/2026
- Automatic Memory Management 03/30/2017
- Alternation Constructs in Regular Expressions 03/30/2017
- Anchors in Regular Expressions 03/30/2017
- Backreference Constructs in Regular Expressions 03/30/2017
- Backtracking in regular expressions 08/11/2023
- How to: Perform Basic String Manipulations in .NET 03/30/2017
- Best practices for displaying and persisting formatted data 05/01/2019
- Best practices for regular expressions in .NET 06/11/2024
- Best practices for comparing strings in .NET 02/23/2026
- Change case in .NET 08/11/2021
- Character classes in regular expressions 09/08/2025
- Character encoding in .NET 10/22/2024
- How to use character encoding classes in .NET 08/11/2021
- Character Escapes in Regular Expressions 03/30/2017
- Choosing between anonymous and tuple types 07/01/2020
- Common type system 01/03/2024
- Compare strings in .NET 03/30/2017
- Compilation and reuse in regular expressions 06/11/2024
- Composite formatting 10/22/2025
- Type conversion tables in .NET 03/30/2017
- Create new strings in .NET 03/16/2026
- Custom date and time format strings 05/12/2022 CSharp · VB
- Custom numeric format strings 06/25/2018
- Custom TimeSpan format strings 03/30/2017
- Details of regular expression behavior 03/30/2017
- Extract substrings from a string 03/20/2026
- Enumeration format strings 06/19/2023
- Overview: How to format numbers, dates, enums, and other types in .NET 10/22/2025
- Grouping constructs in regular expressions 04/05/2023
- How to: Define and Use Custom Numeric Format Providers 03/30/2017
- How to: Display Dates in Non-Gregorian Calendars 03/30/2017
- How to: Display milliseconds in date and time values 08/01/2022
- How to: Extract a Protocol and Port Number from a URL 06/30/2020
- How to: Extract the Day of the Week from a Specific Date 08/09/2022
- How to: Pad a Number with Leading Zeros 07/26/2022
- How to: Round-trip Date and time values 11/15/2022
- How to: Strip Invalid Characters from a String 06/30/2020
- How to verify that strings are in valid email format 08/01/2022
- Miscellaneous Constructs in Regular Expressions 03/30/2017
- Pad strings in .NET 03/15/2018
- Parse date and time strings in .NET 01/16/2026
- Parsing numeric strings in .NET 07/27/2022
- Parse other strings in .NET 03/30/2017
- Parse strings in .NET 03/30/2017
- Quantifiers in Regular Expressions 08/09/2022
- Regular Expression Example: Changing Date Formats 06/30/2020
- Regular expression example: Scanning for HREFs 07/14/2021
- Regular Expression Language - Quick Reference 02/03/2021
- Regular expression options 06/02/2022
- .NET regular expression source generators 10/20/2025
- .NET regular expressions 03/18/2026
- Standard date and time format strings 04/05/2023
- Standard numeric format strings 10/22/2024
- Standard TimeSpan format strings 03/30/2017
- Using the StringBuilder Class in .NET 03/30/2017
- Substitutions in Regular Expressions 03/30/2017
- The regular expression object model 03/30/2017
- Trim and remove characters from strings in .NET 07/22/2022
- Type conversion in .NET 03/30/2017
- Commonly used collection types 06/09/2021
- Comparisons and sorts within collections 04/30/2020
- Hashtable and Dictionary Collection Types 03/30/2017
- Collections and Data Structures 10/20/2025
- Selecting a Collection Class 03/18/2019
- Sorted Collection Types 04/30/2020
- BlockingCollection Overview 03/30/2017
- How to add and remove items from a ConcurrentDictionary 05/04/2020
- How to: Add and Take Items Individually from a BlockingCollection 03/30/2017
- How to: Add Bounding and Blocking Functionality to a Collection 03/30/2017
- Create an object pool by using a ConcurrentBag 05/01/2020
- How to: Use Arrays of Blocking Collections in a Pipeline 03/30/2017
- Use foreach to remove items in a BlockingCollection 05/04/2020
- Thread-safe collections 10/21/2025
- When to use a thread-safe collection 03/30/2017
- When to use generic collections 04/30/2020
- Delegates and lambdas 06/20/2016
- Declare multiple events using event properties 03/25/2026
- How to implement a provider 06/01/2026
- How to implement an observer 06/01/2026
- Raise and consume events 03/24/2026
- Handle and raise events 03/23/2026
- Best practices for the observer design pattern 06/01/2026
- Observer design pattern 10/20/2025
- Best practices for exceptions 10/22/2025
- Exception class and properties 03/30/2017
- Handling COM Interop Exceptions 03/30/2017
- How to create user-defined exceptions with localized exception messages 07/31/2024
- How to create user-defined exceptions 08/10/2022
- How to explicitly throw exceptions 03/30/2017
- How to use finally blocks 03/30/2017
- How to use specific exceptions in a catch block 03/30/2017
- How to use the try/catch block to catch exceptions 02/06/2019
- Handling and throwing exceptions in .NET 06/19/2018
- Use user-filtered exception handlers 12/14/2020
- Application Domain Resource Monitoring 03/30/2017
- Background garbage collection 04/21/2020
- Dynamic adaptation to application sizes (DATAS) 08/09/2024
- Fundamentals of garbage collection 10/22/2025
- Implement a Dispose method 10/22/2025
- Implement a DisposeAsync method 10/20/2025
- Garbage collection 04/21/2020
- Induced Collections 03/30/2017
- The large object heap on Windows systems 11/11/2021
- Latency modes 03/30/2017
- Garbage collection notifications 03/30/2017
- Optimization for Shared Web Hosting 03/30/2017
- Garbage collection and performance 07/08/2022
- Cleaning up unmanaged resources 08/20/2021
- Using objects that implement IDisposable 05/18/2021
- Weak References 03/30/2017
- Workstation and server garbage collection 04/21/2020
- Generic types overview 10/09/2018
- Generic collections in .NET 02/15/2018
- Covariance and contravariance in generics 03/09/2026
- Generic Delegates for Manipulating Arrays and Lists 03/30/2017
- Generics in .NET 07/26/2022
- Generic interfaces in .NET 07/25/2022
- Generic math 08/12/2022
- Memory-related and span types 07/12/2024
- Memory<T> and Span<T> usage guidelines 04/09/2025
- Unsafe code best practices 09/17/2025
- Value tuples 01/03/2024