static UBigInt() { EngineObject = new Core.UBigIntEngine(); var settings = new ConfigurationDictionary(); foreach (var key in new[] { "COMPILER", "PLATFORM" }) { settings.Add(key, EngineObject.GetConfigurationSettings(key)); } ConfigurationSettings = settings; Zero = new UBigInt(EngineObject.Zero); One = new UBigInt(EngineObject.One); _tostring_format_pattern = new Regex("^[cdefgnprx]|[cdefgnprx][0-9]|[cdefgnprx][0-9][0-9]$", RegexOptions.Compiled | RegexOptions.IgnoreCase); }
static UBigInt() { _lock_obj = new object(); EngineObject = new Core.UBigIntEngine(); var settings = new ConfigurationDictionary(); foreach (var key in new[] { "COMPILER", "CONFIG", "PLATFORM", "TABLESIZE" }) { settings.Add(key, EngineObject.GetConfigurationSettings(key)); } ConfigurationSettings = settings; PerformanceCounters = new PerformanceCounterCollection(); Zero = new UBigInt(EngineObject.Zero); One = new UBigInt(EngineObject.One); }