Click here to Skip to main content
15,886,026 members
Home / Discussions / C#
   

C#

 
GeneralRe: Downloading PDF's from website Pin
Tom Wright22-Oct-09 4:49
Tom Wright22-Oct-09 4:49 
GeneralRe: Downloading PDF's from website Pin
Covean22-Oct-09 5:07
Covean22-Oct-09 5:07 
GeneralRe: Downloading PDF's from website Pin
Tom Wright22-Oct-09 7:20
Tom Wright22-Oct-09 7:20 
GeneralRe: Downloading PDF's from website Pin
Covean22-Oct-09 21:06
Covean22-Oct-09 21:06 
QuestionAmbiguous constructor signatures? Pin
Clive D. Pottinger22-Oct-09 3:41
Clive D. Pottinger22-Oct-09 3:41 
AnswerRe: Ambiguous constructor signatures? Pin
DaveyM6922-Oct-09 4:58
professionalDaveyM6922-Oct-09 4:58 
GeneralRe: Ambiguous constructor signatures? Pin
Keith Barrow22-Oct-09 5:09
professionalKeith Barrow22-Oct-09 5:09 
GeneralRe: Ambiguous constructor signatures? Pin
Clive D. Pottinger22-Oct-09 7:34
Clive D. Pottinger22-Oct-09 7:34 
Thanks guys.

That explains why it acts like it does.


keefb wrote:
The design in the OP needs refactoring [...] unless there is a specific reason for dealing with strings specifically.

In the actual code MyClass is a class that represents some kind of value. The first ctor (MyClass(string initStr)) is used when the initStr holds a formula that needs to be parsed and evaluated to get the value. The second ctor (MyClass(G initVal, bool dummy)) is used when the value is already known, and does not need to be parsed or evaluated. The confusion arose, of course, when the value is a known string.

I will take your recommendation to remove the first ctor into consideration, but at this point, I don't see a way for it work (is MyClass("foo()") a request for the string returned by foo or for the string "foo()"?). In the meantime, I will take it that my "workaround" is not wrong/dangerous/problematic/laughable.

Thanks again.

Clive Pottinger
Victoria, BC

GeneralRe: Ambiguous constructor signatures? Pin
Keith Barrow22-Oct-09 11:46
professionalKeith Barrow22-Oct-09 11:46 
GeneralRe: Ambiguous constructor signatures? Pin
Clive D. Pottinger23-Oct-09 6:31
Clive D. Pottinger23-Oct-09 6:31 
Questionproxy server Pin
Zeyad Jalil22-Oct-09 3:28
professionalZeyad Jalil22-Oct-09 3:28 
QuestionReading grayscale values into Bitmap Pin
econner22-Oct-09 2:33
econner22-Oct-09 2:33 
AnswerRe: Reading grayscale values into Bitmap Pin
stancrm22-Oct-09 2:52
stancrm22-Oct-09 2:52 
QuestionFilter Gridview that are bound to an XML file Pin
Ronni Marker22-Oct-09 2:19
Ronni Marker22-Oct-09 2:19 
AnswerRe: Filter Gridview that are bound to an XML file Pin
stancrm22-Oct-09 2:30
stancrm22-Oct-09 2:30 
GeneralRe: Filter Gridview that are bound to an XML file Pin
Ronni Marker22-Oct-09 2:33
Ronni Marker22-Oct-09 2:33 
GeneralRe: Filter Gridview that are bound to an XML file Pin
stancrm22-Oct-09 2:39
stancrm22-Oct-09 2:39 
GeneralRe: Filter Gridview that are bound to an XML file Pin
Ronni Marker22-Oct-09 2:58
Ronni Marker22-Oct-09 2:58 
GeneralRe: Filter Gridview that are bound to an XML file Pin
Henry Minute22-Oct-09 5:59
Henry Minute22-Oct-09 5:59 
GeneralRe: Filter Gridview that are bound to an XML file Pin
Ronni Marker22-Oct-09 6:15
Ronni Marker22-Oct-09 6:15 
Questionconvert .xls file into image file or word image file Pin
Member 438836022-Oct-09 1:24
Member 438836022-Oct-09 1:24 
AnswerRe: convert .xls file into image file or word image file Pin
Ashfield22-Oct-09 1:30
Ashfield22-Oct-09 1:30 
AnswerRe: convert .xls file into image file or word image file Pin
Wes Aday22-Oct-09 4:06
professionalWes Aday22-Oct-09 4:06 
AnswerRe: convert .xls file into image file or word image file Pin
benjymous22-Oct-09 5:03
benjymous22-Oct-09 5:03 
Questionhaving problem in opening Ms Office files into webBrowser Pin
muhammad_umair22-Oct-09 1:08
muhammad_umair22-Oct-09 1:08 

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.