本文整理汇总了C#中MatchType类的典型用法代码示例。如果您正苦于以下问题:C# MatchType类的具体用法?C# MatchType怎么用?C# MatchType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MatchType类属于命名空间,在下文中一共展示了MatchType类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: ExtensionCacheValue
internal ExtensionCacheValue(object[] value, Type type, MatchType matchType)
{
_value = value;
_type = type;
_matchType = matchType;
_filterOnly = true;
}
开发者ID:chcosta,项目名称:corefx,代码行数:7,代码来源:ExtensionCache.cs
示例2: LiveMatch
public LiveMatch()
{
matchType = MatchType.General;
InitializeComponent();
HelpComboDisplay(cmbTeamA);
HelpComboDisplay(cmbTeamB);
}
开发者ID:bdr27,项目名称:cp3046-3047Project,代码行数:7,代码来源:LiveMatch.xaml.cs
示例3: ExtensionCacheValue
internal ExtensionCacheValue(object[] value, Type type, MatchType matchType)
{
[email protected] = value;
this.type = type;
this.matchType = matchType;
this.filterOnly = true;
}
开发者ID:nickchal,项目名称:pash,代码行数:7,代码来源:ExtensionCacheValue.cs
示例4: MessageReceiverRegistration
public MessageReceiverRegistration(DeviceAddress source, DeviceAddress destination, MessageReceiver callback, MatchType match)
{
Source = source;
Destination = destination;
Callback = callback;
Match = match;
}
开发者ID:toxsedyshev,项目名称:imBMW,代码行数:7,代码来源:ManagerTools.cs
示例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;
}
开发者ID:Tonaplo,项目名称:DeadDog.Movies,代码行数:8,代码来源:SearchResult.cs
示例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;
}
开发者ID:Yndal,项目名称:BDSA-Assignments,代码行数:9,代码来源:ReturnStruct.cs
示例7: GetValue
private static object GetValue(MatchType key, string value)
{
switch (key)
{
case MatchType.Number:
return Double.Parse(value);
default:
return value;
}
}
开发者ID:rlperez,项目名称:SymbolicDifferentiation,代码行数:10,代码来源:Tokenizer.cs
示例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;
}
开发者ID:jlacube,项目名称:Par2NET,代码行数:11,代码来源:CheckBufferState.cs
示例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;
}
开发者ID:aracen74,项目名称:Cerritosoft.Pdf.Test,代码行数:11,代码来源:HtmlHelperExtensions.cs
示例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;
}
开发者ID:nickchal,项目名称:pash,代码行数:13,代码来源:AdvancedFilters.cs
示例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;
}
开发者ID:nickchal,项目名称:pash,代码行数:13,代码来源:AdvancedFilters.cs
示例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;
}
开发者ID:nickchal,项目名称:pash,代码行数:13,代码来源:AdvancedFilters.cs
示例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));
}
开发者ID:ayezutov,项目名称:NDistribUnit,代码行数:13,代码来源:TestRunParametersXmlReaderTests.cs
示例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();
}
开发者ID:bjackson1,项目名称:techtest1,代码行数:14,代码来源:NewsItem.cs
示例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;
}
开发者ID:bjackson1,项目名称:techtest1,代码行数:16,代码来源:NewsItem.cs
示例16: Match
public Match(string seed, IEnumerable<string> accountIds, int lobby, MatchType matchType, LogOnService logOnService)
{
_lobby = lobby;
_matchType = matchType;
_logOnService = logOnService;
_shuffler = new WallGenerator(seed);
_firstOyaIndex = _shuffler.GetWall(0).First().Id % 4;
var playerIndex = 0;
foreach (var player in accountIds)
{
_players.Add(player, new PlayerStatus(playerIndex));
playerIndex += 1;
}
_stateMachine = new StateMachine(new PlayersConnectingState(this));
_stateMachine.Finished += OnFinished;
}
开发者ID:spinesheath,项目名称:TenView,代码行数:16,代码来源:Match.cs
示例17: Compare
protected bool Compare(MatchType matchType, string matchString, string name)
{
switch (matchType)
{
case MatchType.Any: return true;
case MatchType.Contains: return name.Contains(matchString);
case MatchType.StartsWith: return name.Contains(matchString);
case MatchType.Exact: return String.Compare(name, matchString) == 0;
case MatchType.Except: return String.Compare(name, matchString) != 0;
case MatchType.NotContains: return !name.Contains(matchString);
case MatchType.NotStartsWith: return !name.Contains(matchString);
case MatchType.Exclude: return !matchString.Contains(name);
default: return false;
}
}
开发者ID:jeffreye,项目名称:MOSA-Project,代码行数:17,代码来源:ConfigurableTraceFilter.cs
示例18: EnterQueue
public void EnterQueue(string accountId, int lobby, MatchType matchType)
{
var nextFour = new List<string>();
lock (_queue)
{
_queue.Add(accountId);
if (_queue.Count == 4)
{
nextFour.AddRange(_queue);
_queue.Clear();
}
}
if (nextFour.Count == 4)
{
CreateNewMatch(nextFour, lobby, matchType);
}
}
开发者ID:spinesheath,项目名称:TenView,代码行数:17,代码来源:MatchServer.cs
示例19: FilteredAssert
public FilteredAssert(string messageOrRegex, int bugNumber, MatchType matchType, HandlingOption assertHandlingOption, params string[] stackFrames)
{
if (matchType == MatchType.Exact)
{
Message = messageOrRegex;
MessageRegex = null;
}
else
{
Message = null;
MessageRegex = new Regex(messageOrRegex, AssertMessageRegexOptions);
}
StackFrames = stackFrames;
BugNumber = bugNumber;
Handler = assertHandlingOption;
}
开发者ID:Corillian,项目名称:corefx,代码行数:18,代码来源:FilteredDefaultTraceListener.cs
示例20: AccountExpirationDate
public void AccountExpirationDate(DateTime expirationTime, MatchType match)
{
if (expirationTime == null)
{
_expirationTimeChanged = false;
_expirationTimeVal = null;
}
else
{
if (null == _expirationTimeVal)
_expirationTimeVal = new QbeMatchType(expirationTime, match);
else
{
_expirationTimeVal.Match = match;
_expirationTimeVal.Value = expirationTime;
}
_expirationTimeChanged = true;
}
}
开发者ID:chcosta,项目名称:corefx,代码行数:19,代码来源:AdvancedFilters.cs
注:本文中的MatchType类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论