For the ?
to work the compiler needs an explicit type for at least one of the operands. You can provide one here via a cast operator
(a ? (Action<T1,T2,T3,T4>)f1 : f2)(a, long, parameter, list);
Replace T*
with the actual types of the delegate parameters
More Related Contents:
- LINQ query on a DataTable
- Creating a DateTime in a specific Time Zone in c#
- How can I convert an integer into its verbal representation?
- Workaround for lack of ‘nameof’ operator in C# for type-safe databinding?
- How to change the color of progressbar in C# .NET 3.5?
- How to parse a string into a nullable int
- Don’t stop debugger at THAT exception when it’s thrown and caught
- Inconsistency in divide-by-zero behavior between different value types
- Software rendering mode – WPF
- What is the Efficiency and Performance of LINQ and Lambda Expression in .Net?
- Operation could destabilize the runtime?
- Monitoring Garbage Collector in C#
- How do I get the Local Network IP address of a computer programmatically?
- Is it possible to intercept Console output?
- How can I join int[] to a character-separated string in .NET?
- Dependency Injection wcf
- Put WPF control into a Windows Forms Form?
- Finding all classes with a particular attribute
- Replacing a DataReader with a DataTable
- Get the calling function name from the called function [duplicate]
- How do I compile my App.config into my exe in a VS2010 C# console app?
- Get first element from a dictionary
- How to check if process is not responding?
- Does .NET FtpWebRequest Support both Implicit (FTPS) and explicit (FTPES)?
- What is the difference between int, Int16, Int32 and Int64?
- Encoding parameters for a URL
- Dynamically implementing an interface in .NET 4.0 (C#)
- How to add extension methods to Enums
- Active solution platform VS Project Platform VS Platform target
- Marshal.PtrToStructure (and back again) and generic solution for endianness swapping