本文整理汇总了C#中CodeBinaryOperatorType类的典型用法代码示例。如果您正苦于以下问题:C# CodeBinaryOperatorType类的具体用法?C# CodeBinaryOperatorType怎么用?C# CodeBinaryOperatorType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CodeBinaryOperatorType类属于命名空间,在下文中一共展示了CodeBinaryOperatorType类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: DoBoolean
private void DoBoolean(BooleanExpression expression, CodeBinaryOperatorType operation)
{
var leftArgs = VisitChild(expression.Left, new CodeDomArg() { Scope = _codeStack.Peek().Scope });
var rightArgs = VisitChild(expression.Right, new CodeDomArg() { Scope = _codeStack.Peek().Scope });
Type leftType = Type.GetType(leftArgs.Scope.CodeDomReference.BaseType);
Type rightType = Type.GetType(rightArgs.Scope.CodeDomReference.BaseType);
if (leftType != rightType)
{
if (leftType == typeof(string))
{
var primitive = TablePrimitive.FromType(rightType);
leftArgs.CodeExpression = primitive.ToNative(leftArgs.CodeExpression);
}
else if(rightType == typeof(string))
{
var primitive = TablePrimitive.FromType(leftType);
rightArgs.CodeExpression = primitive.ToNative(rightArgs.CodeExpression);
}
}
if (leftArgs.Tag != null)
_codeStack.Peek().Tag = leftArgs.Tag;
if (rightArgs.Tag != null)
_codeStack.Peek().Tag = rightArgs.Tag;
_codeStack.Peek().CodeExpression = new CodeBinaryOperatorExpression(leftArgs.CodeExpression, operation, rightArgs.CodeExpression);
}
开发者ID:bitsummation,项目名称:pickaxe,代码行数:28,代码来源:Visitor.LessThanExpression.cs
示例2: CodeBinaryOperatorExpression
public CodeBinaryOperatorExpression (CodeExpression left,
CodeBinaryOperatorType op,
CodeExpression right)
{
this.left = left;
this.op = op;
this.right = right;
}
开发者ID:NelsonSantos,项目名称:fyiReporting-Android,代码行数:8,代码来源:CodeBinaryOperatorExpression.cs
示例3: Operator
string Operator(CodeBinaryOperatorType op)
{
switch (op)
{
case CodeBinaryOperatorType.Assign: return new string(new[] { Parser.AssignPre, Parser.Equal });
case CodeBinaryOperatorType.BooleanAnd: return Parser.AndTxt;
case CodeBinaryOperatorType.BooleanOr: return Parser.OrTxt;
default: throw new ArgumentOutOfRangeException("op");
}
}
开发者ID:BillTheBest,项目名称:IronAHK,代码行数:11,代码来源:Operators.cs
示例4: OutputOperator
protected override void OutputOperator(CodeBinaryOperatorType op)
{
switch (op)
{
case CodeBinaryOperatorType.BitwiseAnd:
case CodeBinaryOperatorType.BooleanAnd: Output.Write("and"); break;
case CodeBinaryOperatorType.BitwiseOr:
case CodeBinaryOperatorType.BooleanOr: Output.Write("or"); break;
default: base.OutputOperator(op); break;
}
}
开发者ID:lisiynos,项目名称:pascalabcnet,代码行数:11,代码来源:PABCCodeProvider.cs
示例5: DoBooleanAggregate
private void DoBooleanAggregate(BooleanExpression expression, CodeBinaryOperatorType operation)
{
var leftArgs = VisitChild(expression.Left, new CodeDomArg() { Scope = _codeStack.Peek().Scope });
var rightArgs = VisitChild(expression.Right, new CodeDomArg() { Scope = _codeStack.Peek().Scope });
if (leftArgs.Tag != null)
_codeStack.Peek().Tag = leftArgs.Tag;
if (rightArgs.Tag != null)
_codeStack.Peek().Tag = rightArgs.Tag;
_codeStack.Peek().CodeExpression = new CodeBinaryOperatorExpression(leftArgs.CodeExpression, operation, rightArgs.CodeExpression);
}
开发者ID:bitsummation,项目名称:pickaxe,代码行数:12,代码来源:Visitor.AndExpression.cs
示例6: BinaryOpOperatorExpression
public BinaryOpOperatorExpression(
Expression left,
Expression right,
CodeBinaryOperatorType op
)
{
if (left==null)
throw new ArgumentNullException("left");
if (right==null)
throw new ArgumentNullException("right");
this.left = left;
this.right = right;
this.op = op;
}
开发者ID:hazzik,项目名称:nh-contrib-everything,代码行数:14,代码来源:BinaryOpOperatorExpression.cs
示例7: RuleEvaluationIncompatibleTypesException
protected RuleEvaluationIncompatibleTypesException(SerializationInfo serializeInfo, StreamingContext context) : base(serializeInfo, context)
{
if (serializeInfo == null)
{
throw new ArgumentNullException("serializeInfo");
}
string typeName = serializeInfo.GetString("left");
if (typeName != "null")
{
this.m_leftType = Type.GetType(typeName);
}
this.m_op = (CodeBinaryOperatorType) serializeInfo.GetValue("op", typeof(CodeBinaryOperatorType));
typeName = serializeInfo.GetString("right");
if (typeName != "null")
{
this.m_rightType = Type.GetType(typeName);
}
}
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:18,代码来源:RuleEvaluationIncompatibleTypesException.cs
示例8: GetOperatorString
private string GetOperatorString(CodeBinaryOperatorType operatorType)
{
switch (operatorType)
{
case CodeBinaryOperatorType.Add:
return "+";
case CodeBinaryOperatorType.Subtract:
return "-";
case CodeBinaryOperatorType.Multiply:
return "*";
case CodeBinaryOperatorType.Divide:
return "/";
case CodeBinaryOperatorType.Modulus:
return "%";
case CodeBinaryOperatorType.Assign:
return "=";
case CodeBinaryOperatorType.IdentityInequality:
return "!=";
case CodeBinaryOperatorType.IdentityEquality:
return "===";
case CodeBinaryOperatorType.ValueEquality:
return "==";
case CodeBinaryOperatorType.BitwiseOr:
return "|";
case CodeBinaryOperatorType.BitwiseAnd:
return "&";
case CodeBinaryOperatorType.BooleanOr:
return "||";
case CodeBinaryOperatorType.BooleanAnd:
return "&&";
case CodeBinaryOperatorType.LessThan:
return "<";
case CodeBinaryOperatorType.LessThanOrEqual:
return "<=";
case CodeBinaryOperatorType.GreaterThan:
return ">";
case CodeBinaryOperatorType.GreaterThanOrEqual:
return ">=";
default:
throw new ArgumentOutOfRangeException();
}
}
开发者ID:s2quake,项目名称:TypescriptCodeDom,代码行数:42,代码来源:TypescriptBinaryOperatorExpression.cs
示例9: CodeBinaryOperatorExpression
public CodeBinaryOperatorExpression(CodeExpression left, CodeBinaryOperatorType op, CodeExpression right)
{
}
开发者ID:asvishnyakov,项目名称:CodeContracts,代码行数:3,代码来源:System.CodeDom.CodeBinaryOperatorExpression.cs
示例10: OutputOperator
protected virtual void OutputOperator(CodeBinaryOperatorType op)
{
switch (op)
{
case CodeBinaryOperatorType.Add:
Output.Write('+');
break;
case CodeBinaryOperatorType.Subtract:
Output.Write('-');
break;
case CodeBinaryOperatorType.Multiply:
Output.Write('*');
break;
case CodeBinaryOperatorType.Divide:
Output.Write('/');
break;
case CodeBinaryOperatorType.Modulus:
Output.Write('%');
break;
case CodeBinaryOperatorType.Assign:
Output.Write('=');
break;
case CodeBinaryOperatorType.IdentityInequality:
Output.Write("!=");
break;
case CodeBinaryOperatorType.IdentityEquality:
Output.Write("==");
break;
case CodeBinaryOperatorType.ValueEquality:
Output.Write("==");
break;
case CodeBinaryOperatorType.BitwiseOr:
Output.Write('|');
break;
case CodeBinaryOperatorType.BitwiseAnd:
Output.Write('&');
break;
case CodeBinaryOperatorType.BooleanOr:
Output.Write("||");
break;
case CodeBinaryOperatorType.BooleanAnd:
Output.Write("&&");
break;
case CodeBinaryOperatorType.LessThan:
Output.Write('<');
break;
case CodeBinaryOperatorType.LessThanOrEqual:
Output.Write("<=");
break;
case CodeBinaryOperatorType.GreaterThan:
Output.Write('>');
break;
case CodeBinaryOperatorType.GreaterThanOrEqual:
Output.Write(">=");
break;
}
}
开发者ID:dotnet,项目名称:corefx,代码行数:57,代码来源:CodeGenerator.cs
示例11: MapOperatorToMethod
[SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")] // bogus since the casts are in different case statements
internal static MethodInfo MapOperatorToMethod(
CodeBinaryOperatorType op,
Type lhs,
CodeExpression lhsExpression,
Type rhs,
CodeExpression rhsExpression,
RuleValidation validator,
out ValidationError error)
{
// determine what the method name should be
string methodName;
string message;
OperatorGrouping group;
switch (op)
{
case CodeBinaryOperatorType.ValueEquality:
methodName = "op_Equality";
group = OperatorGrouping.Equality;
break;
case CodeBinaryOperatorType.GreaterThan:
methodName = "op_GreaterThan";
group = OperatorGrouping.Relational;
break;
case CodeBinaryOperatorType.GreaterThanOrEqual:
methodName = "op_GreaterThanOrEqual";
group = OperatorGrouping.Relational;
break;
case CodeBinaryOperatorType.LessThan:
methodName = "op_LessThan";
group = OperatorGrouping.Relational;
break;
case CodeBinaryOperatorType.LessThanOrEqual:
methodName = "op_LessThanOrEqual";
group = OperatorGrouping.Relational;
break;
case CodeBinaryOperatorType.Add:
methodName = "op_Addition";
group = OperatorGrouping.Arithmetic;
break;
case CodeBinaryOperatorType.Subtract:
methodName = "op_Subtraction";
group = OperatorGrouping.Arithmetic;
break;
case CodeBinaryOperatorType.Multiply:
methodName = "op_Multiply";
group = OperatorGrouping.Arithmetic;
break;
case CodeBinaryOperatorType.Divide:
methodName = "op_Division";
group = OperatorGrouping.Arithmetic;
break;
case CodeBinaryOperatorType.Modulus:
methodName = "op_Modulus";
group = OperatorGrouping.Arithmetic;
break;
case CodeBinaryOperatorType.BitwiseAnd:
methodName = "op_BitwiseAnd";
group = OperatorGrouping.Arithmetic;
break;
case CodeBinaryOperatorType.BitwiseOr:
methodName = "op_BitwiseOr";
group = OperatorGrouping.Arithmetic;
break;
default:
Debug.Assert(false, "Operator " + op.ToString() + " not implemented");
message = string.Format(CultureInfo.CurrentCulture, Messages.BinaryOpNotSupported, op.ToString());
error = new ValidationError(message, ErrorNumbers.Error_CodeExpressionNotHandled);
return null;
}
// NOTE: types maybe NullLiteral, which signifies the constant "null"
List<MethodInfo> candidates = new List<MethodInfo>();
bool lhsNullable = ConditionHelper.IsNullableValueType(lhs);
bool rhsNullable = ConditionHelper.IsNullableValueType(rhs);
Type lhsType0 = (lhsNullable) ? Nullable.GetUnderlyingType(lhs) : lhs;
Type rhsType0 = (rhsNullable) ? Nullable.GetUnderlyingType(rhs) : rhs;
// special cases for enums
if (lhsType0.IsEnum)
{
// only 3 cases (U = underlying type of E):
// E = E + U
// U = E - E
// E = E - U
// plus the standard comparisons (E == E, E > E, etc.)
// need to also allow E == 0
Type underlyingType;
switch (op)
{
case CodeBinaryOperatorType.Add:
underlyingType = EnumHelper.GetUnderlyingType(lhsType0);
if ((underlyingType != null) &&
(RuleValidation.TypesAreAssignable(rhsType0, underlyingType, rhsExpression, out error)))
{
error = null;
return new EnumOperationMethodInfo(lhs, op, rhs, false);
}
break;
//.........这里部分代码省略.........
开发者ID:nlh774,项目名称:DotNetReferenceSource,代码行数:101,代码来源:Literal.cs
示例12: OutputOperator
protected override void OutputOperator(CodeBinaryOperatorType op)
{
if (op == CodeBinaryOperatorType.StringConcat)
base.Output.Write("~");
else
base.OutputOperator(op);
}
开发者ID:Orvid,项目名称:Orvid.Assembler,代码行数:7,代码来源:DCodeGenerator.cs
示例13: EnumOpImpl
private static ET EnumOpImpl(CodeBinaryOperatorType opType, ET l, ET[] rights, int index)
{
ET r;
if (index == rights.Length - 1) r = rights[index];
else r = EnumOpImpl(opType, rights[index], rights, index + 1);
return new BuilderBinaryOperator(l, opType, r);
}
开发者ID:pengyancai,项目名称:cs-util,代码行数:7,代码来源:ET.cs
示例14: BinaryOperator
/// <summary>
/// フィールドへの参照を作成します。
/// </summary>
/// <param name="target"></param>
/// <param name="name"></param>
/// <returns></returns>
private static ET BinaryOperator(ET l, CodeBinaryOperatorType op, ET r)
{
return new BuilderBinaryOperator(l, op, r);
}
开发者ID:pengyancai,项目名称:cs-util,代码行数:10,代码来源:ET.cs
示例15: OutputOperator
protected override void OutputOperator(CodeBinaryOperatorType op)
{
switch (op)
{
case CodeBinaryOperatorType.Modulus:
base.Output.Write("Mod");
return;
case CodeBinaryOperatorType.IdentityInequality:
base.Output.Write("<>");
return;
case CodeBinaryOperatorType.IdentityEquality:
base.Output.Write("Is");
return;
case CodeBinaryOperatorType.ValueEquality:
base.Output.Write("=");
return;
case CodeBinaryOperatorType.BitwiseOr:
base.Output.Write("Or");
return;
case CodeBinaryOperatorType.BitwiseAnd:
base.Output.Write("And");
return;
case CodeBinaryOperatorType.BooleanOr:
base.Output.Write("OrElse");
return;
case CodeBinaryOperatorType.BooleanAnd:
base.Output.Write("AndAlso");
return;
}
base.OutputOperator(op);
}
开发者ID:laymain,项目名称:CodeDomUtils,代码行数:38,代码来源:VBCodeGenerator.cs
示例16: EnumOperationMethodInfo
public EnumOperationMethodInfo(Type lhs, CodeBinaryOperatorType operation, Type rhs, bool isZero)
{
// only 5 arithmetic cases (U = underlying type of E):
// E = E + U
// E = U + E
// U = E - E
// E = E - U
// E = U - E
// plus 5 comparison cases
// E == E
// E < E
// E <= E
// E > E
// E >= E
// either E can be nullable
op = operation;
// parameters are easy -- they are the same as the type passed in
expectedParameters = new ParameterInfo[2];
expectedParameters[0] = new SimpleParameterInfo(lhs);
expectedParameters[1] = new SimpleParameterInfo(rhs);
// compute return type (depends on type of operation)
// start by getting the types without Nullable<>
bool lhsNullable = ConditionHelper.IsNullableValueType(lhs);
bool rhsNullable = ConditionHelper.IsNullableValueType(rhs);
lhsBaseType = (lhsNullable) ? Nullable.GetUnderlyingType(lhs) : lhs;
rhsBaseType = (rhsNullable) ? Nullable.GetUnderlyingType(rhs) : rhs;
// determine the underlying types for both sides
if (lhsBaseType.IsEnum)
lhsRootType = EnumHelper.GetUnderlyingType(lhsBaseType);
else
lhsRootType = lhsBaseType;
if (rhsBaseType.IsEnum)
rhsRootType = EnumHelper.GetUnderlyingType(rhsBaseType);
else
rhsRootType = rhsBaseType;
switch (op)
{
case CodeBinaryOperatorType.Add:
// add always produces an enum, except enum + enum
if ((lhsBaseType.IsEnum) && (rhs.IsEnum))
resultBaseType = lhsRootType;
else if (lhsBaseType.IsEnum)
resultBaseType = lhsBaseType;
else
resultBaseType = rhsBaseType;
// if either side is nullable, result is nullable
resultIsNullable = (lhsNullable || rhsNullable);
resultType = (resultIsNullable) ? typeof(Nullable<>).MakeGenericType(resultBaseType) : resultBaseType;
break;
case CodeBinaryOperatorType.Subtract:
// subtract can be an enum or the underlying type
if (rhsBaseType.IsEnum && lhsBaseType.IsEnum)
{
resultRootType = rhsRootType;
resultBaseType = rhsRootType;
}
else if (lhsBaseType.IsEnum)
{
// special case for E - 0
// if 0 is the underlying type, then use E - U
// if not the underlying type, then 0 becomes E, use E - E
resultRootType = lhsRootType;
if (isZero && rhsBaseType != lhsRootType)
resultBaseType = lhsRootType;
else
resultBaseType = lhsBaseType;
}
else // rhsType.IsEnum
{
// special case for 0 - E
// in all cases 0 becomes E, use E - E
resultRootType = rhsRootType;
if (isZero)
resultBaseType = rhsRootType;
else
resultBaseType = rhsBaseType;
}
resultIsNullable = (lhsNullable || rhsNullable);
resultType = (resultIsNullable) ? typeof(Nullable<>).MakeGenericType(resultBaseType) : resultBaseType;
break;
case CodeBinaryOperatorType.ValueEquality:
case CodeBinaryOperatorType.LessThan:
case CodeBinaryOperatorType.LessThanOrEqual:
case CodeBinaryOperatorType.GreaterThan:
case CodeBinaryOperatorType.GreaterThanOrEqual:
resultType = typeof(bool);
break;
}
}
开发者ID:nlh774,项目名称:DotNetReferenceSource,代码行数:94,代码来源:RuleValidation.cs
示例17: CodeBinaryOperatorExpression
/// <devdoc>
/// <para>
/// Initializes a new instance of <see cref='System.CodeDom.CodeBinaryOperatorExpression'/>
/// using the specified
/// parameters.
/// </para>
/// </devdoc>
public CodeBinaryOperatorExpression(CodeExpression left, CodeBinaryOperatorType op, CodeExpression right) {
Right = right;
Operator = op;
Left = left;
}
开发者ID:uQr,项目名称:referencesource,代码行数:12,代码来源:CodeBinaryOperatorExpression.cs
示例18: EvaluateBinaryOperation
private static object EvaluateBinaryOperation(CodeBinaryOperatorExpression binaryExpr, Type lhsType, object lhsValue, CodeBinaryOperatorType operation, Type rhsType, object rhsValue)
{
Literal literal;
Literal literal2;
ArithmeticLiteral literal3;
ArithmeticLiteral literal4;
RuleEvaluationException exception;
switch (operation)
{
case CodeBinaryOperatorType.Add:
literal3 = ArithmeticLiteral.MakeLiteral(lhsType, lhsValue);
if (literal3 == null)
{
break;
}
literal4 = ArithmeticLiteral.MakeLiteral(rhsType, rhsValue);
if (literal4 == null)
{
break;
}
return literal3.Add(literal4);
case CodeBinaryOperatorType.Subtract:
literal3 = ArithmeticLiteral.MakeLiteral(lhsType, lhsValue);
if (literal3 == null)
{
break;
}
literal4 = ArithmeticLiteral.MakeLiteral(rhsType, rhsValue);
if (literal4 == null)
{
break;
}
return literal3.Subtract(literal4);
case CodeBinaryOperatorType.Multiply:
literal3 = ArithmeticLiteral.MakeLiteral(lhsType, lhsValue);
if (literal3 == null)
{
break;
}
literal4 = ArithmeticLiteral.MakeLiteral(rhsType, rhsValue);
if (literal4 == null)
{
break;
}
return literal3.Multiply(literal4);
case CodeBinaryOperatorType.Divide:
literal3 = ArithmeticLiteral.MakeLiteral(lhsType, lhsValue);
if (literal3 == null)
{
break;
}
literal4 = ArithmeticLiteral.MakeLiteral(rhsType, rhsValue);
if (literal4 == null)
{
break;
}
return literal3.Divide(literal4);
case CodeBinaryOperatorType.Modulus:
literal3 = ArithmeticLiteral.MakeLiteral(lhsType, lhsValue);
if (literal3 == null)
{
break;
}
literal4 = ArithmeticLiteral.MakeLiteral(rhsType, rhsValue);
if (literal4 == null)
{
break;
}
return literal3.Modulus(literal4);
case CodeBinaryOperatorType.IdentityInequality:
return (lhsValue != rhsValue);
case CodeBinaryOperatorType.IdentityEquality:
return (lhsValue == rhsValue);
case CodeBinaryOperatorType.ValueEquality:
literal = Literal.MakeLiteral(lhsType, lhsValue);
if (literal == null)
{
break;
}
literal2 = Literal.MakeLiteral(rhsType, rhsValue);
if (literal2 == null)
{
break;
}
return literal.Equal(literal2);
case CodeBinaryOperatorType.BitwiseOr:
literal3 = ArithmeticLiteral.MakeLiteral(lhsType, lhsValue);
if (literal3 == null)
{
break;
}
literal4 = ArithmeticLiteral.MakeLiteral(rhsType, rhsValue);
//.........这里部分代码省略.........
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:101,代码来源:BinaryExpression.cs
示例19: Write
private void Write(CodeBinaryOperatorType e){
string op = "";
switch (e){
case CodeBinaryOperatorType.Add: op = "+"; break;
case CodeBinaryOperatorType.Assign: op = "="; break;
case CodeBinaryOperatorType.BitwiseAnd: op = "&"; break;
case CodeBinaryOperatorType.BitwiseOr: op = "|"; break;
case CodeBinaryOperatorType.BooleanAnd: op = "&&"; break;
case CodeBinaryOperatorType.BooleanOr: op = "||"; break;
case CodeBinaryOperatorType.Divide: op = "/"; break;
case CodeBinaryOperatorType.GreaterThan: op = ">"; break;
case CodeBinaryOperatorType.GreaterThanOrEqual: op = ">="; break;
case CodeBinaryOperatorType.IdentityEquality: op = "=="; break;
case CodeBinaryOperatorType.IdentityInequality: op = "!="; break;
case CodeBinaryOperatorType.LessThan: op = "<"; break;
case CodeBinaryOperatorType.LessThanOrEqual: op = "<="; break;
case CodeBinaryOperatorType.Modulus: op = "%"; break;
case CodeBinaryOperatorType.Multiply: op = "*"; break;
case CodeBinaryOperatorType.Subtract: op = "-"; break;
case CodeBinaryOperatorType.ValueEquality: op = "=="; break;
}
this.writer.Write(op);
}
开发者ID:hesam,项目名称:SketchSharp,代码行数:23,代码来源:Compiler.cs
示例20: OutputOperator
private void OutputOperator(CodeBinaryOperatorType op)
{
switch (op)
{
case CodeBinaryOperatorType.Add:
this.Output.Write("+");
return;
case CodeBinaryOperatorType.Subtract:
this.Output.Write("-");
return;
case CodeBinaryOperatorType.Multiply:
this.Output.Write("*");
return;
case CodeBinaryOperatorType.Divide:
this.Output.Write("/");
return;
case CodeBinaryOperatorType.Modulus:
this.Output.Write("%");
return;
case CodeBinaryOperatorType.Assign:
this.Output.Write("=");
return;
case CodeBinaryOperatorType.IdentityInequality:
this.Output.Write("!=");
return;
case CodeBinaryOperatorType.IdentityEquality:
this.Output.Write("==");
return;
case CodeBinaryOperatorType.ValueEquality:
this.Output.Write("==");
return;
case CodeBinaryOperatorType.BitwiseOr:
this.Output.Write("|");
return;
case CodeBinaryOperatorType.BitwiseAnd:
this.Output.Write("&");
return;
case CodeBinaryOperatorType.BooleanOr:
this.Output.Write("||");
return;
case CodeBinaryOperatorType.BooleanAnd:
this.Output.Write("&&");
return;
case CodeBinaryOperatorType.LessThan:
this.Output.Write("<");
return;
case CodeBinaryOperatorType.LessThanOrEqual:
this.Output.Write("<=");
return;
case CodeBinaryOperatorType.GreaterThan:
this.Output.Write(">");
return;
case CodeBinaryOperatorType.GreaterThanOrEqual:
this.Output.Write(">=");
return;
}
}
开发者ID:sillsdev,项目名称:FwSupportTools,代码行数:73,代码来源:CSharpCodeGenerator.cs
注:本文中的CodeBinaryOperatorType类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论