Click here to Skip to main content
15,890,579 members
Home / Discussions / C#
   

C#

 
AnswerRe: cue banner not working Pin
Wes Aday17-Aug-12 4:51
professionalWes Aday17-Aug-12 4:51 
GeneralRe: cue banner not working Pin
Shameel17-Aug-12 5:05
professionalShameel17-Aug-12 5:05 
GeneralRe: cue banner not working Pin
Jassim Rahma17-Aug-12 5:06
Jassim Rahma17-Aug-12 5:06 
GeneralRe: cue banner not working Pin
Wes Aday17-Aug-12 5:27
professionalWes Aday17-Aug-12 5:27 
AnswerRe: cue banner not working Pin
Richard Andrew x6417-Aug-12 8:04
professionalRichard Andrew x6417-Aug-12 8:04 
GeneralRe: cue banner not working Pin
Wes Aday17-Aug-12 8:28
professionalWes Aday17-Aug-12 8:28 
AnswerRe: cue banner not working Pin
Richard Andrew x6417-Aug-12 8:18
professionalRichard Andrew x6417-Aug-12 8:18 
QuestionTuples in Functions Pin
computerpublic17-Aug-12 3:52
computerpublic17-Aug-12 3:52 
Basically I am experimenting with Tuple for the first time and I am completely out of my element. I have no idea of how to correct the errors I am getting. Can someone please help.


C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Testing_Functions
{
    class Program
    {
        public static Tuple<double, double> Test(Double Val1, Double Val2, Double Val3)
        {
            Double Test_Val = Val1 + Val2 + Val3;
            Double Test_2 = 7;
            return Tuple(Test_Val, Test_2);
        }
        static void Main(string[] args)
        {
            Double A = 1, B = 2, C = 3;
            Tuple Result = Test(A,B,C);
            Console.WriteLine("{0}", Result);
        }
    }
}

AnswerRe: Tuples in Functions Pin
Wayne Gaylard17-Aug-12 4:37
professionalWayne Gaylard17-Aug-12 4:37 
GeneralRe: Tuples in Functions Pin
harold aptroot17-Aug-12 8:16
harold aptroot17-Aug-12 8:16 
AnswerRe: Tuples in Functions Pin
Ravi Bhavnani17-Aug-12 4:39
professionalRavi Bhavnani17-Aug-12 4:39 
AnswerRe: Tuples in Functions Pin
DaveyM6917-Aug-12 22:21
professionalDaveyM6917-Aug-12 22:21 
GeneralRe: Tuples in Functions Pin
BillWoodruff18-Aug-12 7:17
professionalBillWoodruff18-Aug-12 7:17 
GeneralRe: Tuples in Functions Pin
DaveyM6918-Aug-12 8:09
professionalDaveyM6918-Aug-12 8:09 
AnswerRe: Tuples in Functions Pin
WebMaster18-Aug-12 5:20
WebMaster18-Aug-12 5:20 
GeneralRe: Tuples in Functions Pin
DaveyM6918-Aug-12 8:15
professionalDaveyM6918-Aug-12 8:15 
GeneralRe: Tuples in Functions Pin
WebMaster18-Aug-12 9:53
WebMaster18-Aug-12 9:53 
AnswerRe: Tuples in Functions Pin
Keith Barrow18-Aug-12 9:38
professionalKeith Barrow18-Aug-12 9:38 
AnswerRe: Tuples in Functions Pin
BillWoodruff18-Aug-12 9:43
professionalBillWoodruff18-Aug-12 9:43 
GeneralMy Vote of 5 Pin
Keith Barrow18-Aug-12 10:32
professionalKeith Barrow18-Aug-12 10:32 
GeneralRe: Tuples in Functions Pin
leppie18-Aug-12 21:37
leppie18-Aug-12 21:37 
GeneralRe: Tuples in Functions Pin
BillWoodruff19-Aug-12 14:15
professionalBillWoodruff19-Aug-12 14:15 
GeneralRe: Tuples in Functions Pin
leppie19-Aug-12 19:41
leppie19-Aug-12 19:41 
AnswerLeppie's interesting suggestion to use 'Anonymous Classes' ... Re: Tuples in Functions Pin
BillWoodruff18-Aug-12 15:49
professionalBillWoodruff18-Aug-12 15:49 
GeneralRe: Leppie's interesting suggestion to use 'Anonymous Classes' ... Re: Tuples in Functions Pin
BobJanova20-Aug-12 1:00
BobJanova20-Aug-12 1:00 

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.