Method CanExpand
- Namespace
- Terminal.Gui.FileServices
- Assembly
- Terminal.Gui.dll
CanExpand(IFileSystemInfo)
Returns true/false for whether a model has children. This method should be implemented when GetChildren(T) is an expensive operation otherwise SupportsCanExpand should return false (in which case this method will not be called).
public bool CanExpand(IFileSystemInfo toExpand)
Parameters
toExpandIFileSystemInfoThe object to check for expandability.
Returns
- bool
True if the object has children that can be expanded.
Remarks
Only implement this method if you have a very fast way of determining whether an object can have children e.g. checking a Type (directories can always be expanded).