CSMSL.Proteomics.ModificationSiteExtensions.ContainsSite C# (CSharp) 메소드

ContainsSite() 공개 정적인 메소드

public static ContainsSite ( this sites, ModificationSites otherSites ) : bool
sites this
otherSites ModificationSites
리턴 bool
        public static bool ContainsSite(this ModificationSites sites, ModificationSites otherSites)
        {
            // By convention, if the other site is 'Any', they are always equal
            if (otherSites == ModificationSites.Any)
                return true;

            if (otherSites == ModificationSites.None)
                return sites == ModificationSites.None;

            return sites == otherSites;
        }
ModificationSiteExtensions