ValueInjector.SourceCodeLocation.Contains C# (CSharp) Méthode

Contains() public méthode

public Contains ( SourceCodeLocation other ) : bool
other SourceCodeLocation
Résultat bool
		public bool Contains(SourceCodeLocation other)
		{
			if(!String.Equals(FileName, other.FileName))
				return false;
			var startsBefore = (StartLine < other.StartLine || (StartLine == other.StartLine && StartColumn <= other.StartColumn));
			var endsAfter = (EndLine > other.EndLine || (EndLine == other.EndLine && EndColumn >= other.EndColumn));
			return startsBefore && endsAfter;
		}