Click here to Skip to main content
15,916,280 members
Home / Discussions / C#
   

C#

 
GeneralRe: Using threads to process a collection Pin
BobJanova18-May-11 23:16
BobJanova18-May-11 23:16 
AnswerRe: Using threads to process a collection Pin
Luc Pattyn17-May-11 16:30
sitebuilderLuc Pattyn17-May-11 16:30 
QuestionListView Pin
wizardzz17-May-11 11:21
wizardzz17-May-11 11:21 
AnswerRe: ListView Pin
gavindon17-May-11 11:24
gavindon17-May-11 11:24 
AnswerRe: ListView Pin
RobCroll17-May-11 16:36
RobCroll17-May-11 16:36 
AnswerRe: ListView Pin
Mycroft Holmes17-May-11 19:47
professionalMycroft Holmes17-May-11 19:47 
AnswerRe: ListView Pin
Shameel18-May-11 0:27
professionalShameel18-May-11 0:27 
GeneralRe: ListView Pin
wizardzz18-May-11 8:24
wizardzz18-May-11 8:24 
QuestionHow to detect mouse over and out on windows title bar Pin
Tridip Bhattacharjee17-May-11 3:43
professionalTridip Bhattacharjee17-May-11 3:43 
AnswerRe: How to detect mouse over and out on windows title bar Pin
Dave Kreskowiak17-May-11 4:58
mveDave Kreskowiak17-May-11 4:58 
QuestionSelecting elements from array at specific indices Pin
Chesnokov Yuriy17-May-11 1:25
professionalChesnokov Yuriy17-May-11 1:25 
AnswerRe: Selecting elements from array at specific indices Pin
Luc Pattyn17-May-11 1:54
sitebuilderLuc Pattyn17-May-11 1:54 
AnswerRe: Selecting elements from array at specific indices Pin
Chesnokov Yuriy17-May-11 1:58
professionalChesnokov Yuriy17-May-11 1:58 
GeneralRe: Selecting elements from array at specific indices Pin
Luc Pattyn17-May-11 2:01
sitebuilderLuc Pattyn17-May-11 2:01 
AnswerRe: Selecting elements from array at specific indices Pin
Wayne Gaylard17-May-11 3:48
professionalWayne Gaylard17-May-11 3:48 
You can use the Where clause ie

private void indices()
        {
            List<int> listInts = new List<int>() { 1, -23, 45, -723, 29, 49, -90, 628, 476, 39, -10, 30 };
            int[] indices = new int[] { 3, 5, 7, 9 };
            var selected = listInts.Where((i, index) => !indices.Contains(index));
        }


That will do it.
...and I have extensive experience writing computer code, including OIC, BTW, BRB, IMHO, LMAO, ROFL, TTYL.....

AnswerRe: Selecting elements from array at specific indices Pin
Luc Pattyn17-May-11 4:17
sitebuilderLuc Pattyn17-May-11 4:17 
GeneralRe: Selecting elements from array at specific indices Pin
Wayne Gaylard17-May-11 4:24
professionalWayne Gaylard17-May-11 4:24 
GeneralRe: Selecting elements from array at specific indices Pin
Chesnokov Yuriy17-May-11 7:15
professionalChesnokov Yuriy17-May-11 7:15 
GeneralRe: Selecting elements from array at specific indices Pin
Pete O'Hanlon17-May-11 9:17
mvePete O'Hanlon17-May-11 9:17 
GeneralRe: Selecting elements from array at specific indices Pin
Chesnokov Yuriy17-May-11 20:43
professionalChesnokov Yuriy17-May-11 20:43 
AnswerRe: Selecting elements from array at specific indices Pin
AspDotNetDev17-May-11 9:32
protectorAspDotNetDev17-May-11 9:32 
AnswerRe: Selecting elements from array at specific indices Pin
AspDotNetDev17-May-11 5:41
protectorAspDotNetDev17-May-11 5:41 
GeneralRe: Selecting elements from array at specific indices Pin
Chesnokov Yuriy17-May-11 7:16
professionalChesnokov Yuriy17-May-11 7:16 
QuestionTable in c# Pin
MiguelSanchezCuarental17-May-11 0:47
MiguelSanchezCuarental17-May-11 0:47 
AnswerRe: Table in c# Pin
Pete O'Hanlon17-May-11 0:59
mvePete O'Hanlon17-May-11 0:59 

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.