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

C#

 
QuestionHow to pass non-remotable objects through AddIn-Pipeline?! Pin
dreiundzwanzig16-Nov-11 23:12
dreiundzwanzig16-Nov-11 23:12 
AnswerRe: How to pass non-remotable objects through AddIn-Pipeline?! Pin
BobJanova17-Nov-11 23:41
BobJanova17-Nov-11 23:41 
General[closed] Re: How to pass non-remotable objects through AddIn-Pipeline?! Pin
dreiundzwanzig21-Nov-11 4:31
dreiundzwanzig21-Nov-11 4:31 
QuestionSpecify order in Type.GetMembers() Pin
AmitDey16-Nov-11 22:32
AmitDey16-Nov-11 22:32 
AnswerRe: Specify order in Type.GetMembers() Pin
Pete O'Hanlon16-Nov-11 22:47
mvePete O'Hanlon16-Nov-11 22:47 
GeneralRe: Specify order in Type.GetMembers() Pin
AmitDey16-Nov-11 22:51
AmitDey16-Nov-11 22:51 
GeneralRe: Specify order in Type.GetMembers() Pin
Pete O'Hanlon16-Nov-11 22:55
mvePete O'Hanlon16-Nov-11 22:55 
AnswerRe: Specify order in Type.GetMembers() Pin
BobJanova16-Nov-11 23:07
BobJanova16-Nov-11 23:07 
There's a few obvious options that come to mind here:

  • First, can you just declare them in the order you want them? GetMembers seems to reliably return the same order, which is declaration order within one type of member (i.e. fields). I'm not sure the Framework guarantees that, though.
  • Add an attribute with a numeric order value, and sort the final list based on that.
  • Have an external list of the names you want in the right order, and iterate through that instead of GetMembers. This has the disadvantage that if you add a field you must remember to add it to this list too.

AnswerRe: Specify order in Type.GetMembers() Pin
BillWoodruff16-Nov-11 23:11
professionalBillWoodruff16-Nov-11 23:11 
QuestionRe: Specify order in Type.GetMembers() Pin
Rob Philpott17-Nov-11 1:23
Rob Philpott17-Nov-11 1:23 
Questionto develop web based helpdesk application (visual studio 2005) Pin
sk_ko16-Nov-11 21:28
sk_ko16-Nov-11 21:28 
AnswerRe: to develop web based helpdesk application (visual studio 2005) Pin
Richard MacCutchan16-Nov-11 21:47
mveRichard MacCutchan16-Nov-11 21:47 
GeneralRe: to develop web based helpdesk application (visual studio 2005) Pin
sk_ko16-Nov-11 22:10
sk_ko16-Nov-11 22:10 
GeneralRe: to develop web based helpdesk application (visual studio 2005) Pin
Pete O'Hanlon16-Nov-11 22:21
mvePete O'Hanlon16-Nov-11 22:21 
GeneralRe: to develop web based helpdesk application (visual studio 2005) Pin
sk_ko16-Nov-11 22:43
sk_ko16-Nov-11 22:43 
GeneralRe: to develop web based helpdesk application (visual studio 2005) Pin
Pete O'Hanlon16-Nov-11 22:52
mvePete O'Hanlon16-Nov-11 22:52 
GeneralRe: to develop web based helpdesk application (visual studio 2005) Pin
Richard MacCutchan16-Nov-11 23:28
mveRichard MacCutchan16-Nov-11 23:28 
QuestionExe Reading Pin
Member 814633716-Nov-11 17:18
Member 814633716-Nov-11 17:18 
AnswerRe: Exe Reading Pin
Richard Andrew x6416-Nov-11 17:22
professionalRichard Andrew x6416-Nov-11 17:22 
GeneralRe: Exe Reading Pin
Mycroft Holmes16-Nov-11 21:53
professionalMycroft Holmes16-Nov-11 21:53 
GeneralRe: Exe Reading Pin
Richard Andrew x6417-Nov-11 3:06
professionalRichard Andrew x6417-Nov-11 3:06 
GeneralRe: Exe Reading Pin
Mycroft Holmes17-Nov-11 11:09
professionalMycroft Holmes17-Nov-11 11:09 
GeneralRe: Exe Reading Pin
Richard Andrew x6417-Nov-11 11:15
professionalRichard Andrew x6417-Nov-11 11:15 
GeneralRe: Exe Reading Pin
Member 814633721-Nov-11 3:06
Member 814633721-Nov-11 3:06 
QuestionImplementing Interfaces Pin
Richard Andrew x6416-Nov-11 16:29
professionalRichard Andrew x6416-Nov-11 16:29 

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.