2010-10-15から1日間の記事一覧

Metafileに重ね書きできないよ...

C#

同一のMetafileオブジェクトからは1個しかGraphicsオブジェクトを作れないっぽい? I believe (not absolutely sure) that once a metafile is created (which happens when the metafile's Graphics object gets disposed), it isn't possible to re-write …

遅延評価と例外

C#

以下のようなメソッドから投げられる例外ってどうやったらキャッチできるのかなぁ。 public IEnumerable<int> Enumerate5() { yield return 0; yield return 1; yield return 2; yield return 3; throw new Exception(); yield return 4; } 以下のようにしてみた</int>…