Skip to content

Instantly share code, notes, and snippets.

@bonjin6770
Created November 10, 2016 01:08
Show Gist options
  • Save bonjin6770/44ca03f2174f57e6c4a674f5f4c25f61 to your computer and use it in GitHub Desktop.
Save bonjin6770/44ca03f2174f57e6c4a674f5f4c25f61 to your computer and use it in GitHub Desktop.
Delete DoubleQuote
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