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

C#

 
Generale.g. 4th root of a number Pin
harrior7-Sep-04 6:04
harrior7-Sep-04 6:04 
GeneralRe: e.g. 4th root of a number Pin
Colin Angus Mackay7-Sep-04 6:16
Colin Angus Mackay7-Sep-04 6:16 
GeneralRe: e.g. 4th root of a number Pin
Anonymous7-Sep-04 6:50
Anonymous7-Sep-04 6:50 
GeneralCustom Control and GUI Designer Pin
Andy H7-Sep-04 5:34
Andy H7-Sep-04 5:34 
GeneralRe: Custom Control and GUI Designer Pin
Heath Stewart7-Sep-04 7:48
protectorHeath Stewart7-Sep-04 7:48 
AnswerRe: How does one access the AutoIncrementCurrent Value Pin
Jo Develper7-Sep-04 5:01
Jo Develper7-Sep-04 5:01 
QuestionAllowing access to an internal ArrayList through IEnumerator? Pin
matthias s.7-Sep-04 4:30
matthias s.7-Sep-04 4:30 
AnswerRe: Allowing access to an internal ArrayList through IEnumerator? Pin
sreejith ss nair7-Sep-04 5:09
sreejith ss nair7-Sep-04 5:09 
hi,

Your idea is good but your code block is not enough to support your requirement.

This IEnumerable interface have only one abstract method called GetEnumerator. This GetEnumerator will return an interface called IEnumerator. This IEnumerator interface containe two abstract methods and a property. MoveNext(),Reset() and a property called Current.

To achive your need you can define the methods and property like below.

public void Reset()
{
}
public bool MoveNext()
{
}
public object Current
{
get
{
}
}

This is the basic idea.

What you are doing is not sufficient to achive that. That's why you are getting an error message like.
"foreach statement cannot operate on variables of type 'System.Collections.IEnumerator' because 'System.Collections.IEnumerator' does not contain a definition for 'GetEnumerator', or it is inaccessible
"

**************************
S r e e j i t h N a i r
**************************
QuestionHow does one access the AutoIncrementCurrent Value Pin
Anonymous7-Sep-04 4:26
Anonymous7-Sep-04 4:26 
GeneralHi! I need help on custom user control Pin
Member 13210317-Sep-04 4:25
Member 13210317-Sep-04 4:25 
GeneralRe: Hi! I need help on custom user control Pin
Heath Stewart7-Sep-04 7:42
protectorHeath Stewart7-Sep-04 7:42 
GeneralWord 2002 interop Pin
rommie27-Sep-04 4:03
rommie27-Sep-04 4:03 
GeneralRe: Word 2002 interop Pin
mav.northwind7-Sep-04 4:25
mav.northwind7-Sep-04 4:25 
GeneralRe: Word 2002 interop Pin
rommie28-Sep-04 4:45
rommie28-Sep-04 4:45 
Questionhow to use mask in c# Pin
sssa20007-Sep-04 3:59
sssa20007-Sep-04 3:59 
AnswerRe: how to use mask in c# Pin
Christian Graus7-Sep-04 12:15
protectorChristian Graus7-Sep-04 12:15 
GeneralRe: how to use mask in c# Pin
sssa20007-Sep-04 20:03
sssa20007-Sep-04 20:03 
GeneralCalendar/ Grid suggestions Pin
Michael P Butler7-Sep-04 3:52
Michael P Butler7-Sep-04 3:52 
GeneralSaving Stream object Pin
Den2Fly7-Sep-04 3:42
Den2Fly7-Sep-04 3:42 
GeneralRe: Saving Stream object Pin
matthias s.7-Sep-04 4:35
matthias s.7-Sep-04 4:35 
GeneralRe: Saving Stream object Pin
Heath Stewart7-Sep-04 7:08
protectorHeath Stewart7-Sep-04 7:08 
QuestionHow to Zip/UnZip files thru C# code Pin
nacp7-Sep-04 2:02
nacp7-Sep-04 2:02 
AnswerRe: How to Zip/UnZip files thru C# code Pin
Philip Fitzsimons7-Sep-04 2:36
Philip Fitzsimons7-Sep-04 2:36 
GeneralRe: How to Zip/UnZip files thru C# code Pin
nacp7-Sep-04 21:49
nacp7-Sep-04 21:49 
GeneralRe: How to Zip/UnZip files thru C# code Pin
nacp7-Sep-04 21:51
nacp7-Sep-04 21:51 

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.