本文整理汇总了C#中MatchType类的典型用法代码示例。如果您正苦于以下问题:C# MatchType类的具体用法?C# MatchType怎么用?C# MatchType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MatchType类属于命名空间,在下文中一共展示了MatchType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ExtensionCacheValue
internal ExtensionCacheValue(object[] value, Type type, MatchType matchType)
{
_value = value;
_type = type;
_matchType = matchType;
_filterOnly = true;
}
示例2: LiveMatch
public LiveMatch()
{
matchType = MatchType.General;
InitializeComponent();
HelpComboDisplay(cmbTeamA);
HelpComboDisplay(cmbTeamB);
}
示例3: ExtensionCacheValue
internal ExtensionCacheValue(object[] value, Type type, MatchType matchType)
{
[email protected] = value;
this.type = type;
this.matchType = matchType;
this.filterOnly = true;
}
示例4: MessageReceiverRegistration
public MessageReceiverRegistration(DeviceAddress source, DeviceAddress destination, MessageReceiver callback, MatchType match)
{
Source = source;
Destination = destination;
Callback = callback;
Match = match;
}
示例5: SearchResult
public SearchResult(MovieId id, string title, int year, MediaType type, MatchType match)
{
this.id = id;
this.title = title;
this.year = year;
this.type = type;
this.match = match;
}
示例6: ReturnStruct
public ReturnStruct(int start, int end, MatchType type)
: this()
{
if (start < 0 || end < start)
throw new ArgumentException("Invalid index parameters");
Start = start;
End = end;
Type = type;
}
示例7: GetValue
private static object GetValue(MatchType key, string value)
{
switch (key)
{
case MatchType.Number:
return Double.Parse(value);
default:
return value;
}
}
示例8: CheckBufferState
public CheckBufferState(byte[] buffer, DiskFile diskFile, string fileName, int blockSize, Dictionary<uint, FileVerificationEntry> hashFull, MatchType matchType, int offset, int overlap)
{
this.buffer = buffer;
this.diskFile = diskFile;
this.fileName = fileName;
this.blockSize = blockSize;
this.hashFull = hashFull;
this.matchType = matchType;
this.offset = offset;
this.overlap = overlap;
}
示例9: ActionLink
public static MvcHtmlString ActionLink(this HtmlHelper htmlHelper, string linkText, string actionName, string controllerName, string roles, MatchType RoleMatchType, object route)
{
bool valid = UserFunctions.IsUserInRole(roles, RoleMatchType);
var link = new MvcHtmlString(string.Empty);
if (valid)
{
link = htmlHelper.ActionLink(linkText, actionName, controllerName, route,null);
}
return link;
}
示例10: BadLogonCount
public void BadLogonCount(int badLogonCount, MatchType match)
{
if (this.badLogonCountVal != null)
{
this.badLogonCountVal.Match = match;
this.badLogonCountVal.Value = badLogonCount;
}
else
{
this.badLogonCountVal = new QbeMatchType((object)badLogonCount, match);
}
this.badLogonCountChanged = true;
}
示例11: AccountLockoutTime
public void AccountLockoutTime(DateTime lockoutTime, MatchType match)
{
if (this.lockoutTimeVal != null)
{
this.lockoutTimeVal.Match = match;
this.lockoutTimeVal.Value = lockoutTime;
}
else
{
this.lockoutTimeVal = new QbeMatchType((object)lockoutTime, match);
}
this.lockoutTimeChanged = true;
}
示例12: AccountExpirationDate
public void AccountExpirationDate(DateTime expirationTime, MatchType match)
{
if (this.expirationTimeVal != null)
{
this.expirationTimeVal.Match = match;
this.expirationTimeVal.Value = expirationTime;
}
else
{
this.expirationTimeVal = new QbeMatchType((object)expirationTime, match);
}
this.expirationTimeChanged = true;
}
示例13: AssertFailureHandling
private void AssertFailureHandling(TestRunFailureSpecialHandling specialHandling,
string expectedMessage,
MatchType expectedMessageType,
string expectedStackTrace,
MatchType expectedStackTraceType,
int expectedretryCount)
{
Assert.That(specialHandling.FailureMessage, Is.EqualTo(expectedMessage));
Assert.That(specialHandling.FailureStackTrace, Is.EqualTo(expectedStackTrace));
Assert.That(specialHandling.FailureMessageType, Is.EqualTo(expectedMessageType));
Assert.That(specialHandling.FailureStackTraceType, Is.EqualTo(expectedStackTraceType));
Assert.That(specialHandling.RetryCount, Is.EqualTo(expectedretryCount));
}
示例14: FindNewsArticlesContaining
public static int[] FindNewsArticlesContaining(NewsItem[] newsItems, string[] terms, MatchType searchOperator)
{
List<int> foundItemsIndexes = new List<int>();
for(int i = 0; i < newsItems.Length; i++)
{
if (newsItems[i].Search(terms, searchOperator))
{
foundItemsIndexes.Add(i);
}
}
return foundItemsIndexes.ToArray();
}
示例15: Search
public bool Search(string[] terms, MatchType matchType)
{
int count = 0;
foreach (string term in terms)
{
if (this.rawItem.Contains(term))
{
count++;
}
}
if (matchType.Equals(MatchType.And) && count.Equals(terms.Length)) return true;
if (matchType.Equals(MatchType.Or) && ((count > 0) && (count <= terms.Length))) return true;
return false;
}