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.HelpersAssembly: ANDREICSLIB (in ANDREICSLIB.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static void LoadFileIntoTree<T>(
string filename,
Btree<T> root,
Func<string, T> addfunc,
string levelSeparator = "",
bool RecreateFileIfInvalid = true
)
Public Shared Sub LoadFileIntoTree(Of T) (
filename As String,
root As Btree(Of T),
addfunc As Func(Of String, T),
Optional levelSeparator As String = "",
Optional RecreateFileIfInvalid As Boolean = true
)
public:
generic<typename T>
static void LoadFileIntoTree(
String^ filename,
Btree<T>^ root,
Func<String^, T>^ addfunc,
String^ levelSeparator = L"",
bool RecreateFileIfInvalid = true
)
static member LoadFileIntoTree :
filename : string *
root : Btree<'T> *
addfunc : Func<string, 'T> *
?levelSeparator : string *
?RecreateFileIfInvalid : bool
(* Defaults:
let _levelSeparator = defaultArg levelSeparator ""
let _RecreateFileIfInvalid = defaultArg RecreateFileIfInvalid true
*)
-> unit
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