當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。