/// <summary> /// Public constructor with required data /// </summary> /// <param name="_uchildrequired"></param> public UParentCollection(UChild _uchildrequired) { if (_uchildrequired == null) { throw new ArgumentNullException(nameof(_uchildrequired)); } UChildRequired = _uchildrequired; Init(); }
/// <summary> /// Public constructor with required data /// </summary> /// <param name="_uchildrequired"></param> public UParentOptional(UChild _uchildrequired) { if (_uchildrequired == null) { throw new ArgumentNullException(nameof(_uchildrequired)); } UChildRequired = _uchildrequired; UChildCollection = new HashSet <UChild>(); Init(); }
/// <summary> /// Static create function (for use in LINQ queries, etc.) /// </summary> /// <param name="_uchildrequired"></param> public static UParentOptional Create(UChild _uchildrequired) { return(new UParentOptional(_uchildrequired)); }
/// <summary> /// Static create function (for use in LINQ queries, etc.) /// </summary> /// <param name="_uchildrequired"></param> public static UParentRequired Create(UChild _uchildrequired) { return(new UParentRequired(_uchildrequired)); }
/// <summary> /// Static create function (for use in LINQ queries, etc.) /// </summary> /// <param name="_uchildrequired"></param> public static UParentCollection Create(UChild _uchildrequired) { return(new UParentCollection(_uchildrequired)); }