当前位置: 首页>>代码示例>>C#>>正文


C# PhpStack.PeekReferenceOptional方法代码示例

本文整理汇总了C#中PHP.Core.PhpStack.PeekReferenceOptional方法的典型用法代码示例。如果您正苦于以下问题:C# PhpStack.PeekReferenceOptional方法的具体用法?C# PhpStack.PeekReferenceOptional怎么用?C# PhpStack.PeekReferenceOptional使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PHP.Core.PhpStack的用法示例。


在下文中一共展示了PhpStack.PeekReferenceOptional方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: __construct

 public static object __construct(object instance, PhpStack stack)
 {
     object argDSN = stack.PeekValue(1);
     object argUsername = stack.PeekReferenceOptional(2);
     object argPassword = stack.PeekReferenceOptional(3);
     object argDriverOptions = stack.PeekReferenceOptional(4);
     stack.RemoveFrame();
     return ((PDO)instance).__construct(stack.Context, argDSN, argUsername, argPassword, argDriverOptions);
 }
开发者ID:jafin,项目名称:Phalanger,代码行数:9,代码来源:PDO.cs

示例2: __construct

        public static object __construct(object instance, PhpStack stack)
        {
            object argFileName = stack.PeekValue(1);
            object argMode = stack.PeekValueOptional(2);
            PhpReference error = stack.PeekReferenceOptional(3);
            stack.RemoveFrame();

            string filename = PHP.Core.Convert.ObjectToString(argFileName);
            int mode = PHP.Core.Convert.ObjectToInteger(argMode);
            return ((SQLiteDatabase)instance).__construct(stack.Context, filename, mode, error);
        }
开发者ID:dw4dev,项目名称:Phalanger,代码行数:11,代码来源:SQLiteDatabase.cs

示例3: fetchAll

        public static object fetchAll(object instance, PhpStack stack)
        {
            object fetch_style = stack.PeekReferenceOptional(1);
            object fetch_argument = stack.PeekReferenceOptional(2);
            object ctor_args = stack.PeekReferenceOptional(3);
            stack.RemoveFrame();

            return ((PDOStatement)instance).fetchAll(stack.Context, fetch_style, fetch_argument, ctor_args);
        }
开发者ID:hansdude,项目名称:Phalanger,代码行数:9,代码来源:PDOStatement.cs

示例4: query

 public static object query(object instance, PhpStack stack)
 {
     object query = stack.PeekValue(1);
     object resultType = stack.PeekValueOptional(2);
     PhpReference error = stack.PeekReferenceOptional(3);
     stack.RemoveFrame();
     return ((SQLiteDatabase)instance).query(stack.Context, query, resultType, error);
 }
开发者ID:dw4dev,项目名称:Phalanger,代码行数:8,代码来源:SQLiteDatabase.cs

示例5: exec

 public static object exec(object instance, PhpStack stack)
 {
     object query = stack.PeekValue(1);
     object error = stack.PeekReferenceOptional(2);
     stack.RemoveFrame();
     return ((SQLiteDatabase)instance).exec(stack.Context, query, error);
 }
开发者ID:dw4dev,项目名称:Phalanger,代码行数:7,代码来源:SQLiteDatabase.cs


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