Click here to Skip to main content
15,891,629 members
Home / Discussions / C#
   

C#

 
GeneralRe: design asynchronous interface Pin
nelsonpaixao9-Oct-08 13:49
nelsonpaixao9-Oct-08 13:49 
GeneralRe: design asynchronous interface Pin
George_George9-Oct-08 22:34
George_George9-Oct-08 22:34 
GeneralRe: design asynchronous interface Pin
nelsonpaixao10-Oct-08 13:09
nelsonpaixao10-Oct-08 13:09 
GeneralRe: design asynchronous interface Pin
George_George10-Oct-08 22:59
George_George10-Oct-08 22:59 
QuestionA potentially dangerous Request.QueryString value was detected from the client (ReturnUrl="...1111&#Write"). [modified] Pin
mimimimilaw8-Oct-08 23:05
mimimimilaw8-Oct-08 23:05 
AnswerRe: A potentially dangerous Request.QueryString value was detected from the client (ReturnUrl="...1111&#Write"). Pin
Guffa8-Oct-08 23:52
Guffa8-Oct-08 23:52 
AnswerRe: A potentially dangerous Request.QueryString value was detected from the client (ReturnUrl="...1111&#Write"). Pin
JendaPerl18-Aug-10 23:22
JendaPerl18-Aug-10 23:22 
QuestionGet Element of Generic List Pin
ezazazel8-Oct-08 21:21
ezazazel8-Oct-08 21:21 
Greetings to all!

I have a genric list of UIElements.
A Method passes me two variables:
the direction represented by an integer (+1 or -1)
and the type of the last used object in the list.

I need to find out the index of the last object and get the next one.

eg.:
List<uielements> _list = new List<uielements>(){new Dialog1(), new Dialog2(), new Dialog3()};

internal UIElement GiveNavigationItem(int p, Type lastElement)
{
 var result = from o in _list
                             where o.GetType() == lastElement
                             select o; //HERE I NEED THE INDEX AND NOT THE OBJECT ITSELF

 //RESULT SHOULD BE INT32
 return _list[result + p];

}</uielements></uielements>


Thank you in advance!
eza
AnswerRe: Get Element of Generic List Pin
Simon P Stevens8-Oct-08 23:01
Simon P Stevens8-Oct-08 23:01 
AnswerRe: Get Element of Generic List Pin
#realJSOP8-Oct-08 23:34
mve#realJSOP8-Oct-08 23:34 
GeneralRe: Get Element of Generic List Pin
ezazazel9-Oct-08 2:16
ezazazel9-Oct-08 2:16 
AnswerRe: Get Element of Generic List Pin
J4amieC9-Oct-08 0:42
J4amieC9-Oct-08 0:42 
GeneralRe: Get Element of Generic List Pin
ezazazel9-Oct-08 2:08
ezazazel9-Oct-08 2:08 
Questionflicker free drawing.... Pin
Denver Thomas8-Oct-08 19:55
Denver Thomas8-Oct-08 19:55 
AnswerRe: flicker free drawing.... [modified] Pin
ervegter8-Oct-08 21:02
ervegter8-Oct-08 21:02 
GeneralRe: flicker free drawing.... Pin
Denver Thomas8-Oct-08 21:47
Denver Thomas8-Oct-08 21:47 
QuestionWhat's the differense between int and int[] Pin
Pedram Behroozi8-Oct-08 19:00
Pedram Behroozi8-Oct-08 19:00 
AnswerRe: What's the differense between int and int[] Pin
Parwej Ahamad8-Oct-08 19:16
professionalParwej Ahamad8-Oct-08 19:16 
GeneralRe: What's the differense between int and int[] Pin
Pedram Behroozi8-Oct-08 19:21
Pedram Behroozi8-Oct-08 19:21 
QuestionEmbeded HTML Files C# V.Studio Exp. Edtn. Pin
jas0n238-Oct-08 16:54
jas0n238-Oct-08 16:54 
AnswerRe: Embeded HTML Files C# V.Studio Exp. Edtn. Pin
Mbah Dhaim8-Oct-08 17:47
Mbah Dhaim8-Oct-08 17:47 
GeneralRe: Embeded HTML Files C# V.Studio Exp. Edtn. Pin
jas0n239-Oct-08 0:01
jas0n239-Oct-08 0:01 
QuestionError with DataGridView? Pin
Richard Blythe8-Oct-08 16:18
Richard Blythe8-Oct-08 16:18 
QuestionCrystal Reports - IFieldObject (and others) Pin
nelsonpaixao8-Oct-08 14:08
nelsonpaixao8-Oct-08 14:08 
QuestionMD5 Conflict between PHP and C# Pin
Vasudevan Deepak Kumar8-Oct-08 12:05
Vasudevan Deepak Kumar8-Oct-08 12:05 

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.