コード例 #1
0
ファイル: GroupUserInfo.cs プロジェクト: chcg/snip2codeNET
        /// <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(GroupUserInfo objToCopy)
        {
            if (objToCopy == null)
            {
                return(false);
            }

            //save the values of the properties with private setters:
            GroupID = objToCopy.GroupID;
            UserID  = objToCopy.UserID;
            IsAdmin = objToCopy.IsAdmin;
            Status  = objToCopy.Status;

            return(true);
        }
コード例 #2
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(GroupUserInfo objToCopy)
        {
            if (objToCopy == null)
                return false;

            //save the values of the properties with private setters:
            GroupID = objToCopy.GroupID;
            UserID = objToCopy.UserID;
            IsAdmin = objToCopy.IsAdmin;
            Status = objToCopy.Status;

            return true;
        }