Exemple #1
0
        public bool Contains(SchedulingScope scope)
        {
            if (scope.Parts.Length > Parts.Length)
            {
                return(false);
            }

            for (var i = 0; i < scope.Parts.Length; i++)
            {
                if (!StringComparer.Ordinal.Equals(Parts[i], scope.Parts[i]))
                {
                    return(false);
                }
            }

            return(true);
        }
Exemple #2
0
 protected bool Equals(SchedulingScope other)
 {
     return(StringComparer.Ordinal.Equals(_stringValue, other._stringValue));
 }