コード例 #1
0
ファイル: Oppilas.cs プロジェクト: LasseMattila/Csharp
 public bool Equals(Oppilas Other)
 {
     if (Other == null)
     {
         return(false);
     }
     return(this.OppilasId.Equals(Other.OppilasId));
 }
コード例 #2
0
ファイル: Oppilas.cs プロジェクト: LasseMattila/Csharp
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            Oppilas objOppilas = obj as Oppilas;

            if (objOppilas == null)
            {
                return(false);
            }
            else
            {
                return(Equals(objOppilas));
            }
        }