Click here to Skip to main content
15,888,171 members
Home / Discussions / C#
   

C#

 
QuestionHow to find references of a Property in the class through code? similar to 'Find All References' in Visual Studio Environment. Pin
Sid_ScienceKid1-May-15 3:18
Sid_ScienceKid1-May-15 3:18 
AnswerRe: How to find references of a Property in the class through code? similar to 'Find All References' in Visual Studio Environment. Pin
Eddy Vluggen1-May-15 3:29
professionalEddy Vluggen1-May-15 3:29 
GeneralRe: How to find references of a Property in the class through code? similar to 'Find All References' in Visual Studio Environment. Pin
Sascha Lefèvre1-May-15 3:38
professionalSascha Lefèvre1-May-15 3:38 
GeneralHow to read an array from 1 class to another Pin
yikes12330-Apr-15 19:21
yikes12330-Apr-15 19:21 
GeneralRe: How to read an array from 1 class to another Pin
Daniel Pfeffer30-Apr-15 20:42
professionalDaniel Pfeffer30-Apr-15 20:42 
GeneralRe: How to read an array from 1 class to another Pin
Richard MacCutchan30-Apr-15 21:16
mveRichard MacCutchan30-Apr-15 21:16 
GeneralRe: How to read an array from 1 class to another Pin
David A. Gray3-May-15 10:12
David A. Gray3-May-15 10:12 
Questionc sharp - Confusing string manipulation Pin
Member 1115178230-Apr-15 7:31
Member 1115178230-Apr-15 7:31 
Ok i am really struggling with this, if any one can help it'd be appreciated (lanuguage c#):

Example string:
[[[['1'],'2'],'3'],[[[[[[['0015,15','bob'],'99'],'98'],'97','96'],'95'],[[[['Ra','sa','pa'],'01-01-2001','bob ',''],'']],'0045',''],'1',[['300','80','Ends, Here','0015',''],['300','84','Start','0015','']],'','0045','N','0045','']]

Requirement:
I need a function to split the above string into some sort of indexable array/tree using:
[] as start/stop node delimiters
, as a field delimiter within the node

The string is dynamic and could have multiple values in each child and have different amounts of childs/subchildren. I see this as being similar to parsing xml/creating a tree but i may be wrong....

Example usage (using above string):
if i were to reference node 1,3 i would return a '1' ([[[['1']..]..]..]
if i were to reference node 1,2,4 i would return '97','96'[ [,,[,,[,,]]] [[[[[[[..]..]..]'97','96']..]..]..] ..]

So basically i need something that will dynamically create the tree structure that i can ref through co-ordinates.

If your wondering - this is a webserver response so i have no control over what is returned, this is needed to allow me to identify a set of values for the applicable page section.


Any help appreciated - i am especially after code that i can copy paste to get a solution
AnswerRe: c sharp - Confusing string manipulation Pin
Matt T Heffron30-Apr-15 8:17
professionalMatt T Heffron30-Apr-15 8:17 
GeneralRe: c sharp - Confusing string manipulation Pin
David A. Gray1-May-15 11:13
David A. Gray1-May-15 11:13 
GeneralRe: c sharp - Confusing string manipulation Pin
Matt T Heffron1-May-15 11:31
professionalMatt T Heffron1-May-15 11:31 
GeneralRe: c sharp - Confusing string manipulation Pin
David A. Gray1-May-15 19:08
David A. Gray1-May-15 19:08 
QuestionCan any one help me to convert amatlab code to c# ,please? Pin
Member 1147426930-Apr-15 5:41
Member 1147426930-Apr-15 5:41 
AnswerRe: Can any one help me to convert amatlab code to c# ,please? Pin
OriginalGriff30-Apr-15 5:58
mveOriginalGriff30-Apr-15 5:58 
AnswerRe: Can any one help me to convert amatlab code to c# ,please? Pin
Eddy Vluggen30-Apr-15 5:58
professionalEddy Vluggen30-Apr-15 5:58 
GeneralRe: Can any one help me to convert amatlab code to c# ,please? Pin
Kenneth Haugland30-Apr-15 6:06
mvaKenneth Haugland30-Apr-15 6:06 
GeneralRe: Can any one help me to convert amatlab code to c# ,please? Pin
Eddy Vluggen30-Apr-15 8:51
professionalEddy Vluggen30-Apr-15 8:51 
GeneralRe: Can any one help me to convert amatlab code to c# ,please? Pin
Member 1147426930-Apr-15 11:01
Member 1147426930-Apr-15 11:01 
GeneralRe: Can any one help me to convert amatlab code to c# ,please? Pin
Eddy Vluggen30-Apr-15 11:22
professionalEddy Vluggen30-Apr-15 11:22 
GeneralRe: Can any one help me to convert amatlab code to c# ,please? Pin
Member 1147426930-Apr-15 11:37
Member 1147426930-Apr-15 11:37 
GeneralRe: Can any one help me to convert amatlab code to c# ,please? Pin
Eddy Vluggen30-Apr-15 21:39
professionalEddy Vluggen30-Apr-15 21:39 
AnswerRe: Can any one help me to convert amatlab code to c# ,please? Pin
Kenneth Haugland30-Apr-15 6:03
mvaKenneth Haugland30-Apr-15 6:03 
Questionproblem in code Port.ReadTo Pin
hasan hadi30-Apr-15 4:46
hasan hadi30-Apr-15 4:46 
Questionlocomp instrumentation Pin
hasan hadi30-Apr-15 4:11
hasan hadi30-Apr-15 4:11 
AnswerRe: locomp instrumentation Pin
Eddy Vluggen30-Apr-15 4:17
professionalEddy Vluggen30-Apr-15 4:17 

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.