Click here to Skip to main content
15,899,754 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: outlook profile information PinPopular
Richard MacCutchan25-Oct-12 2:37
mveRichard MacCutchan25-Oct-12 2:37 
GeneralRe: outlook profile information Pin
newdolby200525-Oct-12 4:14
newdolby200525-Oct-12 4:14 
GeneralRe: outlook profile information Pin
Richard MacCutchan25-Oct-12 4:16
mveRichard MacCutchan25-Oct-12 4:16 
GeneralRe: outlook profile information Pin
Dave Kreskowiak25-Oct-12 4:16
mveDave Kreskowiak25-Oct-12 4:16 
GeneralRe: outlook profile information Pin
newdolby200525-Oct-12 4:49
newdolby200525-Oct-12 4:49 
GeneralRe: outlook profile information Pin
Pete O'Hanlon25-Oct-12 5:05
mvePete O'Hanlon25-Oct-12 5:05 
GeneralRe: outlook profile information Pin
Richard MacCutchan25-Oct-12 6:12
mveRichard MacCutchan25-Oct-12 6:12 
QuestionAddRange and RemoveRange inconsistencies Pin
n.podbielski23-Oct-12 22:33
n.podbielski23-Oct-12 22:33 
Method AddRange takes IEnumerable collection it makes perfect sense since we want to add second collection to our first list.
http://msdn.microsoft.com/en-us/library/z883w3dc%28v=vs.80%29.aspx[^]
But when you want to remove some items from collection that are in second collection (scenarion 2 grids with items and one bucket of possibilities for them, and cannot have shared items, available grid and items selected by user grid), there is RemoveRange method, right? No this method takes 2 ints
http://msdn.microsoft.com/en-US/library/y33yd2b5%28v=vs.80%29.aspx[^]. Odd.
RemoveAll? This for instance takes predicate for items. http://msdn.microsoft.com/en-US/library/wdka673a%28v=vs.80%29.aspx[^]So why this is called RemoveAll? Since it's takes predicate as Where takes why this is not called RemoveWhere? From RemoveAll I would expect behavior like Clear method, but we don't need another one like that.
Method Remove takes item and removes it from collection. So why there is not method that takes range? How many times you have to remove items by range of indexes from collection (RemoveRange)? It would have to be ordered list to make it usable at some point since when you get index and number of items to remove you have to order and iterate it and since you do that why not just remove those items already? So in the end I using AddRange and extension method RemoveRange that iterates and calls Remove on second collection. Am I allone on that?
No more Mister Nice Guy... >: |

AnswerRe: AddRange and RemoveRange inconsistencies Pin
Eddy Vluggen23-Oct-12 23:40
professionalEddy Vluggen23-Oct-12 23:40 
Questiongps feature Pin
johnson_shalom22-Oct-12 23:31
johnson_shalom22-Oct-12 23:31 
AnswerRe: gps feature Pin
Pete O'Hanlon23-Oct-12 0:00
mvePete O'Hanlon23-Oct-12 0:00 
QuestionIndex was out of range. Must be non-negative and less than the size of the collection. Pin
k3nny1222-Oct-12 16:03
k3nny1222-Oct-12 16:03 
AnswerRe: Index was out of range. Must be non-negative and less than the size of the collection. Pin
Bernhard Hiller22-Oct-12 20:48
Bernhard Hiller22-Oct-12 20:48 
AnswerRe: Index was out of range. Must be non-negative and less than the size of the collection. Pin
Richard MacCutchan22-Oct-12 22:31
mveRichard MacCutchan22-Oct-12 22:31 
GeneralRe: Index was out of range. Must be non-negative and less than the size of the collection. Pin
k3nny1223-Oct-12 12:15
k3nny1223-Oct-12 12:15 
GeneralRe: Index was out of range. Must be non-negative and less than the size of the collection. Pin
Richard MacCutchan23-Oct-12 21:56
mveRichard MacCutchan23-Oct-12 21:56 
GeneralRe: Index was out of range. Must be non-negative and less than the size of the collection. Pin
Pete O'Hanlon23-Oct-12 22:17
mvePete O'Hanlon23-Oct-12 22:17 
AnswerRe: Index was out of range. Must be non-negative and less than the size of the collection. Pin
k3nny1224-Oct-12 10:10
k3nny1224-Oct-12 10:10 
GeneralRe: Index was out of range. Must be non-negative and less than the size of the collection. Pin
Richard MacCutchan24-Oct-12 21:56
mveRichard MacCutchan24-Oct-12 21:56 
QuestionInterface Pin
Ranjalkar Raghavendra22-Oct-12 0:01
Ranjalkar Raghavendra22-Oct-12 0:01 
AnswerRe: Interface Pin
Richard MacCutchan22-Oct-12 0:12
mveRichard MacCutchan22-Oct-12 0:12 
AnswerRe: Interface Pin
Eddy Vluggen22-Oct-12 0:13
professionalEddy Vluggen22-Oct-12 0:13 
QuestionAbstract Class Pin
Ranjalkar Raghavendra22-Oct-12 0:00
Ranjalkar Raghavendra22-Oct-12 0:00 
AnswerRe: Abstract Class Pin
Mayank_Gupta_26-Oct-12 1:07
professionalMayank_Gupta_26-Oct-12 1:07 
Questiontext search in tfs at root level Pin
Member 391904919-Oct-12 10:58
Member 391904919-Oct-12 10:58 

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.