首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式碼之家 >> 編程語言 >  >> .NET 網頁程式設計 >> 關於.NET

.NET 核心類別庫速查總表:系統、集合、IO、反射、正則、多執行緒分類彙整

     編輯:關於.NET

將 .NET Framework 基礎類別庫 (BCL) 依功能領域分類彙整,供開發人員快速查閱核心型別與命名空間對應關係。

系統核心類別

  • 型別系統:Type、Object、String、Array、Exception、Delegate
  • 基礎結構:GC、MarshalByRefObject、Math、Convert
  • 值型別:DateTime、Guid、TimeSpan
  • 介面契約:ICloneable、IComparable、IConvertible、IDisposable、IFormattable

集合命名空間 (System.Collections / System.Collections.Generic)

  • 介面:IEnumerable、ICollection、IList、IDictionary、IComparer、IEqualityComparer
  • 舊版實作:ArrayList、Hashtable、SortedList、Stack、Queue、CollectionBase、DictionaryBase
  • 泛型實作 (建議優先):List<T>、Dictionary<TKey,TValue>、SortedDictionary<TKey,TValue>、Stack<T>、Queue<T>、HashSet<T>

輸入輸出 (System.IO)

  • 位元組流:Stream、FileStream、MemoryStream、BufferedStream
  • 二進位讀寫:BinaryReader、BinaryWriter
  • 文字讀寫:TextReader/TextWriter、StreamReader/StreamWriter、StringReader/StringWriter
  • 檔案系統:File、FileInfo、Directory、DirectoryInfo、FileSystemWatcher
  • 列舉:FileMode、FileAccess、FileShare、FileAttributes

反射 (System.Reflection)

  • 組件層級:Assembly、Module
  • 成員資訊:MemberInfo、MethodInfo、ConstructorInfo、PropertyInfo、FieldInfo、EventInfo、ParameterInfo
  • 進階:Binder、BindingFlags、CustomAttributeData

文字編碼與處理 (System.Text)

  • 編碼:Encoding、UTF8Encoding、UnicodeEncoding、ASCIIEncoding
  • 字串建構:StringBuilder
  • 正則表達式:Regex、Match、Group、Capture、RegexOptions

多執行緒 (System.Threading)

  • 執行緒控制:Thread、ThreadPool、ThreadStart、ParameterizedThreadStart
  • 同步原語:Monitor、Mutex、Semaphore、ReaderWriterLock、AutoResetEvent、ManualResetEvent、Interlocked
  • 狀態列舉:ThreadState、ThreadPriority

建議搭配 MSDN 文件與原始碼瀏覽器 (如 SourceBrowser、ILSpy) 深入掌握各類別的具體行為與效能特徵。

  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式碼之家 All Rights Reserved