Mono.CSharp.AnonymousMethodExpression.VerifyExplicitParameters C# (CSharp) Method

VerifyExplicitParameters() protected method

protected VerifyExplicitParameters ( ResolveContext ec, System.TypeSpec delegate_type, AParametersCollection parameters ) : bool
ec ResolveContext
delegate_type System.TypeSpec
parameters AParametersCollection
return bool
		protected bool VerifyExplicitParameters (ResolveContext ec, TypeSpec delegate_type, AParametersCollection parameters)
		{
			if (VerifyParameterCompatibility (ec, delegate_type, parameters, ec.IsInProbingMode))
				return true;

			if (!ec.IsInProbingMode)
				ec.Report.Error (1661, loc,
					"Cannot convert `{0}' to delegate type `{1}' since there is a parameter mismatch",
					GetSignatureForError (), TypeManager.CSharpName (delegate_type));

			return false;
		}