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


C# Find类代码示例

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


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

示例1: Find

 private static bool Find(object[] parameters, Find findObject)
 {
     return
         (bool)
             findObject.GetType()
                 .InvokeMember("Execute", BindingFlags.InvokeMethod, null, findObject, parameters);
 }
开发者ID:innovaciiv,项目名称:Netping_modern,代码行数:7,代码来源:WordRange.cs

示例2: DomFinder

        public DomFinder(string htmlText)
        {
            HtmlTreeBuilder treeBuilder = new HtmlTreeBuilder();
            var domRoot = treeBuilder.BuildDomTree(htmlText, true);

            BindingFlags flags = BindingFlags.NonPublic | BindingFlags.Instance;
            _find = Activator.CreateInstance(typeof(Find), flags, null, new object[] { domRoot }, null) as Find;
        }
开发者ID:xioxu,项目名称:StockDataSpider,代码行数:8,代码来源:DomFinder.cs

示例3: Execute

 private static bool Execute(Find finder, ref int count)
 {
     try
     {
         var result = finder.Execute(Replace: WdReplace.wdReplaceOne);
         if (result) count++;
         return result;
     }
     catch (Exception ex)
     {
         // ¬ыводить пользователю или записывать в лог.
         Trace.WriteLine(ex.Message);
         return true;
     }
 }
开发者ID:Dmdv,项目名称:InwordRemover,代码行数:15,代码来源:FinderExtenstion.cs

示例4: TestDescendantsAndSelfQueryTree

        public void TestDescendantsAndSelfQueryTree() {
            List<StringValue> values = new List<StringValue>() {
                new StringValue() {
                    Data = "0"
                },
                new StringValue() {
                    Data = "1"
                },
                new StringValue() {
                    Data = "2"
                },
                new StringValue() {
                    Data = "3"
                }
            };

            // Create a tree of values. We will want to flatten and find each value after.
            IDatabaseObject query = new Find()
                .Method(
                    values[0]
                )
                .Method(
                    values[1]
                )
                .Method(
                    new Drop()
                    .Field(
                        values[2]
                        .Method(
                            new Save()
                            .Field(
                                values[3]
                            )
                        )
                    )
                );

            List<StringValue> descendants = query.DescendantsAndSelf<StringValue>().ToList();

            Assert.AreEqual(4, descendants.Count());
            
            foreach (StringValue item in descendants) {
                Assert.IsTrue(values.Contains(item));    
            }
        }
开发者ID:EBassie,项目名称:Potato,代码行数:45,代码来源:TestDatabaseObjectUtils.cs

示例5: FeedWidgetFrontend

 public FeedWidgetFrontend(Find find)
     : base(find)
 {
 }
开发者ID:rhullah,项目名称:feather-widgets,代码行数:4,代码来源:FeedWidgetFrontend.cs

示例6: GetCrittersSeeing

 public virtual uint GetCrittersSeeing(IList<Critter> critters, bool look_on_them, Find find_type, IList<Critter> critters_result)
 {
     if (critters == null)
         throw new ArgumentNullException ("critters");
     return Map_GetCrittersSeeing(thisptr, critters, look_on_them, (int)find_type, critters_result);
 }
开发者ID:SnakeSolidNL,项目名称:fosdk,代码行数:6,代码来源:Map.NativeMethods.cs

示例7: GetCrittersHex

 public virtual uint GetCrittersHex(ushort hx, ushort hy, uint radius, Find find_type, IList<Critter> critters)
 {
     return Map_GetCritters(thisptr, hx, hy, radius, (int)find_type, critters);
 }
开发者ID:SnakeSolidNL,项目名称:fosdk,代码行数:4,代码来源:Map.NativeMethods.cs

示例8: FeatherWidgetDesigner

 /// <summary>
 /// Initializes a new instance of the FeatherWidgetDesigner class.
 /// </summary>
 /// <param name="find">Find object for the current window.</param>
 public FeatherWidgetDesigner(Find find)
     : base(find)
 {
 }
开发者ID:jeffpignataro,项目名称:feather,代码行数:8,代码来源:FeatherWidgetDesigner.cs

示例9: FormsMap

 /// <summary>
 /// Initializes a new instance of the <see cref="FormsMap" /> class.
 /// </summary>        
 public FormsMap(Find find)
 {
     this.find = find;
 }
开发者ID:rhullah,项目名称:feather-widgets,代码行数:7,代码来源:FormsMap.cs

示例10: MediaSelectorScreen

 /// <summary>
 /// Initializes a new instance of the <see cref="MediaSelectorScreen" /> class.
 /// </summary>
 /// <param name="find">The find.</param>
 public MediaSelectorScreen(Find find)
     : base(find)
 {
 }
开发者ID:rhullah,项目名称:feather-widgets,代码行数:8,代码来源:MediaSelectorScreen.cs

示例11: AddReportDivFrame

 public AddReportDivFrame(Find find)
     : base(find)
 {
 }
开发者ID:ravi740136,项目名称:telerikprojects,代码行数:4,代码来源:Pages.g.cs

示例12: x1397736662531TextFrame

 public x1397736662531TextFrame(Find find)
     : base(find)
 {
 }
开发者ID:ravi740136,项目名称:telerikprojects,代码行数:4,代码来源:Pages.g.cs

示例13: ContentBlockWidgetScreen

 /// <summary>
 /// Initializes a new instance of the <see cref="ContentBlockWidgetScreen" /> class.
 /// </summary>
 /// <param name="find">The find.</param>
 public ContentBlockWidgetScreen(Find find)
     : base(find)
 {
 }
开发者ID:ParabolaSoftware,项目名称:feather-widgets,代码行数:8,代码来源:ContentBlockWidgetScreen.cs

示例14: ContentBlockLinkSelectorScreen

 /// <summary>
 /// Initializes a new instance of the <see cref="ContentBlockLinkSelectorScreen" /> class.
 /// </summary>
 /// <param name="find">The find.</param>
 public ContentBlockLinkSelectorScreen(Find find)
     : base(find)
 {
 }
开发者ID:ParabolaSoftware,项目名称:feather-widgets,代码行数:8,代码来源:ContentBlockLinkSelectorScreen.cs

示例15: NavigationWidgetEditScreen

 /// <summary>
 /// Initializes a new instance of the <see cref="NavigationWidgetEditScreen" /> class.
 /// </summary>
 /// <param name="find">The find.</param>
 public NavigationWidgetEditScreen(Find find)
     : base(find)
 {
 }
开发者ID:rhullah,项目名称:feather-widgets,代码行数:8,代码来源:NavigationWidgetEditScreen.cs


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