2007-10-06から1日間の記事一覧

10/6

CLI Back-End and Front-End - GNU Project - Free Software Foundation (FSF) The objective of the project was to create a new GCC frontend able to take a .NET executable as input, and produce optimized native code as output. うーむ、ニーズは…

Excelを扱う

C#

先日の日記のようにCOMやMicrosoft.Office.Interop.Excelを使えば良いのですが、解放処理が面倒だったりします。もし、Excelを使う用途がデータの読み書きだけならADO.NETでやってしまうのも一つの手です。 using System; using System.Data; using System.D…

クラスの別名宣言

C#

http://wesnerm.blogs.com/net_undocumented/2007/10/type-names.htmlより。 using System; using System.Collections.Generic; // NG // using T = List<string>; // 次のように書かなければならない // using T = System.Collections.Generic.List<T>; namespace MyNa</t></string>…

文字列を1文字ずつ処理する

Pythonクックブックを読みながら、IronPythonで色々お試し。 import clr from System import Convert,IConvertible for c in 'Hello': print c.GetType(), ord(c) """ System.String 72 System.String 101 System.String 108 System.String 108 System.Strin…