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


C# MatchType类代码示例

本文整理汇总了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;
 }
开发者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


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