Esempio n. 1
0
 /// <summary>
 ///     Create a new library manager and registers the standard libraries.
 /// </summary>
 private LibraryManager()
 {
     Register(GenFunctionCounters.GetInstance());
     Register(GenFunctionMap.GetInstance());
     Register(GenFunctionGeneral.GetInstance());
     RegisterExternals();
 }
Esempio n. 2
0
 /// <summary>
 ///     Returns the singleton instance.
 /// </summary>
 /// <returns>The library instance.</returns>
 public static GenFunctionMap GetInstance()
 {
     return(_instance ?? (_instance = new GenFunctionMap()));
 }