ToSic.SexyContent.ContentGroup.this C# (CSharp) Method

this() public method

public this ( string type ) : List
type string
return List
        public List<IEntity> this[string type]
        {
            get
            {
                switch (type.ToLower())
                {
                    case Constants.ContentKeyLower:
                        return Content;
                    case Constants.PresentationKeyLower:
                        return Presentation;
                    case "listcontent":
                        return ListContent;
                    case "listpresentation":
                        return ListPresentation;
                    default:
                        throw new Exception("Type " + type + " not allowed");
                }
            }
        }