string class : PeelDQ() method
Returns a string that removed the double quotes at the beginning and end of the caller.
|string||A string that removed the double quotes at the beginning and end.|
string org = "".DQ + "abcbcDDDDDDcbabb" + "".DQ; // org is "abcbcDDDDDDcbabb".
string result = org.PeelDQ(); // result is abcbcDDDDDDcbabb.
Double quotes were removed from the string enclosed in double quotes.
If the caller is not enclosed in double quotes, it returns the same string as the caller.
If there are double quotes only at the beginning or end, it returns the same string as the caller.
Even if it is surrounded by multiple double quotes, only double quotes at the beginning and end will be removed.
Links for reference