Click or drag to resize

FileStreamDescriptorFromFileInfo Method

Creates a descriptor from a FileInfo instance.

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static FileStreamDescriptor FromFileInfo(
	FileInfo info,
	Func<FileStreamDescriptor, Stream> getStreamFunc = null
)

Parameters

info
Type: System.IOFileInfo
The FileInfo instance.
getStreamFunc (Optional)
Type: SystemFuncFileStreamDescriptor, Stream
The get stream function. If null, the stream will be opened immediatly.

Return Value

Type: FileStreamDescriptor
A FileStreamDescriptor instance.
Exceptions
ExceptionCondition
ArgumentNullExceptioninfo is null.
See Also