Click here to Skip to main content
16,006,013 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to create array textbox in design time Pin
Christian Graus16-Apr-08 11:20
protectorChristian Graus16-Apr-08 11:20 
GeneralRe: How to create array textbox in design time Pin
cocoonwls16-Apr-08 16:27
cocoonwls16-Apr-08 16:27 
GeneralSample XNA solutions with .tga files. Pin
NarVish15-Apr-08 18:42
NarVish15-Apr-08 18:42 
GeneralRe: Sample XNA solutions with .tga files. Pin
MarkB77715-Apr-08 18:59
MarkB77715-Apr-08 18:59 
QuestionThread communication & Other RTOS concepts Pin
tvis15-Apr-08 17:38
tvis15-Apr-08 17:38 
GeneralRe: Thread communication & Other RTOS concepts Pin
Zoltan Balazs15-Apr-08 19:48
Zoltan Balazs15-Apr-08 19:48 
GeneralAnonymous Delegate with Anonymous return value Pin
John Wolfe15-Apr-08 14:31
John Wolfe15-Apr-08 14:31 
GeneralRe: Anonymous Delegate with Anonymous return value Pin
K.L.K15-Apr-08 18:12
K.L.K15-Apr-08 18:12 
Action delegates don't allow you to return values. I think the Func<> delegate is what you need, it lets you specify up to 4 input parameter types and a return type. Here is your example, using Func:

<br />
    public interface IRandomInterface<br />
    {<br />
        object GetProductById( );<br />
    }<br />
<br />
    public class ClassMain : IRandomInterface<br />
    {<br />
        public object GetProductById( ) { return new object(); }<br />
<br />
        public static void RetrieveDataFunction( )<br />
        {<br />
            IRandomInterface classMain = new ClassMain();<br />
            Func<irandominterface, object=""> invokeMethod = delegate( IRandomInterface executeReference )<br />
            {<br />
                return executeReference.GetProductById();<br />
            };<br />
<br />
            object response = invokeMethod( classMain );<br />
        }<br />
    }<br />
</irandominterface,>

GeneralAbstract classes - returning a value to the base. Pin
MarkB77715-Apr-08 13:05
MarkB77715-Apr-08 13:05 
GeneralRe: Abstract classes - returning a value to the base. Pin
Luc Pattyn15-Apr-08 13:24
sitebuilderLuc Pattyn15-Apr-08 13:24 
GeneralRe: Abstract classes - returning a value to the base. Pin
MarkB77715-Apr-08 13:55
MarkB77715-Apr-08 13:55 
GeneralRe: Abstract classes - returning a value to the base. Pin
Luc Pattyn15-Apr-08 14:03
sitebuilderLuc Pattyn15-Apr-08 14:03 
GeneralRe: Abstract classes - returning a value to the base. Pin
Luc Pattyn15-Apr-08 14:16
sitebuilderLuc Pattyn15-Apr-08 14:16 
GeneralSearching for an open socket on a local network Pin
Jordanwb15-Apr-08 12:30
Jordanwb15-Apr-08 12:30 
GeneralRe: Searching for an open socket on a local network Pin
Luc Pattyn15-Apr-08 13:27
sitebuilderLuc Pattyn15-Apr-08 13:27 
GeneralRe: Searching for an open socket on a local network Pin
Jordanwb15-Apr-08 13:36
Jordanwb15-Apr-08 13:36 
GeneralRe: Searching for an open socket on a local network Pin
Luc Pattyn15-Apr-08 13:44
sitebuilderLuc Pattyn15-Apr-08 13:44 
GeneralRe: Searching for an open socket on a local network Pin
Jordanwb15-Apr-08 13:53
Jordanwb15-Apr-08 13:53 
GeneralRe: Searching for an open socket on a local network Pin
Luc Pattyn15-Apr-08 14:02
sitebuilderLuc Pattyn15-Apr-08 14:02 
GeneralRe: Searching for an open socket on a local network Pin
Jordanwb15-Apr-08 14:16
Jordanwb15-Apr-08 14:16 
GeneralRe: Searching for an open socket on a local network Pin
Luc Pattyn15-Apr-08 14:24
sitebuilderLuc Pattyn15-Apr-08 14:24 
GeneralRe: Searching for an open socket on a local network [modified] Pin
Jordanwb15-Apr-08 14:29
Jordanwb15-Apr-08 14:29 
GeneralProblem with publishing an application Pin
EladKatz15-Apr-08 12:00
EladKatz15-Apr-08 12:00 
GeneralRe: Problem with publishing an application Pin
Judah Gabriel Himango15-Apr-08 12:21
sponsorJudah Gabriel Himango15-Apr-08 12:21 
QuestionRe: Problem with publishing an application Pin
EladKatz15-Apr-08 19:56
EladKatz15-Apr-08 19:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.