コード例 #1
0
        /// <summary>
        /// Expand property.
        /// </summary>
        /// <param name="propertyDefinition"></param>
        public void Expand(ExtendedPropertyDefinition extendedPropertyDefinition)
        {
            extendedPropertyDefinition.ThrowIfNull(nameof(extendedPropertyDefinition));
            if (null == this.expandablePropertySet)
            {
                this.expandablePropertySet = new ExpandablePropertySet();
            }

            this.expandablePropertySet.Add(extendedPropertyDefinition);
        }
コード例 #2
0
        /// <summary>
        /// Expand property.
        /// </summary>
        /// <param name="propertyDefinition"></param>
        public void Expand(PropertyDefinition propertyDefinition)
        {
            this.ValidatePropertyDefinition(propertyDefinition);
            if (null == this.expandablePropertySet)
            {
                this.expandablePropertySet = new ExpandablePropertySet();
            }

            this.expandablePropertySet.Add(propertyDefinition);
        }