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


C# ConditionType类代码示例

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


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

示例1: DoLoopStatement

 public DoLoopStatement(Expression condition, Statement embeddedStatement, ConditionType conditionType, ConditionPosition conditionPosition)
 {
     this.condition = condition;
     this.embeddedStatement = embeddedStatement;
     this.conditionType = conditionType;
     this.conditionPosition = conditionPosition;
 }
开发者ID:slluis,项目名称:monodevelop-prehistoric,代码行数:7,代码来源:DoLoopStatement.cs

示例2: IntBooleanCondition

 public IntBooleanCondition(string field, int condition, ConditionType conditionType = ConditionType.OR, bool negate = false)
 {
     Field = field;
     Condition = condition.ToString();
     ConditionType = conditionType;
     Negate = negate;
 }
开发者ID:xpekatt,项目名称:Amazing-Cloud-Search,代码行数:7,代码来源:IntBooleanCondition.cs

示例3: Result

 public Result(ConditionType Type, string Variable, string Op, int Value)
 {
     this.Type = Type;
     this.Variable = Variable;
     this.Op = Op;
     this.Value = Value;
 }
开发者ID:SnakeSolidNL,项目名称:tools,代码行数:7,代码来源:Condition.cs

示例4: ConditionTreeLeaf

 public ConditionTreeLeaf(ConditionType type, string name, ConditionComparison comparison, PropertyUnion compareTo)
 {
     Type = type;
     VariableName = name;
     Comparison = comparison;
     CompareTo = compareTo;
 }
开发者ID:csuffyy,项目名称:circuitdiagram,代码行数:7,代码来源:ConditionTreeLeaf.cs

示例5: GroupedCondition

        public GroupedCondition(IBooleanCondition conditionA, ConditionType conditionType, IBooleanCondition conditionB)
        {
            condition = conditionType;

            this.conditionA = conditionA;
            this.conditionB = conditionB;
        }
开发者ID:xpekatt,项目名称:Amazing-Cloud-Search,代码行数:7,代码来源:GroupedCondition.cs

示例6: Build

        public ConditionModel Build(string expression, Type dataContextType, ConditionType conditionType)
        {
            if (String.IsNullOrWhiteSpace(expression))
            {
                return new ConditionModel();
            }

            _stack = new Stack<object>();
            _parameters = RuleParameterProviders.Providers.SelectMany(x => x.GetParameters(dataContextType).ToList())
                                                      .DistinctBy(x => x.Name)
                                                      .ToList();

            var exp = Expression.Parse(expression);
            Visit(exp);

            var top = _stack.Peek();
            if (top is ComparisonModel)
            {
                BuildComparisonGroup();
            }

            BuildConditionModel(conditionType);

            var model = (ConditionModel)_stack.Pop();
            model.Expression = expression;

            return model;
        }
开发者ID:Kooboo,项目名称:Ecommerce,代码行数:28,代码来源:ConditionModelBuilder.cs

示例7: Or

        public Filters Or(string name, ConditionType conditionType, object value)
        {
            this.filters.Add(
                new Filter { Name = name, Value = value, FilterType = FilterType.Or, ConditionType = conditionType });

            return this;
        }
开发者ID:arul141890,项目名称:ScriptGenerator,代码行数:7,代码来源:Filters.cs

示例8: Condition

 /// <summary>
 /// Initializes a new instance of the <see cref="Condition"/> class.
 /// </summary>
 /// <param name="label">The label.</param>
 public Condition(string label)
 {
     _label = label;
     _subconditions = new List<LeftHandSideCondition>();
     _conditionType = ConditionType.Positive;
     _fields = new Term[3];
     _evaluator = new Equals();
 }
开发者ID:KristenWegner,项目名称:expergent,代码行数:12,代码来源:Condition.cs

示例9: JumpCall

 /// <summary>
 /// Creates a new Jump or Call instruction
 /// </summary>
 /// <param name="isCall">true if this is a call instruction</param>
 /// <param name="dest">destination address</param>
 /// <param name="condition">the condition to execute this instruction on</param>
 public JumpCall(bool isCall,
                 short dest,
                 ConditionType condition = ConditionType.Unconditional)
     : base(condition)
 {
     this.IsCall = isCall;
     this.Destination = dest;
 }
开发者ID:jcowgill,项目名称:PicoBlazeSim,代码行数:14,代码来源:JumpCall.cs

示例10: IcmpConstInstruction

 public IcmpConstInstruction(ConditionType cond, VirtualRegister rd, VirtualRegister r1, int immed)
     : base("icmp")
 {
     this.cond = cond;
     this.r1 = r1;
     this.immed = immed;
     this.rd = rd;
 }
开发者ID:AustinWise,项目名称:CSC431,代码行数:8,代码来源:IcmpInstruction.cs

示例11: AddCondition

 // <summary>
 /// 添加一个筛选条件
 /// </summary>
 public void AddCondition(Conditionner condition, ConditionType AndOr) {
     if (gszConditionner != "") {
         gszConditionner += " " + (AndOr == ConditionType.And ? "and" : "or");
         gszConditionner += " (" + condition.ToString() + ")";
     } else {
         gszConditionner = "(" + condition.ToString() + ")";
     }
 }
开发者ID:inmount,项目名称:dyk.dll,代码行数:11,代码来源:Conditionner.cs

示例12: CastCondition

        public CastCondition(int conditionGroup, ConditionType type, double[] values, ConditionValueName[] valuenames)
        {
            this.ConditionGroup = conditionGroup;
            this.Type = type;
            this.Values = values;
            this.ValueNames = valuenames;

        }
开发者ID:Defmaster,项目名称:D3Helper.Public,代码行数:8,代码来源:Presets.cs

示例13: IcmpInstruction

 public IcmpInstruction(ConditionType cond, VirtualRegister rd, VirtualRegister r1, VirtualRegister r2, string type)
     : base("icmp")
 {
     this.cond = cond;
     this.r1 = r1;
     this.r2 = r2;
     this.rd = rd;
     this.type = type;
 }
开发者ID:AustinWise,项目名称:CSC431,代码行数:9,代码来源:IcmpInstruction.cs

示例14: NetObject

 public NetObject(string ip, string dns, string name, BaseType type, int position, ConditionType state, int threadId)
 {
     _ip = ip;
         _dns = dns;
         _name = name;
         _type = type;
         _position = position;
         _state = state;
         _threadId = threadId;
 }
开发者ID:Shahdee,项目名称:serverAdmin,代码行数:10,代码来源:NetObject.cs

示例15: ArgumentExcludeCondition

		public ArgumentExcludeCondition(List<Token> toks)
		{
			Token tok = toks[0];
			if (tok.Type != TokenType.Identifier)
				throw new Exception("Unknown token for argument to exclude condition!");
			ArgToExclude = Utils.SingleDigitParse(tok.Value[3]) - 1;
			if (ArgToExclude != 0)
				throw new Exception("Cannot exclude anything but the first argument!");
			tok = toks[1];
			int nextTokIdx = 2;
			switch (tok.Type)
			{
				case TokenType.LThan:
					if (toks[2].Type == TokenType.Equal)
					{
						nextTokIdx++;
						Condition = ConditionType.LessOrEqual;
					}
					else
					{
						Condition = ConditionType.Less;
					}
					break;
				case TokenType.GThan:
					if (toks[2].Type == TokenType.Equal)
					{
						nextTokIdx++;
						Condition = ConditionType.GreaterOrEqual;
					}
					else
					{
						Condition = ConditionType.Greater;
					}
					break;
				case TokenType.Equal:
					if (toks[2].Type != TokenType.Equal)
						throw new Exception("Unknown condition for an argument exclude!");
					nextTokIdx++;
					Condition = ConditionType.Equal;
					break;
				case TokenType.Exclaim:
					if (toks[2].Type != TokenType.Equal)
						throw new Exception("Unknown condition for an argument exclude!");
					nextTokIdx++;
					Condition = ConditionType.NotEqual;
					break;

				default:
					throw new Exception("Unknown condition for an argument exclude!");
			}
			tok = toks[nextTokIdx];
			if (tok.Type != TokenType.Number)
				throw new Exception("The value being compared to in an argument exclude condition must be a decimal number!");
			ConditionArg = tok.NumberValue.Value;
		}
开发者ID:Orvid,项目名称:Orvid.Assembler,代码行数:55,代码来源:ArgumentExcludeCondition.cs


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