public static DateTime NextDateTime(
this Random random,
DateTime? minValue = null,
DateTime? maxValue = null
)
<ExtensionAttribute>
Public Shared Function NextDateTime (
random As Random,
Optional minValue As DateTime? = Nothing,
Optional maxValue As DateTime? = Nothing
) As DateTime
public:
[ExtensionAttribute]
static DateTime NextDateTime(
Random^ random,
Nullable<DateTime> minValue = nullptr,
Nullable<DateTime> maxValue = nullptr
)
[<ExtensionAttribute>]
static member NextDateTime :
random : Random *
?minValue : Nullable<DateTime> *
?maxValue : Nullable<DateTime>
(* Defaults:
let _minValue = defaultArg minValue null
let _maxValue = defaultArg maxValue null
*)
-> DateTime
The Kind property of minValue and maxValue is ignored.
The Kind property of the generated DateTime instances is always Unspecified.
ArgumentNullException | random is . |
ArgumentOutOfRangeException | maxValue is less than minValue. |