/// <summary> /// コンストラクタ /// </summary> /// <param name="stringValue">[NotNull] 文字列設定値</param> /// <exception cref="ArgumentNullException">stringValueがnullの場合</exception> public DBItemValue(DBValueString stringValue) { if (stringValue == null) { throw new ArgumentNullException( ErrorMessage.NotNull(nameof(stringValue))); } Type = DBItemType.String; this.stringValue = stringValue; }
protected DBItemValue(SerializationInfo info, StreamingContext context) { Type = DBItemType.FromCode(info.GetInt32(nameof(Type))); intValue = info.GetInt32(nameof(intValue)); stringValue = info.GetValue <DBValueString>(nameof(stringValue)); }