No announcements
Found 942018 threads
-
0 Votes
How to invoke properly a method with a Func<> parameter
You are passing the name of the method you want to pass as a parameter, while you should pass the actual method.Answered | 5 Replies | 3159 Views | Created by Chrizarus - Friday, October 8, 2010 7:39 AM | Last reply by Chrizarus - Monday, October 18, 2010 7:23 AM -
1 Votes
How to get the name of the Func<> parameter
You need to define the parameter as Expression<Func<IInterface, TResult>>.Answered | 5 Replies | 10885 Views | Created by Chrizarus - Friday, April 9, 2010 2:00 PM | Last reply by Chrizarus - Monday, April 12, 2010 12:10 PM -
0 Votes
Determining parameter values from anonymous delegate/func...
The only way to take different types of delegates as parameter is to define the parameter as the base class of all delegates.Answered | 4 Replies | 6579 Views | Created by mbsingh - Tuesday, October 11, 2011 3:04 AM | Last reply by servy42 - Tuesday, October 11, 2011 4:53 PM -
0 Votes
Lambda expression as method parameter
you don't specify any types, and C# is a typed language And I don't understand how you expect the compiler to get the parameters into the ...Answered | 3 Replies | 720 Views | Created by Jon Q Jacobs - Friday, March 13, 2020 5:11 PM | Last reply by Jon Q Jacobs - Friday, March 13, 2020 6:13 PM -
0 Votes
Compare and Assign a Func/Delegete Results
You do not use a ref parameter to return a value.Answered | 15 Replies | 565 Views | Created by Ryan Software - Tuesday, April 4, 2017 6:03 PM | Last reply by CoolDadTx - Sunday, April 9, 2017 2:15 PM -
2 Votes
Func<T, TResult> Delegate
thanks Adavesh.. i agree that Func removes the overhead of creating a delegate.Answered | 4 Replies | 2850 Views | Created by LalitkSaw - Monday, June 4, 2012 7:11 AM | Last reply by LalitkSaw - Monday, June 4, 2012 11:30 AM -
1 Votes
Func<T,TResult> delegate
You cannot have generic properties in an interface unless they use the same type parameter of the interface itself.Answered | 1 Replies | 1721 Views | Created by Robc1234 - Tuesday, October 11, 2011 9:10 PM | Last reply by Mario Cossi - Tuesday, October 11, 2011 9:37 PM -
4 Votes
func-vs-action-vs-predicate
LINQ provides extension methods against IEnumerable<T>.Answered | 6 Replies | 1962 Views | Created by Markus Freitag - Wednesday, March 27, 2019 5:18 PM | Last reply by Markus Freitag - Friday, March 29, 2019 5:20 PM -
0 Votes
need help with Func & lambda
Revert the body of your method back to it's original, and change your method signature to the following: RunSearch<K>(Func<SalesRepPurchase, ...Answered | 5 Replies | 3116 Views | Created by gswartz - Thursday, February 26, 2009 8:43 PM | Last reply by gswartz - Thursday, February 26, 2009 10:01 PM -
1 Votes
OnPaint() func
Then you can call methods of your class from the handler.Answered | 13 Replies | 5724 Views | Created by Sharekhan - Sunday, September 6, 2009 7:03 AM | Last reply by steve_tiger_03 - Friday, August 16, 2013 4:53 PM -
1 Votes
Compare Two Func returns false
The equality between the Func for the above type was achieved by converting the Func to Expression.Answered | 3 Replies | 2129 Views | Created by Gachu16 - Tuesday, May 13, 2014 8:41 PM | Last reply by Gachu16 - Friday, May 16, 2014 7:59 PM -
4 Votes
How to use many conditions in the parameter of an extenison method?
You are defining a generic Insert<T> method but you are calling the built-in, non-generic, Insert method.Answered | 7 Replies | 431 Views | Created by ComptonAlvaro - Monday, March 23, 2015 8:42 AM | Last reply by ComptonAlvaro - Monday, March 23, 2015 3:32 PM -
0 Votes
How to let the user write a func as a string and then compile it/run it on the fly?
Hi, How can I allow the user of my app to write a string which can be compiled to a func?Answered | 2 Replies | 2465 Views | Created by GSS1 - Friday, March 5, 2010 9:09 PM | Last reply by GSS1 - Sunday, March 7, 2010 11:57 PM -
0 Votes
Calling methods with a generic parameter using funceval in Mdbg
Hi Darius, to call a function with generics parameter you will need to use ICorDebugEval2 interface.Answered | 2 Replies | 6202 Views | Created by Darius R - Thursday, October 7, 2010 2:41 PM | Last reply by eryang - Monday, October 25, 2010 2:58 AM -
0 Votes
Method with Func as parameter
Here is an example that should work: public class Class1 { public int Method1(string input) { //... do something ...Answered | 1 Replies | 53 Views | Created by Anonymous - Sunday, October 26, 2014 12:33 PM | Last reply by Anonymous - Monday, October 27, 2014 11:07 PM -
0 Votes
Understanding list of Func delegate (lambda expression)
What I can guess is, it adds a method that returns a "IReport".Answered | 1 Replies | 432 Views | Created by tireless_commited - Monday, October 10, 2016 3:34 PM | Last reply by ranta - Friday, October 14, 2016 9:05 PM -
0 Votes
FUNC Syntax advise
How to implement FUNC here please?Answered | 2 Replies | 200 Views | Created by Y a h y a - Wednesday, April 20, 2016 8:29 AM | Last reply by Y a h y a - Thursday, April 21, 2016 12:11 AM -
2 Votes
Parameters in a VFP method
> I want to use PARAMETERS in a VFP method.Answered | 4 Replies | 10006 Views | Created by DavidDelgado - Wednesday, February 7, 2007 8:37 PM | Last reply by CetinBasoz_Dont Trust Microsoft - Thursday, February 8, 2007 2:12 PM -
0 Votes
Using Funcs as parameters in methods
An example: using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; using System.Data.Linq; namespace ...Answered | 2 Replies | 12482 Views | Created by GSS1 - Tuesday, February 23, 2010 5:29 PM | Last reply by JohnGrove - Tuesday, February 23, 2010 6:23 PM -
2 Votes
Attribute on a particular parameter of a method?
However, you wouldn't really be able to anyways - there's no way to use a method and not use one parameter of the method - so it ...Answered | 7 Replies | 1569 Views | Created by Deepak Vasudevan - Wednesday, August 8, 2012 5:46 PM | Last reply by Deepak Vasudevan - Wednesday, August 8, 2012 7:47 PM - Items 1 to 20 of 942018 Next ›
No announcements