Mono.CSharp.Report.CheckWarningCode C# (CSharp) Method

CheckWarningCode() public method

public CheckWarningCode ( int code, Mono.CSharp.Location loc ) : bool
code int
loc Mono.CSharp.Location
return bool
		public bool CheckWarningCode (int code, Location loc)
		{
			if (AllWarningsHashSet == null)
				AllWarningsHashSet = new HashSet<int> (AllWarnings);

			if (AllWarningsHashSet.Contains (code))
				return true;

			return CheckWarningCode (code.ToString (), loc);
		}

Same methods

Report::CheckWarningCode ( string code, Mono.CSharp.Location loc ) : bool

Usage Example

Example #1
0
 public void WarningDisable(Location location, int code, Report Report)
 {
     if (Report.CheckWarningCode(code, location))
     {
         regions.Add(new Disable(location.Row, code));
     }
 }
All Usage Examples Of Mono.CSharp.Report::CheckWarningCode