/// <summary> /// Tests whether this level includes the specified level. /// </summary> /// <remarks> /// Levels can be thought of as nested sets, where each level includes all the levels below it. /// This method determines whether the specified level at the same level, or below, as this instance. /// </remarks> /// <param name="level"></param> /// <returns></returns> public bool Includes(WorklistItemFieldLevel level) { return(_index >= level._index); }
internal EntityRefField(WorklistItemFieldLevel level) : base(level) { }
/// <summary> /// Constructor. /// </summary> public WorklistItemField(WorklistItemFieldLevel level) { _level = level; }
internal EntityRefField(WorklistItemFieldLevel level) :base(level) { }
/// <summary> /// Tests whether this level includes the specified level. /// </summary> /// <remarks> /// Levels can be thought of as nested sets, where each level includes all the levels below it. /// This method determines whether the specified level at the same level, or below, as this instance. /// </remarks> /// <param name="level"></param> /// <returns></returns> public bool Includes(WorklistItemFieldLevel level) { return _index >= level._index; }
/// <summary> /// Gets a new projection that represents the specified projection filtered to the specified level. /// </summary> /// <param name="projection"></param> /// <param name="level"></param> /// <returns></returns> private static WorklistItemProjection FilterProjection(WorklistItemProjection projection, WorklistItemFieldLevel level) { return(projection.Filter(f => level.Includes(f.Level))); }