コード例 #1
0
 public void AssertLink(Link link)
 {
     throw new NotImplementedException();
 }
コード例 #2
0
ファイル: Link.cs プロジェクト: donners77/DukeSharp
        public bool Overrides(Link other)
        {
            if (other.Status == LinkStatus.Asserted && Status != LinkStatus.Asserted)
                return false;
            if (Status == LinkStatus.Asserted && other.Status != LinkStatus.Asserted)
                return true;

            // the two links are from equivalent sources of information, so we
            // believe the most recent

            return (Timestamp > other.Timestamp);
        }