Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 static UBigIntHandle()
 {
     _engine            = new UBigIntEngine();
     _disposable_object = _engine;
 }
Exemplo n.º 4
0
 static Random()
 {
     EngineObject = new Core.UBigIntEngine();
 }
Exemplo n.º 5
0
 static RandomStateObjectHandle()
 {
     _engine            = new UBigIntEngine();
     _disposable_object = _engine;
 }