Bickle.ExampleContainer.GetBefores C# (CSharp) Method

GetBefores() protected method

protected GetBefores ( ) : IEnumerable
return IEnumerable
        protected IEnumerable<Action> GetBefores()
        {
            if (Parent == null)
                return new[] { Before };

            return new[] { Before }.Union(Parent.GetBefores());
        }