Replaces single quotes with double quotes - CSharp System

CSharp examples for System:String Replace

Description

Replaces single quotes with double quotes

Demo Code


using System.Text.RegularExpressions;
using System.Reflection;
using System.Linq.Expressions;
using System.Linq;
using System.Collections.Generic;
using System.Collections;
using System;/* ww  w .j a  va2  s  .com*/

public class Main{
        /// <summary>
        /// Replaces single quotes with double quotes
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public static string Quotify(this string input)
        {
            return input.Replace('\'', '"');
        }
}

Related Tutorials