本文整理汇总了C#中Microsoft.CSharp.RuntimeBinder.Semantics.EXPR.asUnaryOperator方法的典型用法代码示例。如果您正苦于以下问题:C# EXPR.asUnaryOperator方法的具体用法?C# EXPR.asUnaryOperator怎么用?C# EXPR.asUnaryOperator使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Microsoft.CSharp.RuntimeBinder.Semantics.EXPR
的用法示例。
在下文中一共展示了EXPR.asUnaryOperator方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Dispatch
//.........这里部分代码省略.........
case ExpressionKind.EK_HOISTEDLOCALEXPR:
return VisitHOISTEDLOCALEXPR(pExpr as EXPRHOISTEDLOCALEXPR);
case ExpressionKind.EK_FIELDINFO:
return VisitFIELDINFO(pExpr as EXPRFIELDINFO);
case ExpressionKind.EK_METHODINFO:
return VisitMETHODINFO(pExpr as EXPRMETHODINFO);
// Binary operators
case ExpressionKind.EK_EQUALS:
return VisitEQUALS(pExpr.asBIN());
case ExpressionKind.EK_COMPARE:
return VisitCOMPARE(pExpr.asBIN());
case ExpressionKind.EK_NE:
return VisitNE(pExpr.asBIN());
case ExpressionKind.EK_LT:
return VisitLT(pExpr.asBIN());
case ExpressionKind.EK_LE:
return VisitLE(pExpr.asBIN());
case ExpressionKind.EK_GT:
return VisitGT(pExpr.asBIN());
case ExpressionKind.EK_GE:
return VisitGE(pExpr.asBIN());
case ExpressionKind.EK_ADD:
return VisitADD(pExpr.asBIN());
case ExpressionKind.EK_SUB:
return VisitSUB(pExpr.asBIN());
case ExpressionKind.EK_MUL:
return VisitMUL(pExpr.asBIN());
case ExpressionKind.EK_DIV:
return VisitDIV(pExpr.asBIN());
case ExpressionKind.EK_MOD:
return VisitMOD(pExpr.asBIN());
case ExpressionKind.EK_BITAND:
return VisitBITAND(pExpr.asBIN());
case ExpressionKind.EK_BITOR:
return VisitBITOR(pExpr.asBIN());
case ExpressionKind.EK_BITXOR:
return VisitBITXOR(pExpr.asBIN());
case ExpressionKind.EK_LSHIFT:
return VisitLSHIFT(pExpr.asBIN());
case ExpressionKind.EK_RSHIFT:
return VisitRSHIFT(pExpr.asBIN());
case ExpressionKind.EK_LOGAND:
return VisitLOGAND(pExpr.asBIN());
case ExpressionKind.EK_LOGOR:
return VisitLOGOR(pExpr.asBIN());
case ExpressionKind.EK_SEQUENCE:
return VisitSEQUENCE(pExpr.asBIN());
case ExpressionKind.EK_SEQREV:
return VisitSEQREV(pExpr.asBIN());
case ExpressionKind.EK_SAVE:
return VisitSAVE(pExpr.asBIN());
case ExpressionKind.EK_SWAP:
return VisitSWAP(pExpr.asBIN());
case ExpressionKind.EK_INDIR:
return VisitINDIR(pExpr.asBIN());
case ExpressionKind.EK_STRINGEQ:
return VisitSTRINGEQ(pExpr.asBIN());
case ExpressionKind.EK_STRINGNE:
return VisitSTRINGNE(pExpr.asBIN());
case ExpressionKind.EK_DELEGATEEQ:
return VisitDELEGATEEQ(pExpr.asBIN());
case ExpressionKind.EK_DELEGATENE:
return VisitDELEGATENE(pExpr.asBIN());
case ExpressionKind.EK_DELEGATEADD:
return VisitDELEGATEADD(pExpr.asBIN());
case ExpressionKind.EK_DELEGATESUB:
return VisitDELEGATESUB(pExpr.asBIN());
case ExpressionKind.EK_EQ:
return VisitEQ(pExpr.asBIN());
// Unary operators
case ExpressionKind.EK_TRUE:
return VisitTRUE(pExpr.asUnaryOperator());
case ExpressionKind.EK_FALSE:
return VisitFALSE(pExpr.asUnaryOperator());
case ExpressionKind.EK_INC:
return VisitINC(pExpr.asUnaryOperator());
case ExpressionKind.EK_DEC:
return VisitDEC(pExpr.asUnaryOperator());
case ExpressionKind.EK_LOGNOT:
return VisitLOGNOT(pExpr.asUnaryOperator());
case ExpressionKind.EK_NEG:
return VisitNEG(pExpr.asUnaryOperator());
case ExpressionKind.EK_UPLUS:
return VisitUPLUS(pExpr.asUnaryOperator());
case ExpressionKind.EK_BITNOT:
return VisitBITNOT(pExpr.asUnaryOperator());
case ExpressionKind.EK_ADDR:
return VisitADDR(pExpr.asUnaryOperator());
case ExpressionKind.EK_DECIMALNEG:
return VisitDECIMALNEG(pExpr.asUnaryOperator());
case ExpressionKind.EK_DECIMALINC:
return VisitDECIMALINC(pExpr.asUnaryOperator());
case ExpressionKind.EK_DECIMALDEC:
return VisitDECIMALDEC(pExpr.asUnaryOperator());
default:
throw Error.InternalCompilerError();
}
}