Click here to Skip to main content
15,910,877 members
Home / Discussions / C#
   

C#

 
GeneralRe: send variable across webpages without using session Pin
Rahul VB21-Jan-14 8:33
professionalRahul VB21-Jan-14 8:33 
GeneralRe: send variable across webpages without using session Pin
OriginalGriff21-Jan-14 8:46
mveOriginalGriff21-Jan-14 8:46 
GeneralRe: send variable across webpages without using session Pin
Sharath Surendran21-Jan-14 22:50
Sharath Surendran21-Jan-14 22:50 
AnswerRe: send variable across webpages without using session Pin
Shameel21-Jan-14 23:10
professionalShameel21-Jan-14 23:10 
GeneralRe: send variable across webpages without using session Pin
Sharath Surendran21-Jan-14 23:15
Sharath Surendran21-Jan-14 23:15 
AnswerRe: send variable across webpages without using session Pin
thatraja21-Jan-14 0:22
professionalthatraja21-Jan-14 0:22 
GeneralRe: send variable across webpages without using session Pin
Sharath Surendran21-Jan-14 22:54
Sharath Surendran21-Jan-14 22:54 
QuestionNeed help for perform some operation parallely Pin
superselector20-Jan-14 17:31
superselector20-Jan-14 17:31 
AnswerRe: Need help for perform some operation parallely Pin
Ron Beyer20-Jan-14 17:38
professionalRon Beyer20-Jan-14 17:38 
GeneralRe: Need help for perform some operation parallely Pin
superselector20-Jan-14 20:39
superselector20-Jan-14 20:39 
GeneralRe: Need help for perform some operation parallely Pin
OriginalGriff20-Jan-14 22:52
mveOriginalGriff20-Jan-14 22:52 
AnswerRe: Need help for perform some operation parallely Pin
GuyThiebaut20-Jan-14 21:55
professionalGuyThiebaut20-Jan-14 21:55 
GeneralRe: Need help for perform some operation parallely Pin
Ron Beyer21-Jan-14 2:26
professionalRon Beyer21-Jan-14 2:26 
GeneralRe: Need help for perform some operation parallely Pin
GuyThiebaut21-Jan-14 5:41
professionalGuyThiebaut21-Jan-14 5:41 
GeneralRe: Need help for perform some operation parallely Pin
GuyThiebaut21-Jan-14 6:27
professionalGuyThiebaut21-Jan-14 6:27 
GeneralRe: Need help for perform some operation parallely Pin
Ron Beyer21-Jan-14 7:01
professionalRon Beyer21-Jan-14 7:01 
QuestionHelp writing a program which adds up values in a 2D array to determine if it is a magic square Pin
Member 1052812320-Jan-14 3:43
Member 1052812320-Jan-14 3:43 
AnswerRe: Help writing a program which adds up values in a 2D array to determine if it is a magic square Pin
Peter Leow20-Jan-14 4:20
professionalPeter Leow20-Jan-14 4:20 
AnswerRe: Help writing a program which adds up values in a 2D array to determine if it is a magic square Pin
OriginalGriff20-Jan-14 5:50
mveOriginalGriff20-Jan-14 5:50 
AnswerRe: Help writing a program which adds up values in a 2D array to determine if it is a magic square Pin
BillWoodruff20-Jan-14 9:08
professionalBillWoodruff20-Jan-14 9:08 
QuestionCustom Data Types Pin
sunsilk1020-Jan-14 3:04
sunsilk1020-Jan-14 3:04 
AnswerRe: Custom Data Types Pin
Manfred Rudolf Bihy20-Jan-14 3:25
professionalManfred Rudolf Bihy20-Jan-14 3:25 
AnswerRe: Custom Data Types Pin
BillWoodruff20-Jan-14 5:13
professionalBillWoodruff20-Jan-14 5:13 
AnswerRe: Custom Data Types Pin
Freak3020-Jan-14 23:30
Freak3020-Jan-14 23:30 
Depending on what the lists contain (any common data members) and what you need to do to them, you might consider using a common base class or an interface. You would then have 5 lists of that base class or interface and pass each one to the same function. As long as you only need to execute common functionality for all lists it should work.

If you need special functionality for some ofthe lists, you could either insert an if like
C#
if (item is listtables1)
{
    listtables1 tmp = (listtables1) item;
    // execute special table 1 functionality here
}

into the common function.

Or you use a different approach: You keep the lists of the special types and create a special function for each type that needs special handling. Then you can call the common function from the special functions passing the base class/interface of the current item. Or you call the common function directly in a loop for the classes without special handling.
The good thing about pessimism is, that you are always either right or pleasently surprised.

QuestionC# with Oraclei Pin
Nightbird.14319-Jan-14 21:00
Nightbird.14319-Jan-14 21: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.