Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public virtual string UnQuote( string quoted ) |
Visual Basic |
---|
Public Overridable Function UnQuote ( _ quoted As String _ ) As String |
Visual C++ |
---|
public: virtual String^ UnQuote( String^ quoted ) |
Parameters
- quoted
- Type: System..::..String
Quoted string
Return Value
Unquoted stringRemarks
This method checks the string quoted to see if it is quoted. If the string quoted is already enclosed in the OpenQuote and CloseQuote then those chars are removed.
After the OpenQuote and CloseQuote have been cleaned from the string quoted then any chars in the string quoted that have been escaped by doubling them up are changed back to a single version.
The following quoted values return these results "quoted" = quoted "quote""d" = quote"d quote""d = quote"d
If this implementation is not sufficient for your Dialect then it needs to be overridden. MsSql2000Dialect is an example of where UnQuoting rules are different.