public esSmartDictionary(esSmartDictionary smartDictionary)
        {
            if (smartDictionary.ordinals != null)
            {
                ordinals = new Dictionary<string, int>(smartDictionary.ordinals);
            }

            if (smartDictionary.currentValues != null)
            {
                int length = smartDictionary.currentValues.Length;

                currentValues = new object[length];

                for (int i = 0; i < length; i++)
                {
                    currentValues[i] = smartDictionary.currentValues[i];
                }
            }

            onFirstAccess = smartDictionary.onFirstAccess;
        }
Ejemplo n.º 2
0
        public esSmartDictionary(esSmartDictionary smartDictionary)
        {
            if (smartDictionary.ordinals != null)
            {
                ordinals = new Dictionary <string, int>(smartDictionary.ordinals);
            }

            if (smartDictionary.currentValues != null)
            {
                int length = smartDictionary.currentValues.Length;

                currentValues = new object[length];

                for (int i = 0; i < length; i++)
                {
                    currentValues[i] = smartDictionary.currentValues[i];
                }
            }

            onFirstAccess = smartDictionary.onFirstAccess;
        }