示例#1
0
        /// <summary>
        /// Set/Override value for property
        /// </summary>
        /// <param name="PropertyName"></param>
        /// <param name="PropertyValue"></param>
        public void SetProperty(string PropertyName, object PropertyValue)
        {
            if (Props == null)
            {
                return;
            }

            if (Props.ContainsKey(PropertyName))
            {
                Props[PropertyName] = PropertyValue;
            }
            else
            {
                Props.Add(PropertyName, PropertyValue);
            }
        }