public void AddObjProperty(ObjProperty objProperty) { if (_objProperties == null) { _objProperties = new List <ObjProperty>(); } _objProperties.Add(objProperty); }
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; } }