itable.cs

来自「Perst开源实时数据库」· CS 代码 · 共 38 行

CS
38
字号
namespace Perst
{
    using System;
#if USE_GENERICS
    using System.Collections.Generic;
#endif
    using System.Collections;

    /// <summary> Interface of selectable collection.
    /// Selectable collections allows to selct its memebers using JSQL query
    /// </summary>
#if USE_GENERICS
    public interface ITable<T> : ICollection<T>,IEnumerable
    {
        new IEnumerator<T> GetEnumerator();

        /// <summary> Select members of the collection using search predicate
        /// </summary>
        /// <param name="predicate">JSQL condition
        /// </param>
        /// <returns> iterator through members of the collection matching search condition
        /// </returns>
        IEnumerable<T> Select(string predicate);
#else
    public interface ITable : ICollection
    {
        /// <summary> Select members of the collection using search predicate
        /// </summary>
        /// <param name="cls">class of index members
        /// </param>
        /// <param name="predicate">JSQL condition
        /// </param>
        /// <returns> iterator through members of the collection matching search condition
        /// </returns>
        IEnumerable Select(Type cls, string predicate);
#endif
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?