Пример #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();
 }
Пример #2
0
 /// <summary>
 ///     Returns the singleton instance.
 /// </summary>
 /// <returns>The library instance.</returns>
 public static GenFunctionGeneral GetInstance()
 {
     return(_instance ?? (_instance = new GenFunctionGeneral()));
 }