Exemple #1
0
        public MemberBase GetMemberBase()
        {
            MemberBase res = new MemberBase();

            res.MemberId             = MemberId;
            res.ClassId              = ClassId;
            res.MemberType           = MemberType;
            res.MemberName           = MemberName;
            res.Declaration          = Declaration;
            res.Documentation        = Documentation;
            res.Description          = Description;
            res.AppearedInVersion    = AppearedInVersion;
            res.DeprecatedInVersion  = DeprecatedInVersion;
            res.DisappearedInVersion = DisappearedInVersion;
            res.IsDeprecated         = IsDeprecated;
            res.DeprecationMessage   = DeprecationMessage;
            res.DocumentationId      = DocumentationId;
            res.PendingDescription   = PendingDescription;
            res.FullName             = FullName;
            res.CreatedByUserID      = CreatedByUserID;
            res.CreatedOnDate        = CreatedOnDate;
            res.LastModifiedByUserID = LastModifiedByUserID;
            res.LastModifiedOnDate   = LastModifiedOnDate;
            return(res);
        }
Exemple #2
0
        public void ReadMemberBase(MemberBase member)
        {
            if (member.MemberId > -1)
            {
                MemberId = member.MemberId;
            }

            if (member.ClassId > -1)
            {
                ClassId = member.ClassId;
            }

            if (member.MemberType > -1)
            {
                MemberType = member.MemberType;
            }

            if (!String.IsNullOrEmpty(member.MemberName))
            {
                MemberName = member.MemberName;
            }

            if (!String.IsNullOrEmpty(member.Declaration))
            {
                Declaration = member.Declaration;
            }

            if (!String.IsNullOrEmpty(member.Documentation))
            {
                Documentation = member.Documentation;
            }

            if (!String.IsNullOrEmpty(member.Description))
            {
                Description = member.Description;
            }

            if (!String.IsNullOrEmpty(member.AppearedInVersion))
            {
                AppearedInVersion = member.AppearedInVersion;
            }

            if (!String.IsNullOrEmpty(member.DeprecatedInVersion))
            {
                DeprecatedInVersion = member.DeprecatedInVersion;
            }

            if (!String.IsNullOrEmpty(member.DisappearedInVersion))
            {
                DisappearedInVersion = member.DisappearedInVersion;
            }

            IsDeprecated = member.IsDeprecated;

            if (!String.IsNullOrEmpty(member.DeprecationMessage))
            {
                DeprecationMessage = member.DeprecationMessage;
            }

            if (member.DocumentationId > -1)
            {
                DocumentationId = member.DocumentationId;
            }

            if (!String.IsNullOrEmpty(member.PendingDescription))
            {
                PendingDescription = member.PendingDescription;
            }

            if (!String.IsNullOrEmpty(member.FullName))
            {
                FullName = member.FullName;
            }
        }