示例#1
0
        public void AddObjProperty(ObjProperty objProperty)
        {
            if (_objProperties == null)
            {
                _objProperties = new List <ObjProperty>();
            }

            _objProperties.Add(objProperty);
        }
示例#2
0
        protected void setValie(string key, string value)
        {
            if (_objProperties == null)
            {
                _objProperties = new List <ObjProperty>();
            }

            if (_objProperties == null)
            {
                _objProperties = new List <ObjProperty>();
            }

            var foundObj = _objProperties.Find(obj => obj.PropertyKey == key);

            if (foundObj == null)
            {
                foundObj = new ObjProperty(key, value);
                _objProperties.Add(foundObj);
            }
            else
            {
                foundObj.PropertyValue = value;
            }
        }