/// <summary> /// Public constructor with required data /// </summary> /// <param name="_bparentrequired"></param> /// <param name="_bparentrequired_1"></param> /// <param name="_bparentrequired_2"></param> public BChild(BParentRequired _bparentrequired, BParentRequired _bparentrequired_1, BParentRequired _bparentrequired_2) { if (_bparentrequired == null) { throw new ArgumentNullException(nameof(_bparentrequired)); } BParentRequired = _bparentrequired; if (_bparentrequired_1 == null) { throw new ArgumentNullException(nameof(_bparentrequired_1)); } BParentRequired_1 = _bparentrequired_1; if (_bparentrequired_2 == null) { throw new ArgumentNullException(nameof(_bparentrequired_2)); } BParentRequired_2 = _bparentrequired_2; BParentCollection = new ObservableCollection <BParentCollection>(); BParentCollection_1 = new ObservableCollection <BParentCollection>(); BParentCollection_2 = new ObservableCollection <BParentCollection>(); Init(); }
/// <summary> /// Static create function (for use in LINQ queries, etc.) /// </summary> /// <param name="_bparentrequired"></param> /// <param name="_bparentrequired_1"></param> /// <param name="_bparentrequired_2"></param> public static BChild Create(BParentRequired _bparentrequired, BParentRequired _bparentrequired_1, BParentRequired _bparentrequired_2) { return(new BChild(_bparentrequired, _bparentrequired_1, _bparentrequired_2)); }