2013-04-02から1日間の記事一覧
jsonDataにJasonData型の型の値が入ってるとする。 List<String> keyHashTable = ((jsonData as IDictionary).Keys); String keyStr = keyHashTable.Last(); // Invalid Cast Exception 必ずジェネリックスしよう! String keyStr = keyHashTable.Last<String>();</string></string>
twitter-bootstrap-railsを使ってると Train Load (0.2ms) SELECT "trains".* FROM "trains" WHERE "trains"."id" = ? LIMIT 1 [["id", "favicon"]] Completed 404 Not Found in 3ms ActiveRecord::RecordNotFound (Couldn't find Train with id=favicon): a…
※System.Collections.Generic.ListのList Lengthです。カッコ要らない。 hogList.Count