コード例 #1
0
ファイル: AnyListenTrack.cs プロジェクト: overXsky/AMP
 public override bool Equals(PlayableBase other)
 {
     if (other == null)
     {
         return(false);
     }
     if (GetType() != other.GetType())
     {
         return(false);
     }
     return((SongResult.Type == ((AnyListenTrack)other).SongResult.Type) &&
            (SongResult.SongId == ((AnyListenTrack)other).SongResult.SongId));
 }
コード例 #2
0
        public override bool Equals(PlayableBase other)
        {
            if (other == null)
            {
                return(false);
            }
            if (!other.TrackExists || !TrackExists)
            {
                return(false);
            }
            if (GetType() != other.GetType())
            {
                return(false);
            }

            var otherAsLocalTrack = (LocalTrack)other;

            if (UniqueId == otherAsLocalTrack.UniqueId)
            {
                return(true);
            }
            return(false);
        }
コード例 #3
0
ファイル: CustomStream.cs プロジェクト: overXsky/AMP
 public override bool Equals(PlayableBase other)
 {
     return(other == this);
 }