public tgSmartDictionary(tgSmartDictionary 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; }
public tgSmartDictionary(tgSmartDictionary 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; }