本文整理汇总了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);
}
示例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;
}
示例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;
}
}
示例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));
}
}
示例5: FeedWidgetFrontend
public FeedWidgetFrontend(Find find)
: base(find)
{
}
示例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);
}
示例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);
}
示例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)
{
}
示例9: FormsMap
/// <summary>
/// Initializes a new instance of the <see cref="FormsMap" /> class.
/// </summary>
public FormsMap(Find find)
{
this.find = find;
}
示例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)
{
}
示例11: AddReportDivFrame
public AddReportDivFrame(Find find)
: base(find)
{
}
示例12: x1397736662531TextFrame
public x1397736662531TextFrame(Find find)
: base(find)
{
}
示例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)
{
}
示例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)
{
}
示例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)
{
}