Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

replace index in string c#

using System.Text;
var theString = "ABCDEF";
var sb = new StringBuilder(theString);
sb[2] = "r" //replace letter at index 2 with "r"
theString = sb.ToString(); //theString: "ABrDEF"
Comment

PREVIOUS NEXT
Code Example
Csharp :: C# type cast float to string 
Csharp :: c# get array subarray 
Csharp :: how to install jdk on linux manjaro 
Csharp :: bitmap to imagesource c# 
Csharp :: how to remove vowels from a sttring using regex c# 
Csharp :: The server requested authentication method unknown to the client 
Csharp :: vscode not showing errors c# 
Csharp :: c# is in array 
Csharp :: c# convert string to url encoding 
Csharp :: c# enum to int array 
Csharp :: press key run code unity c# 
Csharp :: godot c# export variables 
Csharp :: unity get perlin noise 3d 
Csharp :: asp.net core get root url in view 
Csharp :: how to import datagridview to datatable in c# 
Csharp :: read excel to object c# 
Csharp :: unity string lowercase 
Csharp :: how to get the transform of an object in unity 
Csharp :: dotnet call webapi 
Csharp :: array sort c# 
Csharp :: c# isarray 
Csharp :: unity find object by name 
Csharp :: c# multi assignment 
Csharp :: new ienumerable 
Csharp :: HCF of list of number 
Csharp :: split string c# 
Csharp :: set rotation unity 
Csharp :: disable button in android studio 
Csharp :: increase value in dictionary against a key in c# 
Csharp :: modulus program 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =