/// <summary> /// Returns an quick Obj. /// </summary> /// <param name="Query"></param> /// <returns></returns> public QueryObject GetObject(Query Query) { using (var Stream = new QueryStream()) { Stream.Push(Query); return(Stream.Pop()); } }
/// <summary> /// Returns an quick stack. /// </summary> /// <param name="Querys"></param> /// <returns></returns> public Stack <QueryObject> GetObjects(params Query[] Querys) { Stack <QueryObject> Stack = new Stack <QueryObject>(); using (var Stream = new QueryStream()) { foreach (var Query in Querys) { Stream.Push(Query); } for (int i = 0; i <= Stream.Querys.Count; i++) { Stack.Push(Stream.Pop()); } } return(Stack); }