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

C# OpType类代码示例

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

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



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

示例1: IsConstantBaseOp

 // <summary>
 // Is the given op one of the ConstantBaseOp-s
 // </summary>
 internal static bool IsConstantBaseOp(OpType opType)
 {
     return opType == OpType.Constant ||
            opType == OpType.InternalConstant ||
            opType == OpType.Null ||
            opType == OpType.NullSentinel;
 }
开发者ID:Cireson,项目名称:EntityFramework6,代码行数:10,代码来源:PlanCompilerUtil.cs


示例2: Operation

 public Operation(OpType type, int row, int column, QuadValue direction = QuadValue.Left | QuadValue.Right | QuadValue.Up | QuadValue.Down)
 {
     _type = type;
     _row = row;
     _column = column;
     _direction = direction;
 }
开发者ID:SylarLi,项目名称:Puzzle1,代码行数:7,代码来源:Operation.cs


示例3: Assert

 protected static void Assert(bool condition, string format, OpType op, object arg1, object arg2)
 {
     if (!condition)
     {
         Debug.Assert(false, String.Format(CultureInfo.InvariantCulture, format, Dump.AutoString.ToString(op), arg1, arg2));
     }
 }
开发者ID:jimmy00784,项目名称:entityframework,代码行数:7,代码来源:BasicValidator.cs


示例4: OnCreate

        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate (bundle);

            rssUtil.bgndWorker.RunWorkerCompleted += (sender, e) =>
            {

                //todo clear list
                listViewRSS.Adapter = new ArrayAdapter<string> (this, Android.Resource.Layout.SimpleListItem1,
                                                                rssUtil.RssFeeds.Select(x=>x.Title).ToArray());

                SetProgressBarIndeterminateVisibility (false);
                opType = OpType.Feeds;
            };

            RequestWindowFeature (WindowFeatures.ActionBar);
            RequestWindowFeature (WindowFeatures.Progress);
            RequestWindowFeature (WindowFeatures.IndeterminateProgress);

            SetProgressBarIndeterminate (true);
            SetProgressBarIndeterminateVisibility (true);

            ActionBar.NavigationMode = ActionBarNavigationMode.Tabs;
            ActionBar.Title = "Eyegregator";
            ActionBar.SetDisplayShowTitleEnabled (true);

            CreateDB ();

            SetContentView (Resource.Layout.Main);
            listViewRSS = (ListView)FindViewById (Resource.Id.listView);
            listViewRSS.Clickable = true;
        }
开发者ID:razvanmitea,项目名称:Eyegregator,代码行数:32,代码来源:MainActivity.cs


示例5: MathNode

		// should form a binary tree, can't have more than 2 children
		public MathNode(UberNode parent, string scriptInput, OpType opType)
			: base(parent, scriptInput)
		{
			Children.Add(null);
			Children.Add(null);
			OpTypeVal = opType;
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:8,代码来源:MathNode.cs


示例6: SetOp

 internal SetOp(OpType opType, VarVec outputs, VarMap left, VarMap right)
     : this(opType)
 {
     m_varMap = new VarMap[2];
     m_varMap[0] = left;
     m_varMap[1] = right;
     m_outputVars = outputs;
 }
开发者ID:WangWilliam,项目名称:EntityFramework5,代码行数:8,代码来源:SetOp.cs


示例7: Rule

        /// <summary>
        /// Basic constructor
        /// </summary>
        /// <param name="opType">The OpType we're interested in processing</param>
        /// <param name="nodeProcessDelegate">The callback to invoke</param>
        protected Rule(OpType opType, ProcessNodeDelegate nodeProcessDelegate)
        {
            Debug.Assert(nodeProcessDelegate != null, "null process delegate");
            Debug.Assert(opType != OpType.NotValid, "bad OpType");
            Debug.Assert(opType != OpType.Leaf, "bad OpType - Leaf");

            m_opType = opType;
            m_nodeDelegate = nodeProcessDelegate;
        }
开发者ID:jimmy00784,项目名称:entityframework,代码行数:14,代码来源:Rule.cs


示例8: NewEntityBaseOp

        private readonly List<RelProperty> m_relProperties; // list of relationship properties for which we have values

        #endregion

        #region constructors

        internal NewEntityBaseOp(OpType opType, TypeUsage type, bool scoped, EntitySet entitySet, List<RelProperty> relProperties)
            : base(opType, type)
        {
            Debug.Assert(scoped || entitySet == null, "entitySet cann't be set of constructor isn't scoped");
            DebugCheck.NotNull(relProperties);
            m_scoped = scoped;
            m_entitySet = entitySet;
            m_relProperties = relProperties;
        }
开发者ID:christiandpena,项目名称:entityframework,代码行数:15,代码来源:NewEntityBaseOp.cs


示例9: NestBaseOp

 internal NestBaseOp(
     OpType opType, List<SortKey> prefixSortKeys,
     VarVec outputVars,
     List<CollectionInfo> collectionInfoList)
     : base(opType)
 {
     m_outputs = outputVars;
     m_collectionInfoList = collectionInfoList;
     m_prefixSortKeys = prefixSortKeys;
 }
开发者ID:jimmy00784,项目名称:entityframework,代码行数:10,代码来源:NestBaseOp.cs


示例10: ScreenEdit

        public ScreenEdit(t_Screen t_Scr, OpType moptype)
        {
            InitializeComponent();

            Scree = t_Scr;
            if (moptype == OpType.Alert)
            {
                txtName.Text = t_Scr.ScreenName;
                txtImage.Text = t_Scr.ImageURL;
            }
            optype = moptype;
            BindSite();
        }
开发者ID:Jitlee,项目名称:MonitorProject,代码行数:13,代码来源:ScreenEdit.xaml.cs


示例11: TP_ButtonSetPropertyEdit

        public TP_ButtonSetPropertyEdit(TP_ButtonSetProperty _BaseWindow,OpType mopType)
        {
            InitializeComponent();
            _OpType = mopType;

            _ContentX = _BaseWindow;

            InitProperty();
            if (mopType == OpType.Alert)
            {
                OpItem = (ScreenAddShowName)_ContentX.gvList.SelectedItem;
                txtShowName.Text = OpItem.ScreenShowName;
                cbScreenList.SelectedItem = OpItem.Screen;
            }
        }
开发者ID:Jitlee,项目名称:WPFMonitor,代码行数:15,代码来源:TP_ButtonSetPropertyEdit.xaml.cs


示例12: Clip

        public List<Polygon> Clip(Polygon p1, Polygon p2, OpType operation)
        {
            List<IntPoint> pol1 = new List<IntPoint>();
            List<IntPoint> pol2 = new List<IntPoint>();
            List<List<IntPoint>> res = new List<List<IntPoint>>();

            foreach (Point point in p1.Points) {
                pol1.Add(new IntPoint(point.X, point.Y));
            }
            foreach (Point point in p2.Points) {
                pol2.Add(new IntPoint(point.X, point.Y));
            }

            Clipper clipper = new Clipper();
            clipper.AddPolygon(pol1, PolyType.ptSubject);
            clipper.AddPolygon(pol2, PolyType.ptClip);

            switch (operation) {
                case OpType.Difference:
                    clipper.Execute(ClipType.ctDifference, res);
                    break;
                case OpType.Intersection:
                    clipper.Execute(ClipType.ctIntersection, res);
                    break;
                case OpType.Union:
                    clipper.Execute(ClipType.ctUnion, res);
                    break;
                case OpType.Xor:
                    clipper.Execute(ClipType.ctXor, res);
                    break;
            }
            List<Polygon> ret = new List<Polygon>();

            foreach (var poly in res) {
                Polygon pol = new Polygon() { Points = new List<Point>() };

                foreach (var poi in poly) {
                    pol.Points.Add(new Point() { X = poi.X, Y = poi.Y });
                }

                ret.Add(pol);
            }
            return ret;
        }
开发者ID:colin-dumitru,项目名称:Collaborative-Whiteboard,代码行数:44,代码来源:PolygonClipper.cs


示例13: ScreenViewModel

 //ScreenEdit _mw)
 public ScreenViewModel(t_Screen _mScreen, OpType mType, ScreenEdit mWindow)
 {
     OperationType = mType;
     if (mType == OpType.Add)
     {
         _ParentScreen = _mScreen;
         ScreenObj = new t_Screen();
         _ScreenObj = new t_Screen();
     }
     else
     {
         ScreenObj = new t_Screen();
         ScreenObj.Clone(_mScreen);
         _ScreenObj = _mScreen;
     }
     _Window = mWindow;
     //UpdatetxtSource(_Window.gridContent);
     Init();
 }
开发者ID:Jitlee,项目名称:WPFMonitor,代码行数:20,代码来源:ScreenViewModel.cs


示例14: OpToken

 public bool leftasso = true; //is the operator left associative? most are, so save some lines w/ default value
 public OpToken(OpType type)
 {
     this.type = type;
     switch (type)
     {
         case OpType.ADD:
             precedence = 0;                    
             break;
         case OpType.SUB:
             precedence = 0;                    
             break;
         case OpType.MUL:
             precedence = 1;                    
             break;
         case OpType.DIV:
             precedence = 1;                    
             break;
         case OpType.MOD:
             precedence = 1;                    
             break;
         case OpType.LP:
             precedence = -999999; //these will be handled specially
             break;
         case OpType.RP:
             precedence = -999999; //these will be handled specially
             break;
         case OpType.EXP:
             precedence = 2;
             leftasso = false;
             break;
         case OpType.LSHIFT:
             precedence = -1;
             length = 2;
             break;
         case OpType.RSHIFT:
             precedence = -1;
             length = 2;
             break;
     }
 }
开发者ID:Zhangerr,项目名称:az-sirius,代码行数:41,代码来源:Program.cs


示例15: AssertOpType

 protected static void AssertOpType(Op op, OpType opType)
 {
     Assert(op.OpType == opType, "OpType Mismatch: Expected {0}; found {1}", op.OpType, Dump.AutoString.ToString(opType));
 }
开发者ID:jimmy00784,项目名称:entityframework,代码行数:4,代码来源:BasicValidator.cs


示例16: SortBaseOp

 // Pattern constructor
 internal SortBaseOp(OpType opType)
     : base(opType)
 {
     Debug.Assert(opType == OpType.Sort || opType == OpType.ConstrainedSort, "SortBaseOp OpType must be Sort or ConstrainedSort");
 }
开发者ID:christiandpena,项目名称:entityframework,代码行数:6,代码来源:SortBaseOp.cs


示例17: CheckEntry

 private static bool CheckEntry(OpType opType, PlanCompilerPhase phase)
 {
     var hash = ComputeHash(opType, phase);
     return s_ValidOpTypes.IsSet(hash);
 }
开发者ID:WangWilliam,项目名称:EntityFramework5,代码行数:5,代码来源:Validator.cs


示例18: AddAllEntry

 private static void AddAllEntry(BitVec opVector, OpType opType)
 {
     foreach (var phase in _planCompilerPhases)
     {
         AddSingleEntry(opVector, opType, phase);
     }
 }
开发者ID:WangWilliam,项目名称:EntityFramework5,代码行数:7,代码来源:Validator.cs


示例19: AddEntry

 private static void AddEntry(BitVec opVector, OpType opType, params PlanCompilerPhase[] phases)
 {
     foreach (var phase in phases)
     {
         AddSingleEntry(opVector, opType, phase);
     }
 }
开发者ID:WangWilliam,项目名称:EntityFramework5,代码行数:7,代码来源:Validator.cs


示例20: ReadOut

 public void ReadOut(BinaryReader reader)
 {
     _type = (OpType)reader.ReadInt32();
 }
开发者ID:SylarLi,项目名称:Puzzle2,代码行数:4,代码来源:Operation.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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