Наследование: AbstractStore
Пример #1
0
        private static IStore GetConstant()
        {
            IStore	store;

            if (BuiltinStore.constant == null)
            {
                lock (BuiltinStore.mutex)
                {
                    if (BuiltinStore.constant == null)
                    {
                        store = new SimpleStore ();

                        foreach (KeyValuePair<string, IFunction> instance in BuiltinFunctions.Instances)
                            store[instance.Key] = new FunctionValue (instance.Value);

                        BuiltinStore.constant = store;
                    }
                }
            }

            return BuiltinStore.constant;
        }
Пример #2
0
        private static IStore GetConstant()
        {
            IStore store;

            if (BuiltinStore.constant == null)
            {
                lock (BuiltinStore.mutex)
                {
                    if (BuiltinStore.constant == null)
                    {
                        store = new SimpleStore();

                        foreach (KeyValuePair <string, IFunction> instance in BuiltinFunctions.Instances)
                        {
                            store[instance.Key] = new FunctionValue(instance.Value);
                        }

                        BuiltinStore.constant = store;
                    }
                }
            }

            return(BuiltinStore.constant);
        }
Пример #3
0
 public BuiltinStore()
 {
     this.store = new FallbackStore (BuiltinStore.GetConstant (), new SimpleStore ());
 }
Пример #4
0
 public BuiltinStore()
 {
     this.store = new FallbackStore(BuiltinStore.GetConstant(), new SimpleStore());
 }