/// <summary>
        /// This is the init/copy constructor for this class.
        /// It should be used by the children classes in the constructor in order to correctly fill the properties of the object.
        /// </summary>
        /// <param name="objToCopy"></param>
        public SnippetBCKCollection(SnippetBCKCollection objToCopy)
        {
            if (objToCopy == null)
                return;

            Init(objToCopy.Snippets, objToCopy.UserID);
        }
示例#2
0
        /// <summary>
        /// This is the init/copy constructor for this class.
        /// It should be used by the children classes in the constructor in order to correctly fill the properties of the object.
        /// </summary>
        /// <param name="objToCopy"></param>
        public SnippetBCKCollection(SnippetBCKCollection objToCopy)
        {
            if (objToCopy == null)
            {
                return;
            }

            Init(objToCopy.Snippets, objToCopy.UserID);
        }
示例#3
0
        /// <summary>
        /// This is the init/copy method for this class.
        /// It should be used by the children classes in the constructor in order to correctly fill the properties of the object.
        /// </summary>
        /// <param name="objToCopy"></param>
        protected bool Init(SnippetBCKCollection objToCopy)
        {
            if (objToCopy == null)
            {
                return(false);
            }

            //save the values of the properties with private setters:
            Snippets = objToCopy.Snippets;
            UserID   = objToCopy.UserID;

            return(true);
        }
        /// <summary>
        /// This is the init/copy method for this class.
        /// It should be used by the children classes in the constructor in order to correctly fill the properties of the object.
        /// </summary>
        /// <param name="objToCopy"></param>
        protected bool Init(SnippetBCKCollection objToCopy)
        {
            if (objToCopy == null)
                return false;

            //save the values of the properties with private setters:
            Snippets = objToCopy.Snippets;
            UserID = objToCopy.UserID;

            return true;
        }