Click or drag to resize

FileStreamDescriptorFromFileInfo Method

Creates a descriptor from a FileInfo instance.

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.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