Click here to Skip to main content
16,007,932 members
Home / Discussions / C#
   

C#

 
GeneralSorry Pin
Dave Herren27-May-07 3:59
Dave Herren27-May-07 3:59 
AnswerRe: Need Help Urgently Pin
Thomas Stockwell26-May-07 15:22
professionalThomas Stockwell26-May-07 15:22 
AnswerRe: Need Help Urgently Pin
Christian Graus26-May-07 15:46
protectorChristian Graus26-May-07 15:46 
JokeRe: Need Help Urgently Pin
Muammar©26-May-07 19:28
Muammar©26-May-07 19:28 
GeneralRe: Need Help Urgently Pin
Dave Herren27-May-07 4:56
Dave Herren27-May-07 4:56 
QuestionGenerics class Pin
abedo198226-May-07 9:53
abedo198226-May-07 9:53 
AnswerRe: Generics class Pin
Not Active26-May-07 13:45
mentorNot Active26-May-07 13:45 
GeneralRe: Generics class Pin
abedo198227-May-07 10:49
abedo198227-May-07 10:49 
thank you Mark
this is the correct code but I need just how can i call a function in this example list for the generics T(((T)item) .list) or use it like the class( myList<t>)
plz reply me as soon as possible

//--------------------------

myList<mylist<int> ///.list =={1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90}
[0]myList<mylist<int>>///.list =={1,2,3,4,5,6,7,8,9}
[0]=myList<int>;///.list =={1,2,3}
[0]=1;
[1]=2;
[2]=3;
[1]=myList<int>;///.list =={4,5,6}
[0]=4;
[1]=5;
[2]=6;
[2]=myList<int>;///.list =={7,8,9}
[0]=7;
[1]=8;
[2]=9;
[1]myList<mylist<int>>///.list =={10,20,30,40,50,60,70,80,90}
[0]=myList<int>;///.list =={10,20,30}
[0]=10;
[1]=20;
[2]=30;
[1]=myList<int>;///.list =={40,50,60}
[0]=40;
[1]=50;
[2]=60;
[2]=myList<int>;///.list =={40,50,60}
[0]=70;
[1]=80;
[2]=90;

//---------------------------

thank you in advance,

example:
class myList<t>
{
Array MyArray;

public myList()
{
_MyArray=new Array();
}

public void add(T value)
{
_MyArray.add(value);
}

public object[] List
{
//here is the problem
//Array<object> temp=new Array<object>();
//if T is myList<>
//{
// foreach(T item in _MaArray)
// {
// temp.addRange(((T)item) .list);//use list method
// }
//}
//else
//{
// foreach(T item in _MaArray)
// {
// temp.addRange((object)item);
// }
//}
}
}

{

myList<mylist<int>> AList=new myList<mylist<int>>();
myList<int> BList=new myList<int>();
BList.add(1);
BList.add(2);
BList.add(3);
AList.add(BList);
//BList.list === {1,2,3}
BList=new myList<int>();
BList.add(4);
BList.add(5);
BList.add(6);
AList.add(BList);
//BList.list === {4,5,6}
//AList.list === {1,2,3,4,5,6}
GeneralRe: Generics class [modified] Pin
Not Active27-May-07 11:45
mentorNot Active27-May-07 11:45 
Questionsynchronization with serialport ? Pin
Mir_As26-May-07 9:22
Mir_As26-May-07 9:22 
AnswerRe: synchronization with serialport ? Pin
Muammar©26-May-07 19:39
Muammar©26-May-07 19:39 
Questionread data from excel Pin
Mujz.........26-May-07 8:59
Mujz.........26-May-07 8:59 
QuestionHow to use code templates for entity properties Pin
AndrusM26-May-07 8:54
AndrusM26-May-07 8:54 
QuestionShow combobox list opening control only in current row Pin
AndrusM26-May-07 8:53
AndrusM26-May-07 8:53 
QuestionDropDownWidth ignored in DataGridViewComboBoxColumn Pin
AndrusM26-May-07 8:51
AndrusM26-May-07 8:51 
Questionhow to tell to regex (regular expression) that ignore some charachters ? Pin
hdv21226-May-07 8:40
hdv21226-May-07 8:40 
AnswerRe: how to tell to regex (regular expression) that ignore some charachters ? Pin
mav.northwind26-May-07 21:59
mav.northwind26-May-07 21:59 
QuestionSetStyle( ) to eliminate flicker causes problem. Pin
Ylno26-May-07 7:56
Ylno26-May-07 7:56 
Questionclearing table or dataGrid and make the table selected fit in my dataGrid Pin
spawn_ro198526-May-07 6:16
spawn_ro198526-May-07 6:16 
QuestionDirectoryInfo Problem Pin
Mohammed Elkholy26-May-07 5:20
Mohammed Elkholy26-May-07 5:20 
AnswerRe: DirectoryInfo Problem Pin
kubben26-May-07 7:14
kubben26-May-07 7:14 
AnswerRe: DirectoryInfo Problem Pin
Luc Pattyn26-May-07 8:28
sitebuilderLuc Pattyn26-May-07 8:28 
Questionexport from grid to excel,word Pin
praveenanand26-May-07 3:18
praveenanand26-May-07 3:18 
AnswerRe: export from grid to excel,word Pin
Manoj Kumar Rai26-May-07 7:02
professionalManoj Kumar Rai26-May-07 7:02 
QuestionOpen File Dialog again Pin
mihksoft26-May-07 3:02
mihksoft26-May-07 3:02 

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.