コード例 #1
0
        public bool RemoveConnectionToBlogger(Blogger blogger1, Blogger blogger2)
        {
            if (this.bloggerConnection[blogger1].Contains(blogger2))
            {
                return(this.bloggerConnection[blogger1].Remove(blogger2));
            }

            return(false);
        }
コード例 #2
0
        public void ConnectBlogger(Blogger blogger1, Blogger blogger2)
        {
            if (this.bloggerConnection[blogger1] == null)
            {
                this.bloggerConnection[blogger1] = new List <Blogger>();
            }

            this.bloggerConnection[blogger1].Add(blogger2);
        }
コード例 #3
0
 public void Update(Blogger blogger)
 {
     this.FirstName = blogger.FirstName;
     this.LastName  = blogger.LastName;
     this.Posts.AddRange(blogger.Posts);
 }