예제 #1
0
        /// <summary>Factory method that creates an API null node object.</summary>
        /// <param name="apiPathMixin">Represents the path relationship from the API null node to parent API node.</param>
        /// <returns>Newly created API null node.</returns>
        public static ApiNullNode Create(ApiPathMixin apiPathMixin)
        {
            Contract.Requires(apiPathMixin != null);

            var apiNullNode = new ApiNullNode(apiPathMixin);

            return(apiNullNode);
        }
예제 #2
0
        // PUBLIC METHODS ///////////////////////////////////////////////////
        #region Factory Methods
        /// <summary>Factory method that creates an API null node object.</summary>
        /// <returns>Newly created API null node.</returns>
        public static ApiNullNode Create()
        {
            var apiNullNode = new ApiNullNode(ApiPathMixin.Null);

            return(apiNullNode);
        }