示例#1
0
 public TSCSingers(TSCSingers tscsingers)
     : this()
 {
     SingerKey      = new string(tscsingers.SingerKey.ToArray());
     SingerName     = new string(tscsingers.SingerName.ToArray());
     SingerEmail    = new string(tscsingers.SingerEmail.ToArray());
     SingerActivity = tscsingers.SingerActivity;
 }
示例#2
0
 public bool Equals(TSCSingers a)
 {
     if ((object)a == null)
     {
         return(false);
     }
     return(FieldsEqual(this, a));
 }
示例#3
0
 public bool KeyEquals(TSCSingers a)
 {
     if ((object)a == null)
     {
         return(false);
     }
     return(
         (a.SingerKey.Trim().ToLower() == SingerKey.Trim().ToLower())
         );
 }
示例#4
0
 private static bool FieldsEqual(TSCSingers a, TSCSingers b)
 {
     return(
         (a.SingerKey == b.SingerKey) &&
         (a.SingerName == b.SingerName) &&
         (a.SingerEmail == b.SingerEmail) &&
         (a.SingerActivity == b.SingerActivity) &&
         (true)
         );
 }
示例#5
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            TSCSingers a = obj as TSCSingers;

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