Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void Test<T>(T param, Action<T> callback)
- {
- }
- // here 'int' detected
- Test(1, (intVariable) =>
- {
- });
- // here 'string' detected
- Test("hello", (stringVariable) =>
- {
- });
- Test(int.Parse, (parseMethod) =>
- {
- parseMethod("11");
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement