Skip to content

An Idea About Multicast Delegate #8511

Answered by FaustVX
Wit-2k asked this question in Language Ideas
Discussion options

You must be logged in to vote

Just cast the first method to the delegate type:

Action act = (Action)Class1.methodX + Class2.methodY;

It's because the compiler can't implies the type from method group to Action

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Wit-2k
Comment options

Answer selected by Wit-2k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants