Click here to Skip to main content
15,119,187 members
Home / Discussions / C#
   

C#

 
GeneralRe: Substitution of Paths in HyperLinkField with File Names Pin
ASPnoob12-Sep-12 10:59
MemberASPnoob12-Sep-12 10:59 
QuestionRetrieve name of Printer using SendMessage Pin
toBeH_S11-Sep-12 23:10
MembertoBeH_S11-Sep-12 23:10 
AnswerRe: Retrieve name of Printer using SendMessage Pin
Rage12-Sep-12 7:40
professionalRage12-Sep-12 7:40 
GeneralRe: Retrieve name of Printer using SendMessage Pin
toBeH_S12-Sep-12 9:33
MembertoBeH_S12-Sep-12 9:33 
GeneralRe: Retrieve name of Printer using SendMessage Pin
Rage12-Sep-12 22:25
professionalRage12-Sep-12 22:25 
GeneralRe: Retrieve name of Printer using SendMessage Pin
toBeH_S16-Sep-12 16:18
MembertoBeH_S16-Sep-12 16:18 
QuestionRandom Permutation Interface Pin
Skippums11-Sep-12 16:58
MemberSkippums11-Sep-12 16:58 
AnswerRe: Random Permutation Interface Pin
Dave Kreskowiak11-Sep-12 18:44
mveDave Kreskowiak11-Sep-12 18:44 
You're trying to modify a collection through the IEnumerable interface. This is something you are expressly forbidden to do as modifying the target of an enumerator invalidates the state of the enumerator.

Since each of these ordered collections is a different implementation, and only has the IEnumerable interface in common, I don't think there is an extension solution.

I think you would have to create new versions of these ordered collection types, inheriting from them so you can manipulate the underlying structures and still maintain the business rules of the parent class. For instance, a List collection, internally, works a bit differently from a Stack and works very differently from LinkedList. Each is going to have to have it's own wrapper implementation.

But, why would you even want to randomly rearrange the objects in a Stack or a LinkedList anyway? I see no productive reason to do so.

AnswerRe: Random Permutation Interface Pin
BillWoodruff12-Sep-12 1:05
mveBillWoodruff12-Sep-12 1:05 
AnswerRe: Random Permutation Interface Pin
Pete O'Hanlon12-Sep-12 1:18
mvePete O'Hanlon12-Sep-12 1:18 
GeneralRe: Random Permutation Interface Pin
Dave Kreskowiak12-Sep-12 3:21
mveDave Kreskowiak12-Sep-12 3:21 
AnswerRe: Random Permutation Interface Pin
BobJanova12-Sep-12 2:17
MemberBobJanova12-Sep-12 2:17 
GeneralRe: Random Permutation Interface Pin
Pete O'Hanlon12-Sep-12 2:27
mvePete O'Hanlon12-Sep-12 2:27 
GeneralRe: Random Permutation Interface Pin
Skippums12-Sep-12 7:41
MemberSkippums12-Sep-12 7:41 
AnswerRe: Random Permutation Interface Pin
PIEBALDconsult12-Sep-12 4:07
professionalPIEBALDconsult12-Sep-12 4:07 
AnswerRe: Random Permutation Interface Pin
Skippums12-Sep-12 8:32
MemberSkippums12-Sep-12 8:32 
GeneralRe: Random Permutation Interface Pin
BillWoodruff13-Sep-12 3:37
mveBillWoodruff13-Sep-12 3:37 
GeneralRe: Random Permutation Interface Pin
PIEBALDconsult13-Sep-12 4:23
professionalPIEBALDconsult13-Sep-12 4:23 
GeneralRe: Random Permutation Interface Pin
PIEBALDconsult13-Sep-12 4:27
professionalPIEBALDconsult13-Sep-12 4:27 
GeneralRe: Random Permutation Interface Pin
Skippums13-Sep-12 8:27
MemberSkippums13-Sep-12 8:27 
Questionconvert xdocument to integer Pin
rachel_m11-Sep-12 13:16
Memberrachel_m11-Sep-12 13:16 
AnswerRe: convert xdocument to integer Pin
Pete O'Hanlon11-Sep-12 13:22
mvePete O'Hanlon11-Sep-12 13:22 
GeneralRe: convert xdocument to integer Pin
rachel_m11-Sep-12 17:04
Memberrachel_m11-Sep-12 17:04 
GeneralRe: convert xdocument to integer Pin
Eddy Vluggen11-Sep-12 21:55
professionalEddy Vluggen11-Sep-12 21:55 
GeneralRe: convert xdocument to integer Pin
rachel_m12-Sep-12 5:44
Memberrachel_m12-Sep-12 5:44 

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.