Click or drag to resize

GuardIsReadable Method

[This is preliminary documentation and is subject to change.]

Checks if stream is read-able

Namespace:  CSInfrastructure.CodeContracts
Assembly:  CSInfrastructure (in CSInfrastructure.dll) Version: 1.13.0+Branch.master.Sha.d583fc64569355d188a9c0818d257b6d0d3e1339
Syntax
C#
public static Stream IsReadable(
	Stream stream,
	string paramName
)

Parameters

stream
Type: System.IOStream
The stream to check
paramName
Type: SystemString
The name of the parameter being checked

Return Value

Type: Stream
The stream being checked
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when stream is NULL
ArgumentExceptionThrown when stream is not read-able
See Also