Пример #1
0
        /// <summary>Creates an API collection node of API nodes.</summary>
        /// <param name="apiPathMixin">Represents the path relationship from the API collection node to parent API node.</param>
        /// <param name="apiNodes">Represents the collection of API nodes owned by the API collection node.</param>
        public static ApiCollectionNode Create(ApiPathMixin apiPathMixin, params ApiNode[] apiNodes)
        {
            Contract.Requires(apiPathMixin != null);

            var apiCollectionNode = new ApiCollectionNode(apiPathMixin, apiNodes.AsEnumerable());

            return(apiCollectionNode);
        }
Пример #2
0
        // PUBLIC METHODS ///////////////////////////////////////////////////
        #region Factory Methods
        /// <summary>Creates an API collection node of API nodes.</summary>
        /// <param name="apiNodes">Represents the collection of API nodes owned by the API collection node.</param>
        public static ApiCollectionNode Create(params ApiNode[] apiNodes)
        {
            var apiCollectionNode = new ApiCollectionNode(ApiPathMixin.Null, apiNodes.AsEnumerable());

            return(apiCollectionNode);
        }