示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ODataApiExplorerModel"/> class.
        /// </summary>
        /// <param name="other">The other <see cref="ODataApiExplorerModel">model</see> to copy from.</param>
        public ODataApiExplorerModel(ODataApiExplorerModel other) : base(other)
        {
            Arg.NotNull(other, nameof(other));

            IsVisible      = null;
            IsODataVisible = other.IsODataVisible;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="ODataApiExplorerModel"/> class.
        /// </summary>
        /// <param name="other">The other <see cref="ODataApiExplorerModel">model</see> to copy from.</param>
        public ODataApiExplorerModel(ODataApiExplorerModel other) : base(other)
        {
            if (other == null)
            {
                throw new ArgumentNullException(nameof(other));
            }

            IsVisible      = null;
            IsODataVisible = other.IsODataVisible;
        }