| | |
Dynamic Operator
Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Aug 2008
Posts: 1,162
Reputation:
Solved Threads: 138
Is it possible to have a dynamic operator? I know I could parse it out and find the symbol just wondered if it was possible.
just need to create my own class to do this? or is there somthing i am forgetting
appreciate your help
C# Syntax (Toggle Plain Text)
string aString = "5"; int a = 5; int b = 6; string op = "<"; //want to do something like dynamically without checking the value of op if( a op b) //want to use the same thing like this Int32.TryParse(aString, out a); Operator.TryParse(op, out );
just need to create my own class to do this? or is there somthing i am forgetting
appreciate your help
Custom Application & Software Development
www.houseshark.net
www.houseshark.net
•
•
Join Date: Aug 2008
Posts: 1,162
Reputation:
Solved Threads: 138
I'm not going to do it this way, i just need a quick app put together
i have a testing application that is loading an xml file that has conditional operators in it
rather than doing a switch on the condition string, i wondered if it was possible to use something like i stated up above
i have a testing application that is loading an xml file that has conditional operators in it
C# Syntax (Toggle Plain Text)
<Variable>numIterations</Value> <Condition> < </Condition> <LimitNum>10</LimitNum>
rather than doing a switch on the condition string, i wondered if it was possible to use something like i stated up above
Custom Application & Software Development
www.houseshark.net
www.houseshark.net
•
•
Join Date: Aug 2008
Posts: 1,162
Reputation:
Solved Threads: 138
yeh thats what i'll do, just trying to see if there was some trickery that i had forgot
thanks jugortha
thanks jugortha
Custom Application & Software Development
www.houseshark.net
www.houseshark.net
![]() |
Similar Threads
- get length of a dynamic array (C++)
- works for static need help to make it dynamic (C++)
- Dynamic Array, Writing to CSV, Floating Point ?'s (C)
- dynamic array of structures problem (C++)
- Help w/ dynamic list funtction definitions (C++)
- Dynamic memory allocation homework (C++)
- Mode 13 graphics,Problem with io streams and new operator (C++)
Other Threads in the C# Forum
- Previous Thread: pay for c# project help
- Next Thread: Good Book for beginners in C#
Views: 721 | Replies: 5
| Thread Tools | Search this Thread |
Tag cloud for C#
.net access ado.net algorithm array barchart bitmap box broadcast button buttons c# chat check checkbox class client combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees development draganddrop drawing encryption enum event excel file files form format forms ftp function gdi+ httpwebrequest image index input install label list listbox listener login mandelbrot math mouseclick mysql networking object operator oracle path photoshop picturebox pixelinversion post prime programming radians regex remote remoting resource richtextbox save saving serialization server sleep socket sql statistics stream string tcp text textbox time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml






