Created
November 10, 2016 01:08
-
-
Save bonjin6770/44ca03f2174f57e6c4a674f5f4c25f61 to your computer and use it in GitHub Desktop.
Delete DoubleQuote
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public string DeleteDoubleQuote(string value) { | |
if (value.Substring(0, 1) != @"""") { return value; } | |
if (value.Substring(value.Length - 1) != @"""") { return value; } | |
value = value.Substring(1); // 開始位置の「"」を削除 | |
value = value.Remove(value.Length - 1); // 終了位置の「"」を削除 | |
return value; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment