タグ

nullに関するlamichのブックマーク (4)

  • Checking a null value in Objective-C that has been returned from a JSON string

    I have a JSON object that is coming from a webserver. The log is something like this: { "status":"success", "UserID":15, "Name":"John", "DisplayName":"John", "Surname":"Smith", "Email":"email", "Telephone":null, "FullAccount":"true" } Note the Telephone is coming in as null if the user doesn't enter one. When assigning this value to a NSString, in the NSLog it's coming out as <null> I am assigning

    Checking a null value in Objective-C that has been returned from a JSON string
  • null許容値型(Nullable&lt;T&gt; 型)

    概要 通常、「値型」は null 値(無効な値)を取れません。 ところが、データベース等、一部のアプリケーションでは、 値型の通常の(有効な)値と null(無効な値)を取るような型が欲しいときがあります。 そこで、C# 2.0 では、null 許容型(Nullable 型)という特殊な型が用意されました。 Ver. 8.0 C# 8.0 では、参照型についても ? の有無で null の可否を指定する機能が追加されました。 この機能を指して null 許容参照型(nullable reference type)と言ったりします。 この null 許容参照型と区別する意味で、項で説明している機能(C# 2.0 時代には唯一の null 許容型だった)を指して、null 許容値型(nullable value type)と呼ぶこともあります。 ポイント 値型 T に対して、T? をいう書き

    null許容値型(Nullable&lt;T&gt; 型)
  • Nullable value types - C# reference

    A nullable value type T? represents all values of its underlying value type T and an additional null value. For example, you can assign any of the following three values to a bool? variable: true, false, or null. An underlying value type T cannot be a nullable value type itself. Any nullable value type is an instance of the generic System.Nullable<T> structure. You can refer to a nullable value ty

  • Windows の基本的なコマンド集 - IT戦記

    まずは、コマンドプロンプトの基的な部分を使えるようにならないと。。ということで nul ファイル Unix の /dev/null のようなもの サイレントにコマンドを実行 > verbose-command > nul 空のファイルを作る > type nul > hoge.txtこーんな感じでコピーができる 環境変数 PATH 、 PATHEXT PATH という環境変数にディレクトリを登録しておくと、そのディレクトリ内の実行ファイル(環境変数 PATHEXT で指定された拡張子を持ったファイル)がファイル名だけで実行できるようになります。 PATHEXT に .TXT を指定してみる 以下のようにすると .txt に関連付けられたアプリケーション(メモ帳)で、 hoge.txt が起動する。 > type nul > hoge.txt > set PATHEXT = .TXT >

    Windows の基本的なコマンド集 - IT戦記
    lamich
    lamich 2009/01/05
    > doskey /h:Unix の history コマンド/> xcopy /s /e:Unix の cp -r/> where /R c:\ *keyword*:Unix でいうところの find コマンド/type nul > hoge.txt:Unixのtouchコマンド/> コマンド > nul:でUnix の /dev/null/> type hoge.txt | findstr /c:"a":Unix の grep コマンド
  • 1