Mono.CSharp.AnonymousMethodBody.FindBestMethodStorey C# (CSharp) Method

FindBestMethodStorey() private method

private FindBestMethodStorey ( ) : AnonymousMethodStorey
return AnonymousMethodStorey
		AnonymousMethodStorey FindBestMethodStorey ()
		{
			//
			// Use the nearest parent block which has a storey
			//
			for (Block b = Block.Parent; b != null; b = b.Parent) {
				AnonymousMethodStorey s = b.Explicit.AnonymousMethodStorey;
				if (s != null)
					return s;
			}
					
			return null;
		}