예제 #1
0
        public VertexTypePredefinition AddBinaryProperty(BinaryPropertyPredefinition myBinaryPropertyPredefinition)
        {
            if (myBinaryPropertyPredefinition != null)
            {
                _attributes = (_attributes) ?? new List<AttributePredefinition>();
                _attributes.Add(myBinaryPropertyPredefinition);
                _binaries++;
            }

            return this;
        }
예제 #2
0
        /// <summary>
        /// Adds a binary property.
        /// </summary>
        /// <param name="myBinaryPropertyPredefinition">The defintition of the binary property.</param>
        /// <returns>The reference of the current object. (fluent interface).</returns>
        public RequestAlterVertexType AddBinaryProperty(BinaryPropertyPredefinition myBinaryPropertyPredefinition)
        {
            if (myBinaryPropertyPredefinition != null)
            {
                _toBeAddedAttributes = (_toBeAddedAttributes) ?? new List<AttributePredefinition>();
                _toBeAddedAttributes.Add(myBinaryPropertyPredefinition);
                AddBinaryPropertyCount++;
            }

            return this;
        }