string fc = .......
Dictionary<string, string> fcData = serializer.Deserialize<Dictionary<string, string>>(fc);
if (!string.IsNullOrWhiteSpace(fcData["Diploma.GraduationBeginDate"]))
DateTime? GraduationBeginDate = Convert.ToDateTime(fcData["Diploma.GraduationBeginDate"]);
エラー:{ "オブジェクト参照がオブジェクトのインスタンスに設定されていません。"}nullable DateTimeを変換するには?
これは私のコードです。 fcData
に値があり、count =11
とfcData["Diploma.GraduationBeginDate"]
の値は10.05.2016
です。なぜ機能しませんか?私たちを手伝ってくれますか ?
[NullReferenceExceptionとは何ですか?それを修正するにはどうすればいいですか?](http://stackoverflow.com/questions/4660142/what-is-a-nullreferenceexception-and-how-do-i-fix -it) –
いいえ、私は見つけることができませんでした。 –
コードのより完全なセクションを '.......'なしで投稿してください。また、 - あなたは、コードをデバッグし、私の行をどの行に例外をスローしますか? –