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

IsWarningDisabledGlobally() public method

public IsWarningDisabledGlobally ( int code ) : bool
code int
return bool
		public bool IsWarningDisabledGlobally (int code)
		{
			return warning_ignore_table != null && warning_ignore_table.Contains (code);
		}

Usage Example

Example #1
0
		public void WarningEnable (Location location, int code, Report Report)
		{
			if (!Report.CheckWarningCode (code, location))
				return;

			if (Report.IsWarningDisabledGlobally (code))
				Report.Warning (1635, 1, location, "Cannot restore warning `CS{0:0000}' because it was disabled globally", code);

			regions.Add (new Enable (location.Row, code));
		}
All Usage Examples Of Mono.CSharp.Report::IsWarningDisabledGlobally