'EventDelegate.Callback' does not contain a definition for 'Method'

Hello,

So, I have a little big damn problem around here…

The complete error message is this:

I’ve make a build process with “compilation override” : “Use Net Core”, option. When I make a build with “compilation override” : “none” the final Visual Studio project crash when I try to run it!.

What do you think about this?
How I can find a solution for this problem?

Thanks!

	public override bool Equals (object obj)
	{
		if (obj == null)
		{
			return !isValid;
		}

		if (obj is Callback)
		{
			Callback callback = obj as Callback;
			return (mTarget == callback.Target  string.Equals(mMethodName, callback.Method.Name)); // This ".Method" is the problem

		}
		
		if (obj is EventDelegate)
		{
			EventDelegate del = obj as EventDelegate;
			return (mTarget == del.mTarget  string.Equals(mMethodName, del.mMethodName));
		}
		return false;
	}

Hi,

what is the type of EventDelegate.Callback?

Hi Tomas…

The type is: “delegate”