I need to replace all quotes in my string to double quotes using a function, but I don't know how to return replaced versions of the strings. I'm new at c# so any help will be appreciated.
here is my code
private void ReplaceAllQuotes(string Name, string Contact, string CallType,
string Reason, string Notes, string State,
string Consultant, string CustNo, string Time,
string SubReason, string AddedBy, string AddedOn,
string UpdatedBy, string UpdatedOn)
{
Name = Name.Replace("'", "\"");
Contact = Contact.Replace("'", "\"");
CallType = CallType.Replace("'", "\"");
Reason = Reason.Replace("'", "\"");
Notes = Notes.Replace("'", "\"");
State = State.Replace("'", "\"");
Consultant = Consultant.Replace("'", "\"");
CustNo = CustNo.Replace("'", "\"");
Time = Time.Replace("'", "\"");
SubReason = SubReason.Replace("'", "\"");
AddedBy = AddedBy.Replace("'", "\"");
AddedOn = AddedOn.Replace("'", "\"");
UpdatedBy = UpdatedBy.Replace("'", "\"");
UpdatedOn = UpdatedOn.Replace("'", "\"");
}