コード例 #1
0
 public override int GetHashCode()
 {
     return(Id
            ^ Name.GetHashCode()
            ^ BirthDate.GetHashCode()
            ^ PhoneNumber.GetHashCode()
            ^ Email.GetHashCode()
            ^ GitHubLink.GetHashCode()
            ^ Notes.GetHashCode());
 }
コード例 #2
0
        void ReleaseDesignerOutlets()
        {
            if (GitHubLink != null)
            {
                GitHubLink.Dispose();
                GitHubLink = null;
            }

            if (TwitterLink != null)
            {
                TwitterLink.Dispose();
                TwitterLink = null;
            }
        }