コード例 #1
0
ファイル: Taxon.cs プロジェクト: Ali-Doustkani/CactusGuru
        public static Taxon UnknownSpeciesOf(Genus genus)
        {
            var ret = new Taxon();

            ret.Genus   = genus;
            ret.Species = "spec.";
            return(ret);
        }
コード例 #2
0
ファイル: Genus.cs プロジェクト: Ali-Doustkani/CactusGuru
 public static void SetGenus(ref Genus field, Genus value)
 {
     if (value == null)
     {
         field = Empty;
     }
     else
     {
         field = value;
     }
 }
コード例 #3
0
ファイル: Genus.cs プロジェクト: Ali-Doustkani/CactusGuru
 public virtual bool Equals(Genus other)
 {
     if (other == null)
     {
         return(false);
     }
     if (other is NullGenera)
     {
         return(false);
     }
     return(other.Id == Id);
 }
コード例 #4
0
ファイル: Genus.cs プロジェクト: Ali-Doustkani/CactusGuru
 public override bool Equals(Genus other)
 {
     return(other is NullGenera);
 }