int プロパティまたは DateTime プロパティで GetType を呼び出すと、期待どおりの結果が得られますが、文字列プロパティでは NullReferenceException (?) が返されます。
private int PropInt { get; set; }
private DateTime PropDate { get; set; }
private string propString { get; set; }
WriteLine(PropInt.GetType().ToString()); // Result : System.Int32
WriteLine(PropDate.GetType().ToString()); // Result : System.DateTime
WriteLine(propString.GetType().ToString()); // Result : NullReferenceException (?!)
誰か説明できますか?string-prop と int-prop の違いは何ですか?