Click here to Skip to main content
15,925,250 members
Home / Discussions / C#
   

C#

 
AnswerRe: Help! remoting: What's wrong with my client config file? Pin
James T. Johnson18-Aug-03 18:52
James T. Johnson18-Aug-03 18:52 
GeneralRe: Help! remoting: What's wrong with my client config file? Pin
devvvy18-Aug-03 19:26
devvvy18-Aug-03 19:26 
GeneralSeparating functionalities Pin
Meysam Mahfouzi18-Aug-03 17:51
Meysam Mahfouzi18-Aug-03 17:51 
GeneralRe: Separating functionalities Pin
Ista18-Aug-03 18:09
Ista18-Aug-03 18:09 
GeneralRe: Separating functionalities Pin
Meysam Mahfouzi19-Aug-03 17:02
Meysam Mahfouzi19-Aug-03 17:02 
GeneralRe: Separating functionalities Pin
Ista19-Aug-03 17:06
Ista19-Aug-03 17:06 
GeneralRe: Separating functionalities Pin
Meysam Mahfouzi19-Aug-03 17:14
Meysam Mahfouzi19-Aug-03 17:14 
GeneralRe: Separating functionalities Pin
Ista19-Aug-03 17:32
Ista19-Aug-03 17:32 
Taking the first idea:

public IEnumerator MyObjects
{
get
return myList.GetEnumerator();
}
}

now lets expand on this

public class MyEnumerator : IEnumerable
{
private ArrayList myList;

public MyEnumerator( ArrayList newList )
{
myList = newList;
}

public System.Collections.IEnumerator GetEnumerator ( )
{
return myList.GetEnumerator();
}

public int Count
{
get
{
return myList.Count;
}
}
}

so that includes a count its not part of the object

if you want it to be a self supporting one I would exchange IEnumerable for IEnumerator and implement the 3 methods and properties instead.

nick

I'm not an expert yet, but I play one at work. Yeah and here too.
GeneralRe: Separating functionalities Pin
Ista19-Aug-03 17:32
Ista19-Aug-03 17:32 
GeneralRe: Separating functionalities Pin
Meysam Mahfouzi19-Aug-03 17:42
Meysam Mahfouzi19-Aug-03 17:42 
GeneralRe: Separating functionalities Pin
Ista20-Aug-03 3:20
Ista20-Aug-03 3:20 
Questionhow do you get the current assembly name and file name? Pin
devvvy18-Aug-03 16:08
devvvy18-Aug-03 16:08 
AnswerRe: how do you get the current assembly name and file name? Pin
Ista18-Aug-03 16:26
Ista18-Aug-03 16:26 
QuestionKnow one in admin answers so can you please explain this simple tiny ? Pin
Ista18-Aug-03 16:02
Ista18-Aug-03 16:02 
AnswerRe: Know one in admin answers so can you please explain this simple tiny ? Pin
James T. Johnson18-Aug-03 18:55
James T. Johnson18-Aug-03 18:55 
AnswerRe: Know one in admin answers so can you please explain this simple tiny ? Pin
Julian Bucknall [MSFT]19-Aug-03 6:43
Julian Bucknall [MSFT]19-Aug-03 6:43 
QuestionCan't create an Access database in .NET??? Pin
Marc Clifton18-Aug-03 12:14
mvaMarc Clifton18-Aug-03 12:14 
AnswerRe: Can't create an Access database in .NET??? Pin
Marc Clifton18-Aug-03 12:30
mvaMarc Clifton18-Aug-03 12:30 
GeneralRe: Can't create an Access database in .NET??? Pin
Nick Parker19-Aug-03 7:39
protectorNick Parker19-Aug-03 7:39 
GeneralRe: Can't create an Access database in .NET??? Pin
Alvaro Mendez19-Aug-03 11:37
Alvaro Mendez19-Aug-03 11:37 
Generalnew form without new window Pin
mikemilano18-Aug-03 10:30
mikemilano18-Aug-03 10:30 
GeneralRe: new form without new window Pin
Marc Clifton18-Aug-03 12:45
mvaMarc Clifton18-Aug-03 12:45 
GeneralRe: new form without new window Pin
Ista18-Aug-03 16:47
Ista18-Aug-03 16:47 
GeneralTrolling through DataSets Pin
Kenneth Childs18-Aug-03 9:22
Kenneth Childs18-Aug-03 9:22 
GeneralRe: Trolling through DataSets Pin
Jeff Martin18-Aug-03 11:42
Jeff Martin18-Aug-03 11:42 

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.