What is the question mark in the XML attribute?

I'm looking at the WCF documentation on MSDN ( http://msdn.microsoft.com/en-us/library/bb332338.aspx ), and came across this little piece of configuration:

<endpoint name="basicHttpBinding"
    address=""
    binding="basicHttpBinding"
    contract="QuickReturns.StockTrading.ExchangeService.?
        Contracts.ITradeService"/>

      

Can anyone tell me if the question mark is related to WCF or XML attribute line continuation? I haven't found an answer yet.

+2


source to share


2 answers


The question mark is a typo - it shouldn't be there as it is not the valid part of the type name that is specified for the contract.

Since namespaces and types cannot start with a question mark, it is impossible for this configuration to be correct as it could never be a valid CLR type name:



QuickReturns.StockTrading.ExchangeService.?Contracts.ITradeService

      

The question mark is some kind of bug on MSDN (maybe they wanted to add some sort of newline and messed up character - I'm not sure). You can safely delete it and continue.

+1


source


I'm pretty sure this is a placeholder that was inserted by the text editor for the "line break marker". Shouldn't this be, delete? and all the following spaces (including the newline) and you should be fine.



0


source







All Articles