C
C#17mo ago
Foxtrek_64

❔ Name split considerations

I have a name in the form of First Last. I need to split this into individual first and last name variables in the least internationally destructive way possible. Any considerations or is String.Split() enough?
3 Replies
Angius
Angius17mo ago
The only consideration would be people with more names, or non-hyphenated surnames Take Mark Albert Smith Jr.
Foxtrek_64
Foxtrek_6417mo ago
Fortunately names are always presented without middle names. Titles in our system are considered part of the last name I have lastName = fullName.Substring(firstName.Length).Trim() to account for that
Accord
Accord17mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts
✅ How read text output from already started process?I need to read data from my chess engine and below is my code ```csharp var proc = new Process ❔ a small hint requestedI tried to resolve this LeetCode puzzle https://leetcode.com/problems/binary-tree-level-order-traver❔ How to get specific fields from a Http GET requestI am working with a test API for learning purposes, I am using the following snippet to actually ret✅ beginnerhi, i have a string that is encoded : "rmxffs" and iv gotten a clue, that the letter R decodes to S ✅ School projectcan anyone help how do I create a database in whith which i can work and also how do I make a diffe❔ I need help whit an assignment regrading blogging/ journalingHi, i have just started learning c# and have this assignment were the user can write a blogg/ journa✅ '' does not contain a definition for '' and no accessible extension method '' can be foundI have this data model ``` public class Employee : Pilot { public Employee() { ❔ EF Core many-to-many migration problemsI added a new entity `VesselTransfer` and added two one-to-many relationship to the `Vessel` entity,How do i create a html string that can add paramaters send that html request and store the responsei have a small app that pulls data from our SQL Database. now what i need to do is build a html quer❔ ASP.NET 4.6.1 project with EF 6.4.4 is very slow on the first query to database ..I have ASP.NET 4.6.1 project with entity framework 6.4.4, my first query to database after launchin