MonoDevelop.CSharp.Completion.CSharpTextEditorCompletion.MatchDelegate C# (CSharp) Method

MatchDelegate() static private method

static private MatchDelegate ( IType delegateType, IMethod method ) : bool
delegateType IType
method IMethod
return bool
		static bool MatchDelegate (IType delegateType, IMethod method)
		{
			IMethod delegateMethod = delegateType.Methods.First ();
			if (delegateMethod.Parameters.Count != method.Parameters.Count)
				return false;
			for (int i = 0; i < delegateMethod.Parameters.Count; i++) {
				if (delegateMethod.Parameters[i].ReturnType.ToInvariantString () != method.Parameters[i].ReturnType.ToInvariantString ())
					return false;
			}
			return true;
		}