Method ReadDateTime
ReadDateTime()
Reads an object of type System.DateTime from the current stream and advances the stream position. This method reads directly from the underlying stream.
Declaration
public abstract DateTime ReadDateTime()
Returns
Type | Description |
---|---|
System.DateTime | object read from the stream |
ReadDateTime(DateTime)
Reads an object of type System.DateTime from the current stream and advances the stream position. This method reads directly from the underlying stream.
Declaration
public abstract DateTime ReadDateTime(DateTime defaultValue)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | defaultValue | Default value to be used for deserializing old version of the object |
Returns
Type | Description |
---|---|
System.DateTime | object read from the stream |