2005-04-09から1日間の記事一覧

C#実行速度比較

blogサーバ構築記(サーバ構築記)さんで、C#の実行速度に関するおもしろい記事を見たので、速度比較してみます。元の記事はこちら。ファイル中の文字列をカウントするコードです。C#でポインタを使って文字列を探し出しています。これと、素直に書いたコード…

ToArray( type ) の使い方

http://support.microsoft.com/kb/312390/ja/より。 Customer [] customer = (Customer[])myArrayList.ToArray(typeof(Customer));NG: ToArray( typeof( Customer[] ) )メモ。