FileSystemProviderSettings.EnableLazyEnumerationForGetChildrenMethod Property
Namespace: Rebex.IO.FileSystem
Assembly: Rebex.Common.dll (version 8.0.9673)
EnableLazyEnumerationForGetChildrenMethod
Gets or sets whether the enumerator of Rebex.IO.FileSystem.NodeBase} instances returned from the GetChildren(DirectoryNode, NodeType) method is lazy enumerated.
The default value is false. An enumerator is eagerly enumerated.
Declaration
public bool EnableLazyEnumerationForGetChildrenMethod { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Remarks
The value is used only in custom VFS providers that are derived from the ReadOnlyFileSystemProvider or ReadWriteFileSystemProvider and return a lazy IEnumerable<T> from the GetChildren(DirectoryNode, NodeType) method.
Built-in VFS providers ignore this value and behave as follows:
1) LocalFileSystemProvider returns a lazy IEnumerable<T>.
2) MemoryFileSystemProvider returns an eager IEnumerable<T>.
3) MountCapableFileSystemProvider returns lazy or eager IEnumerable<T> depending on the mounted VFS provider and given path.