網頁

2015年12月6日 星期日

dotNet System.IO 簡述

Last Update: 2015/12/06 17:43+08



Intro

簡單介紹 dotNet System.IO相關的類別
算是個整理, 但不做詳細介紹
以我的觀點將其分為 儲存(Storage) 和 串流(Stream)

主類次類父類類別描述
Storage
Drive DriveInfo 磁碟槽資訊
Directory
Directory static class可以取得目錄資訊
DirectoryInfo目錄資訊
File
File static class可以取得檔案資訊
FileInfo檔案資訊
UtilityPath實用路徑相關函式
Stream
Byte
Stream
串流基底
BufferStream 接收Stream, Byte的基本操作
FileStream接收檔案handle, Byte的基本操作
MemoryStream接收byte陣列, Byte的基本操作
BinaryReader接收Stream, 讀取Byte的進階操作
BinaryWriter接收Stream, 寫入Byte的進階操作
Text
TextReader
文字讀取基底
StringReader 接收字串, 讀取文字的基本操作
StreamReader接收Stream, 讀取文字的進階操作
TextWriter
文字寫入基底
StringWriter 接收字串, 寫入文字的基本操作
StreamWriter接收Stream, 寫文字的進階操作



我的分隔線

2015年12月1日 星期二

C# 使用 Marshal 在 byte array 和 結構之間轉換

Last Update: 2015/12/1 22:15+08



Intro

C# use Marshal to convertion between byte array and struct