Ejemplo n.º 1
0
 public bool Equals(TSCSingersSongs a)
 {
     if ((object)a == null)
     {
         return(false);
     }
     return(FieldsEqual(this, a));
 }
Ejemplo n.º 2
0
 public TSCSingersSongs(TSCSingersSongs tscsongs)
     : this()
 {
     SingerKey = new string(tscsongs.SingerKey.ToArray());
     Title     = new string(tscsongs.Title.ToArray());
     Artist    = new string(tscsongs.Artist.ToArray());
     URL       = new string(tscsongs.URL.ToArray());
     Date      = tscsongs.Date;
 }
Ejemplo n.º 3
0
 public static bool FieldsEqual(TSCSingersSongs a, TSCSingersSongs b)
 {
     return(
         (a.SingerKey == b.SingerKey) &&
         (a.Title == b.Title) &&
         (a.Artist == b.Artist) &&
         (a.URL == b.URL) &&
         (true)
         );
 }
Ejemplo n.º 4
0
 public bool KeyEquals(TSCSingersSongs a)
 {
     if ((object)a == null)
     {
         return(false);
     }
     return(
         a.SingerKey.Trim().ToLower() == SingerKey.Trim().ToLower() &&
         a.Title.Trim().ToLower() == Title.Trim().ToLower() &&
         a.Artist.Trim().ToLower() == Artist.Trim().ToLower()
         );
 }
Ejemplo n.º 5
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            TSCSingersSongs a = obj as TSCSingersSongs;

            if (a == null)
            {
                return(false);
            }
            return(FieldsEqual(this, a));
        }