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

C# OperatorType类代码示例

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

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



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

示例1: OperatorView

 public OperatorView(OperatorType type)
     : base(0, 0, 10, 10)
 {
     Type = type;
     LineWidth = 1;
     LineColor = new Color(0, 0, 0);
 }
开发者ID:anton-christensen,项目名称:p2_software,代码行数:7,代码来源:OperatorView.cs


示例2: PriceFilter

 public PriceFilter(StockInfo stockInfo, OperatorType operatorType, PriceFilterRightOperandType rightOperandType,
     double? percent = null, double? constant = null)
     : base(stockInfo, operatorType, percent)
 {
     this.rightOperandType = rightOperandType;
     this.constant = constant;
 }
开发者ID:nbmrao,项目名称:WhiteLight,代码行数:7,代码来源:PriceFilter.cs


示例3: FieldCondition

 /// <summary>
 ///   构造
 /// </summary>
 /// <param name = "fieldName">字段名</param>
 /// <param name = "operator">表达式操作符</param>
 /// <param name = "value">值</param>
 /// <param name = "nextUnionType">与下一个表达式的联合类型<see cref = "WhereUnionType" /></param>
 public FieldCondition(string fieldName, OperatorType @operator, object value, WhereUnionType @nextUnionType)
 {
     FieldName = fieldName;
     Operator = @operator;
     Value = value;
     NextUnionType = nextUnionType;
 }
开发者ID:SaintLoong,项目名称:PD,代码行数:14,代码来源:FieldCondition.cs


示例4: GetExpressionType

        /// <summary>
        /// Returns .NET Expression type based on Operator Type
        /// </summary>
        /// <param name="opType"></param>
        /// <returns></returns>
        public static ExpressionType GetExpressionType(OperatorType opType)
        {
            ExpressionType exprType;
            
            switch ((OperatorType) opType )
            {
                case OperatorType.EqualsTo :  exprType = ExpressionType.Equal;
                    break;
                case OperatorType.NotEqualsTo: exprType = ExpressionType.NotEqual;
                    break;
                case OperatorType.GreaterThan: exprType = ExpressionType.GreaterThan;
                    break;
                case OperatorType.GreaterThanEqualsTo: exprType = ExpressionType.GreaterThanOrEqual;
                    break;
                case OperatorType.LessThan: exprType = ExpressionType.LessThan;
                    break;
                case OperatorType.LessThanEqualsTo: exprType = ExpressionType.LessThanOrEqual;
                    break;
                default: exprType = ExpressionType.IsFalse;
                    break;
            }

            return exprType;
            
        }
开发者ID:inmWill,项目名称:api.core,代码行数:30,代码来源:ExpressionUtils.cs


示例5: OperatorResolveResult

 public OperatorResolveResult(OperatorType @operator, TypeDefinition operatorType, params ResolveResult[] operands)
     : base(operatorType)
 {
     Operator = @operator;
     OperatorType = operatorType;
     Operands = new ReadOnlyCollection<ResolveResult>(operands);
 }
开发者ID:JerreS,项目名称:AbstractCode,代码行数:7,代码来源:OperatorResolveResult.cs


示例6: OperatorToken

        /// <summary>
        /// Initializes a new instance of the <see cref="OperatorToken"/> class.
        /// </summary>
        /// <param name="op">The operator</param>
        public OperatorToken(OperatorType op)
        {
            Operator = op;
            Type = TokenType.Operator;

            switch (Operator)
            {
                case OperatorType.Plus:
                    Priority = 1;
                    break;
                case OperatorType.Minus:
                    Priority = 1;
                    break;
                case OperatorType.Mult:
                    Priority = 2;
                    break;
                case OperatorType.Div:
                    Priority = 2;
                    break;
                case OperatorType.LeftBraket:
                    Priority = 0;
                    break;
                case OperatorType.RightBraket:
                    break;
                default:
                    break;
            }
        }
开发者ID:kkalinowski,项目名称:lib12,代码行数:32,代码来源:OperatorToken.cs


示例7: OpSlot

 public OpSlot(string value, OperatorType type, int position)
     : this()
 {
     this.Value = value;
     this.Type = type;
     this.Position = position;
 }
开发者ID:zhy2002,项目名称:TextTransformer,代码行数:7,代码来源:StackSlot.cs


示例8: CreateOpPostAssign

        public static Operator CreateOpPostAssign(this Node lhs, OperatorType op, Node rhs)
        {
            var e_lhs = lhs as Expression;
            var e_rhs = rhs as Expression;
            if (e_lhs == null || e_rhs == null) return null;

            OperatorType opAssign;
            if (EnumHelper.TryParse(op + "Assign", out opAssign))
            {
                if (op == OperatorType.Add && e_rhs.IsConstOne())
                {
                    return Operator.PostIncrement(e_lhs);
                }
                else if (op == OperatorType.Subtract && e_rhs.IsConstOne())
                {
                    return Operator.PostDecrement(e_lhs);
                }
                else
                {
                    return null;
                }
            }
            else
            {
                return null;
            }
        }
开发者ID:xeno-by,项目名称:truesight-lite,代码行数:27,代码来源:OperatorHelper.cs


示例9: QueryParameter

 /// <summary>
 /// parametru folosit in constructia HqlObject
 /// </summary>
 /// <example>memberName condition: paramName</example>
 /// <param name="paramName">numele parametrului folosit</param>
 /// <param name="paramValue">valoarea parametrului ce va fi inlocuit</param>
 /// <param name="memberName">membrul din query ce va fi comparat</param>
 /// <param name="condition">conditia de comparatie ('=', 'Like', etc)</param>
 public QueryParameter(string paramName, object paramValue, string memberName, OperatorType condition)
 {
     this.paramName = paramName;
     this.paramValue = paramValue;
     this.memberName = memberName;
     this.condition = condition;
 }
开发者ID:adahera222,项目名称:_curat_,代码行数:15,代码来源:QueryParameter.cs


示例10: ApplyCSG

    public void ApplyCSG()
    {
        switch (operation) {
        case OperatorType.Union:
            temp = modeller.getUnion ();
            break;
        case OperatorType.Intersection:
            temp = modeller.getIntersection ();
            break;
        case OperatorType.Difference:
            temp = modeller.getDifference ();
            break;
        }

        // Apply to output game object
        CSGGameObject.GenerateMesh(output, ObjMaterial, temp);
        // Make sure the output object has its 'solid' updated
        output.GetComponent<CSGObject> ().GenerateSolid ();

        // Hide the original objects
        objectA.SetActive (false);
        objectB.SetActive (false);

        lasten = enableOperator;
        lastop = operation;
    }
开发者ID:dlannan,项目名称:csg-toolkit,代码行数:26,代码来源:CSGOperator.cs


示例11: GetCompoundBaseOperator

 /// <summary>
 /// Gets the underlying base operator for the given compound operator.
 /// </summary>
 /// <param name="compoundOperatorType"> The type of compound operator. </param>
 /// <returns> The underlying base operator, or <c>null</c> if the type is not a compound
 /// operator. </returns>
 private static Operator GetCompoundBaseOperator(OperatorType compoundOperatorType)
 {
     switch (compoundOperatorType)
     {
         case OperatorType.CompoundAdd:
             return Operator.Add;
         case OperatorType.CompoundBitwiseAnd:
             return Operator.BitwiseAnd;
         case OperatorType.CompoundBitwiseOr:
             return Operator.BitwiseOr;
         case OperatorType.CompoundBitwiseXor:
             return Operator.BitwiseXor;
         case OperatorType.CompoundDivide:
             return Operator.Divide;
         case OperatorType.CompoundLeftShift:
             return Operator.LeftShift;
         case OperatorType.CompoundModulo:
             return Operator.Modulo;
         case OperatorType.CompoundMultiply:
             return Operator.Multiply;
         case OperatorType.CompoundSignedRightShift:
             return Operator.SignedRightShift;
         case OperatorType.CompoundSubtract:
             return Operator.Subtract;
         case OperatorType.CompoundUnsignedRightShift:
             return Operator.UnsignedRightShift;
     }
     return null;
 }
开发者ID:vipwan,项目名称:CommunityServer,代码行数:35,代码来源:AssignmentExpression.cs


示例12: Condition

 /// <summary>
 /// Creates the condition based on it's region id, field, operator to evaluate to the value and whether it is case sensitive.
 /// </summary>
 /// <param name="regionid">The ID of the region.</param>
 /// <param name="field">The name of the field.</param>
 /// <param name="aValue">The value to match.</param>
 /// <param name="aOperator">The operator for the comparison.</param>
 /// <param name="casesensitive">Whether the value is matched with case sensitivity.</param>
 public Condition(string regionid, string field, string aValue, OperatorType aOperator, bool casesensitive)
 {
     this.RegionID = regionid;
     this.Field = field;
     this.Operator = aOperator;
     this.CaseSensitive = casesensitive;
     this.Value = aValue;
 }
开发者ID:haoasqui,项目名称:ONLYOFFICE-Server,代码行数:16,代码来源:Condition.cs


示例13: Operator

 public Operator(string name, OperatorType type, int precedence, AssociationType association, Func<double, double, double> body)
     : base(name)
 {
     this.Type = type;
     this.Precedence = precedence;
     this.Association = association;
     this.Body = body;
 }
开发者ID:zhy2002,项目名称:TextTransformer,代码行数:8,代码来源:Operator.cs


示例14: Token

 public Token(OperatorType operatorType, int operandsCount, Associativity assoc)
 {
     this.Type = TokenType.Operator;
     this.OperatorType = operatorType;
     this.OperandsCount = operandsCount;
     this.Associativity = assoc;
     this.Precedence = GetPrecedence();
 }
开发者ID:RuzmanovDev,项目名称:TelerikAcademy,代码行数:8,代码来源:Token.cs


示例15: NumberSprite

 // if numDigits = 0, don't care how much space it takes up
 private NumberSprite(ContentManager Content, int number, int numDigits, ColorType color, OperatorType op)
 {
     this.Content = Content;
     this.number = number;
     this.numDigits = numDigits;
     this.color = color;
     this.op = op;
 }
开发者ID:coler706,项目名称:CaveStory,代码行数:9,代码来源:NumberSprite.cs


示例16: Token

        public Token(OperatorType opType, string text)
        {
            _type = TokenType.Operator;
            _opType = opType;
            _text = text;

            Initialize();
        }
开发者ID:cmrazek,项目名称:Calculatorium,代码行数:8,代码来源:Token.cs


示例17: Operator

 public Operator(string s, int p, string a, double v, OperatorType o)
 {
     str = s;
     precedence = p;
     associativity = a;
     value = v;
     opType = o;
 }
开发者ID:b-slavov,项目名称:Telerik-Software-Academy,代码行数:8,代码来源:ArithmeticalExpressions.cs


示例18: SetDefaults

 private void SetDefaults(string className, OperatorType operatorType, DataElement m_dataLeft, bool createNewId)
 {
     m_className = className;
     m_operatorType = operatorType;
     if (null != m_dataLeft)
     {
         m_dataLeft = new DataElement(m_dataLeft, m_dataLeft.ReadOnly, createNewId);
     }
 }
开发者ID:killbug2004,项目名称:WSProf,代码行数:9,代码来源:Condition.cs


示例19: GetAssociativity

 public static Associativity GetAssociativity(OperatorType operatorType) {
     switch (operatorType) {
         case OperatorType.Exponent:
         case OperatorType.LeftAssign:
         case OperatorType.Equals:
             return Associativity.Right;
     }
     return Associativity.Left;
 }
开发者ID:Microsoft,项目名称:RTVS,代码行数:9,代码来源:OperatorAssociativity.cs


示例20: Operator

 public Operator(OperatorType type, string representation, bool unary, bool scalar, bool vector, bool matrix)
     : this(type)
 {
     this.StringRepresentation = representation;
     this.IsUnary = unary;
     this.IsScalarOperator = scalar;
     this.IsVectorOperator = vector;
     this.IsMatrixOperator = matrix;
 }
开发者ID:AlexSabaka,项目名称:symbolicmath,代码行数:9,代码来源:Opeartor.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# Operators类代码示例发布时间:2022-05-24
下一篇:
C# OperatorDeclaration类代码示例发布时间: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