技術的メモと日常
技術的メモと日常
Subscribe

技術的メモと日常

Entries from 2010-07-01 to 1 month

2010-07-22

C#のメソッドのstring引数にnullが設定されたらコンパイルエラーにする方法を考えたなう

.NET C#

public struct NotNull<T> where T : class { public class Null { } public static implicit operator NotNull<T>(Null other) { throw new InvalidOperationException(); } public static implicit operator NotNull<T>(T other) { return new NotNull<T>() { value = </t></t></t></t>…

Hatena Bookmark - C#のメソッドのstring引数にnullが設定されたらコンパイルエラーにする方法を考えたなう
プロフィール
id:otf id:otf
Subscribed unsubscribe Subscribe Subscribe
About this blog
検索
リンク
  • はてなブログ
  • ブログをはじめる(無料)
  • お知らせ
最新記事
  • WebSharperの基本
  • ApiaryProviderで大マッシュアップ時代を生き抜く
  • DelegateDecompilerでEntityFrameworkをぱわわっぷ(入門編)
  • Functional HTTP Programming
  • 詳細設計書について思うこと 続き
月別アーカイブ
  • ▼ ▶
    2015
    • 2015 / 12
  • ▼ ▶
    2014
    • 2014 / 12
  • ▼ ▶
    2013
    • 2013 / 4
  • ▼ ▶
    2012
    • 2012 / 12
    • 2012 / 8
  • ▼ ▶
    2011
    • 2011 / 12
    • 2011 / 9
    • 2011 / 3
  • ▼ ▶
    2010
    • 2010 / 9
    • 2010 / 8
    • 2010 / 7
  • ▼ ▶
    2009
    • 2009 / 10
    • 2009 / 9
技術的メモと日常 技術的メモと日常

Powered by Hatena Blog | ブログを報告する

Quote saved.

Login to quote this blog

Failed to save quote. Please try again later.

You cannot quote because this article is private.

Subscribed unsubscribe Subscribe Subscribe