示例#1
0
        /// <summary>
        /// Public constructor with required data
        /// </summary>
        /// <param name="_uparentrequired0"></param>
        /// <param name="_uparentrequired1"></param>
        /// <param name="_uparentrequired2"></param>
        public UChild(UParentRequired _uparentrequired0, UParentRequired _uparentrequired1, UParentRequired _uparentrequired2)
        {
            if (_uparentrequired0 == null)
            {
                throw new ArgumentNullException(nameof(_uparentrequired0));
            }
            _uparentrequired0.UChildRequired = this;

            if (_uparentrequired1 == null)
            {
                throw new ArgumentNullException(nameof(_uparentrequired1));
            }
            _uparentrequired1.UChildCollection.Add(this);

            if (_uparentrequired2 == null)
            {
                throw new ArgumentNullException(nameof(_uparentrequired2));
            }
            _uparentrequired2.UChildOptional = this;

            Init();
        }
示例#2
0
 /// <summary>
 /// Static create function (for use in LINQ queries, etc.)
 /// </summary>
 /// <param name="_uparentrequired0"></param>
 /// <param name="_uparentrequired1"></param>
 /// <param name="_uparentrequired2"></param>
 public static UChild Create(UParentRequired _uparentrequired0, UParentRequired _uparentrequired1, UParentRequired _uparentrequired2)
 {
     return(new UChild(_uparentrequired0, _uparentrequired1, _uparentrequired2));
 }