• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# OptArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中OptArgs的典型用法代码示例。如果您正苦于以下问题:C# OptArgs类的具体用法?C# OptArgs怎么用?C# OptArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



OptArgs类属于命名空间,在下文中一共展示了OptArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Query

	    public Query(QueryType type, long token, ReqlAst term, OptArgs globalOptions)
		{
			this.Type = type;
			this.Token = token;
			this.Term = term;
			this.GlobalOptions = globalOptions;
		}
开发者ID:cadabloom,项目名称:RethinkDb.Driver,代码行数:7,代码来源:Query.cs


示例2: Javascript

///<summary>
/// "timeout": "T_NUM"
///</summary>
    public Javascript this[OptArgs optArgs] {
        get
        {
            var newOptArgs = OptArgs.FromMap(this.OptArgs).With(optArgs);
    
            return new Javascript (this.Args, newOptArgs);
        }
    }
开发者ID:fjsnogueira,项目名称:RethinkDb.Driver,代码行数:11,代码来源:Javascript.cs


示例3: Random

///<summary>
/// "float": "T_BOOL"
///</summary>
    public Random this[OptArgs optArgs] {
        get
        {
            var newOptArgs = OptArgs.FromMap(this.OptArgs).With(optArgs);
    
            return new Random (this.Args, newOptArgs);
        }
    }
开发者ID:fjsnogueira,项目名称:RethinkDb.Driver,代码行数:11,代码来源:Random.cs


示例4: Min

///<summary>
/// "index": "T_STR"
///</summary>
    public Min this[OptArgs optArgs] {
        get
        {
            var newOptArgs = OptArgs.FromMap(this.OptArgs).With(optArgs);
    
            return new Min (this.Args, newOptArgs);
        }
    }
开发者ID:fjsnogueira,项目名称:RethinkDb.Driver,代码行数:11,代码来源:Min.cs


示例5: GetAll

///<summary>
/// "index": "T_STR"
///</summary>
    public GetAll this[OptArgs optArgs] {
        get
        {
            var newOptArgs = OptArgs.FromMap(this.OptArgs).With(optArgs);
    
            return new GetAll (this.Args, newOptArgs);
        }
    }
开发者ID:fjsnogueira,项目名称:RethinkDb.Driver,代码行数:11,代码来源:GetAll.cs


示例6: IndexRename

///<summary>
/// "overwrite": "T_BOOL"
///</summary>
    public IndexRename this[OptArgs optArgs] {
        get
        {
            var newOptArgs = OptArgs.FromMap(this.OptArgs).With(optArgs);
    
            return new IndexRename (this.Args, newOptArgs);
        }
    }
开发者ID:fjsnogueira,项目名称:RethinkDb.Driver,代码行数:11,代码来源:IndexRename.cs


示例7: Iso8601

///<summary>
/// "default_timezone": "T_STR"
///</summary>
    public Iso8601 this[OptArgs optArgs] {
        get
        {
            var newOptArgs = OptArgs.FromMap(this.OptArgs).With(optArgs);
    
            return new Iso8601 (this.Args, newOptArgs);
        }
    }
开发者ID:fjsnogueira,项目名称:RethinkDb.Driver,代码行数:11,代码来源:Iso8601.cs


示例8: Slice

///<summary>
/// "left_bound": "E_BOUND",
///  "right_bound": "E_BOUND"
///</summary>
    public Slice this[OptArgs optArgs] {
        get
        {
            var newOptArgs = OptArgs.FromMap(this.OptArgs).With(optArgs);
    
            return new Slice (this.Args, newOptArgs);
        }
    }
开发者ID:fjsnogueira,项目名称:RethinkDb.Driver,代码行数:12,代码来源:Slice.cs


示例9: FromOptArgs

        /// <summary>
        /// Factory method for FormatOptions from OptArgs
        /// </summary>
        public static FormatOptions FromOptArgs(OptArgs args)
        {
            var fmt = new FormatOptions();
            // TODO: find a better way to do this.
            ReqlAst datum;
            var value = args.TryGetValue("time_format", out datum) ? ((Datum)datum).datum : new Datum("native").datum;
            fmt.RawTime = value.Equals("raw");

            value = args.TryGetValue("binary_format", out datum) ? ((Datum)datum).datum : new Datum("native").datum;
            fmt.RawBinary = value.Equals("raw");

            value = args.TryGetValue("group_format", out datum) ? ((Datum)datum).datum : new Datum("native").datum;
            fmt.RawGroups = value.Equals("raw");

            return fmt;
        }
开发者ID:fjsnogueira,项目名称:RethinkDb.Driver,代码行数:19,代码来源:FormatOptions.cs


示例10: Circle

/// <summary>
/// <para>Construct a circular line or polygon. A circle in RethinkDB is a polygon or line <em>approximating</em> a circle of a given radius around a given center, consisting of a specified number of vertices (default 32).</para>
/// </summary>
/// <example><para>Example: Define a circle.</para>
/// <code>r.table('geo').insert({
///     id: 300,
///     name: 'Hayes Valley',
///     neighborhood: r.circle([-122.423246,37.779388], 1000)
/// }).run(conn, callback);
/// </code></example>
        public Circle (Arguments args, OptArgs optargs)
             : this(TermType.CIRCLE, args, optargs) {
        }
开发者ID:cadabloom,项目名称:RethinkDb.Driver,代码行数:13,代码来源:Circle.cs


示例11: Without

/// <summary>
/// <para>The opposite of pluck; takes an object or a sequence of objects, and returns them with
/// the specified paths removed.</para>
/// </summary>
/// <example><para>Example: Since we don't need it for this computation we'll save bandwidth and leave
/// out the list of IronMan's romantic conquests.</para>
/// <code>r.table('marvel').get('IronMan').without('personalVictoriesList').run(conn, callback)
/// </code></example>
        public Without (Arguments args, OptArgs optargs)
             : this(TermType.WITHOUT, args, optargs) {
        }
开发者ID:cadabloom,项目名称:RethinkDb.Driver,代码行数:11,代码来源:Without.cs


示例12: Binary

 protected Binary (TermType termType, Arguments args, OptArgs optargs) : base(termType, args, optargs){
     
 }
开发者ID:gitter-badger,项目名称:RethinkDb.Driver,代码行数:3,代码来源:Binary.cs


示例13: Random

/// <summary>
/// <para>Generate a random number between given (or implied) bounds. <code>random</code> takes zero, one or two arguments.</para>
/// </summary>
/// <example><para>Example: Generate a random number in the range <code>[0,1)</code></para>
/// <code>r.random().run(conn, callback)
/// </code></example>
        public Random (Arguments args, OptArgs optargs)
         : base(TermType.RANDOM, args, optargs) {
        }
开发者ID:gitter-badger,项目名称:RethinkDb.Driver,代码行数:9,代码来源:Random.cs


示例14: TableCreate

/// <summary>
/// <para>Create a table. A RethinkDB table is a collection of JSON documents.</para>
/// </summary>
/// <example><para>Example: Create a table named 'dc_universe' with the default settings.</para>
/// <code>r.db('test').tableCreate('dc_universe').run(conn, callback)
/// </code></example>
        public TableCreate (Arguments args, OptArgs optargs)
         : base(TermType.TABLE_CREATE, args, optargs) {
        }
开发者ID:fiLLLip,项目名称:RethinkDb.Driver,代码行数:9,代码来源:TableCreate.cs


示例15: IndexRename

 protected IndexRename (TermType termType, Arguments args, OptArgs optargs) : base(termType, args, optargs)
 {
 }
开发者ID:cadabloom,项目名称:RethinkDb.Driver,代码行数:3,代码来源:IndexRename.cs


示例16: Pluck

/// <summary>
/// <para>Plucks out one or more attributes from either an object or a sequence of objects
/// (projection).</para>
/// </summary>
/// <example><para>Example: We just need information about IronMan's reactor and not the rest of the
/// document.</para>
/// <code>r.table('marvel').get('IronMan').pluck('reactorState', 'reactorPower').run(conn, callback)
/// </code></example>
        public Pluck (Arguments args, OptArgs optargs)
         : base(TermType.PLUCK, args, optargs) {
        }
开发者ID:fiLLLip,项目名称:RethinkDb.Driver,代码行数:11,代码来源:Pluck.cs


示例17: Sample

/// <summary>
/// <para>Select a given number of elements from a sequence with uniform random distribution. Selection is done without replacement.</para>
/// </summary>
/// <example><para>Example: Select 3 random heroes.</para>
/// <code>r.table('marvel').sample(3).run(conn, callback)
/// </code></example>
        public Sample (Arguments args, OptArgs optargs)
         : base(TermType.SAMPLE, args, optargs) {
        }
开发者ID:gitter-badger,项目名称:RethinkDb.Driver,代码行数:9,代码来源:Sample.cs


示例18: January

 public January (Arguments args, OptArgs optargs)
      : this(TermType.JANUARY, args, optargs) {
 }
开发者ID:cadabloom,项目名称:RethinkDb.Driver,代码行数:3,代码来源:January.cs


示例19: Point

/// <summary>
/// <para>Construct a geometry object of type Point. The point is specified by two floating point numbers, the longitude (-180 to 180) and latitude (-90 to 90) of the point on a perfect sphere. See <a href="/docs/geo-support/">Geospatial support</a> for more information on ReQL's coordinate system.</para>
/// </summary>
/// <example><para>Example: Define a point.</para>
/// <code>r.table('geo').insert({
///     id: 1,
///     name: 'San Francisco',
///     location: r.point(-122.423246,37.779388)
/// }).run(conn, callback);
/// </code></example>
        public Point (Arguments args, OptArgs optargs)
         : base(TermType.POINT, args, optargs) {
        }
开发者ID:fjsnogueira,项目名称:RethinkDb.Driver,代码行数:13,代码来源:Point.cs


示例20: ToIso8601

/// <summary>
/// <para>Convert a time object to a string in ISO 8601 format.</para>
/// </summary>
/// <example><para>Example: Return the current ISO 8601 time.</para>
/// <code>r.now().toISO8601().run(conn, callback)
/// // Result passed to callback
/// "2015-04-20T18:37:52.690+00:00"
/// </code></example>
        public ToIso8601 (Arguments args, OptArgs optargs)
         : base(TermType.TO_ISO8601, args, optargs) {
        }
开发者ID:gitter-badger,项目名称:RethinkDb.Driver,代码行数:11,代码来源:ToIso8601.cs



注:本文中的OptArgs类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Option类代码示例发布时间:2022-05-24
下一篇:
C# Operators类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap