protected int _setValue(int AttributeLocale, CMetaobjectAttributeValue Value) { if (this._values.ContainsKey(AttributeLocale)) this._values[AttributeLocale] = Value; else this._values.Add(AttributeLocale, Value); return -1; }
protected CMetaobjectAttributeValue _getValue(int AttributeLocale) { CMetaobjectAttributeValue R = (this._values.ContainsKey(AttributeLocale) ? this._values[AttributeLocale] : null); if (R != null) return R; R = (this._context == null ? null : CMetaobjectAttributeValue.sGetAttributeValue(this._objectKey, this._attributeID, AttributeLocale, this._context)); if (R == null) { R = new CMetaobjectAttributeValue() { AttributeID = this._attributeID, AttributeLocale = AttributeLocale, ObjectKey = this._objectKey }; } this._values.Add(AttributeLocale, R); return R; }