Click or drag to resize
BTreeLoadFileIntoTreeT Method (String, BtreeT, FuncString, T, String, Boolean)
Load a file into a tree structure based on levels. by default '1 \n \t 2' in a file will create a parent with a child node

Namespace: ANDREICSLIB.Helpers
Assembly: ANDREICSLIB (in ANDREICSLIB.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static void LoadFileIntoTree<T>(
	string filename,
	Btree<T> root,
	Func<string, T> addfunc,
	string levelSeparator = "",
	bool RecreateFileIfInvalid = true
)

Parameters

filename
Type: SystemString
root
Type: ANDREICSLIB.HelpersBtreeT
addfunc
Type: SystemFuncString, T
T must be able to be instantiated with a string. call with a=>new T(a) where T is your class, or the return string method
levelSeparator (Optional)
Type: SystemString
RecreateFileIfInvalid (Optional)
Type: SystemBoolean

Type Parameters

T
class type, usually string
See Also