public NavigationTreeNode( [NotNull] string name, [NotNull] INavigationItemHeader header, [NotNull] string navigationPageName, IEnumerable <INavigationTreeNode> childrens, int orderIndex) { if (name == null) { throw new ArgumentNullException("name"); } if (header == null) { throw new ArgumentNullException("header"); } if (navigationPageName == null) { throw new ArgumentNullException("navigationPageName"); } _name = name; _header = header; _orderIndex = orderIndex; _navigationPageName = navigationPageName; _childrens = (childrens ?? EmptyArray <INavigationTreeNode> .Value).ToArray().AsReadOnly(); }
protected NavigationPageBase([NotNull] string name, [NotNull] INavigationItemHeader header) { if (name == null) throw new ArgumentNullException("name"); if (header == null) throw new ArgumentNullException("header"); _name = name; _header = header; }
protected NavigationPageBase([NotNull] string name, [NotNull] INavigationItemHeader header) { if (name == null) { throw new ArgumentNullException("name"); } if (header == null) { throw new ArgumentNullException("header"); } _name = name; _header = header; }
public NavigationTreeNode( [NotNull] string name, [NotNull] INavigationItemHeader header, [NotNull] string navigationPageName, IEnumerable<INavigationTreeNode> childrens, int orderIndex) { if (name == null) throw new ArgumentNullException("name"); if (header == null) throw new ArgumentNullException("header"); if (navigationPageName == null) throw new ArgumentNullException("navigationPageName"); _name = name; _header = header; _orderIndex = orderIndex; _navigationPageName = navigationPageName; _childrens = (childrens ?? EmptyArray<INavigationTreeNode>.Value).ToArray().AsReadOnly(); }