예제 #1
0
        private IEnumerable <Characteristic> GetCharacteristicsToApply(JobMode other)
        {
            var result = other.GetCharacteristicsToApply();

            if (GetType() != other.GetType() && !IsPropertyBag)
            {
                result = result.Intersect(this.GetAllCharacteristics());
            }

            return(result);
        }
 public static IReadOnlyList <Characteristic> GetAllCharacteristics(this JobMode obj) =>
 GetAllCharacteristics(obj.GetType());