bipin


{ City } pune
< Country > india
* Profession * developer
User No # 75726
Total Questions Posted # 0
Total Answers Posted # 2

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 3
Users Marked my Answers as Wrong # 0
Questions / { bipin }
Questions Answers Category Views Company eMail




Answers / { bipin }

Question { IBM, 6729 }

What is a resource? Provide an example from your recent
project.


Answer

Resources are images,files,soundfiles etc.
A resource file is created for different Cultures are
complied into assembly and placed in output Directory
A resource file is an XML file that contains the strings
that you want to translate into different languages or
paths to images.
The resource file contains key/value pairs. Each pair is an
individual resource. Key names are not case sensitive. For
example, a resource file might contain a resource with the
key Button1 and the value Submit.

Is This Answer Correct ?    2 Yes 0 No

Question { 5538 }

what is ienumerable interface?


Answer

The IEnumerator interface provides iterative capability for
a collection that is internal to a class.
IEnumerator requires that you implement three methods:

The MoveNext method, which increments the collection
index by 1 and returns a bool that indicates whether the
end of the collection has been reached.

The Reset method, which resets the collection index to
its initial value of -1. This invalidates the enumerator.

The Current method, which returns the current object at
[position].

public bool MoveNext()
{
position++;
return (position < carlist.Length);
}

public void Reset()
{position = 0;}

public object Current
{
get { return carlist[position];}
}

IEnumerable interface
The IEnumerable interface provides support for the foreach
iteration. IEnumerable requires that you implement the
GetEnumerator method.

public IEnumerator GetEnumerator()
{
return (IEnumerator)this;
}

Is This Answer Correct ?    1 Yes 0 No