Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# swap name in string

//Example for name formatting "Wonderland, Alcie" => "Alice Wonderland"
string name = "Wonderland, Alcie";
string[] newName = name.Split(", ");
(newName[0], newName[1])=(newName[1], newName[0]);
name = String.Concat(newName[0]," ", newName[1]);
Comment

PREVIOUS NEXT
Code Example
Csharp :: how to define a function in c# 
Csharp :: power of number 
Csharp :: how to create public variable in c# 
Csharp :: upload file using httpwebrequest c# 
Csharp :: c# datetime blank 
Csharp :: blazor ref to component in if 
Csharp :: how to locate a specific element in a list c# 
Csharp :: dotween sequence 
Csharp :: c# read large file 
Csharp :: c# operator overloading 
Csharp :: C# bitwise operation 
Csharp :: get all classes that extend a class c# 
Csharp :: string to chararray c# 
Csharp :: c# next level script 
Csharp :: c# funtion 
Csharp :: how to get an arrays length in c# 
Csharp :: c# replace multiple characters 
Csharp :: Search for a value into a list in c# 
Csharp :: pause unity game 
Csharp :: C# Bitwise Right Shift 
Csharp :: get connection string from web.config in c# 
Csharp :: Convert Json String to model Class or Object 
Csharp :: c# export datatatble to excel 
Csharp :: class in c# 
Csharp :: ontriggerenter 
Csharp :: c# destroy function...unity 
Csharp :: Printing pattern in c# 
Csharp :: c# get smallest of 3 numbers 
Csharp :: unity werfen mit höhe 
Csharp :: read json from assets c# 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =