Use string.split:
var combined = "user:pass";
var split = combined.Split(new[]{":"});
var user = split[0];
var password = split[1];
More Related Contents:
- How to create an object during runtime in .net
- How to find just Current time and just day in mvc [closed]
- What is a NullReferenceException, and how do I fix it?
- How to write WinForms code that auto-scales to system font and dpi settings?
- Questions about using Ninject
- UWP Binding in Style Setter not working
- C# WebBrowser Control – Form Submit Not Working using InvokeMember(“Click”)
- out of memory Image.FromFile
- Overhead of a .NET array?
- Alternatives to System.Drawing for use with ASP.NET?
- Understanding floating point problems
- ObservableCollection vs. List
- Graphics.DrawString vs TextRenderer.DrawText?Which can Deliver Better Quality
- Force XmlSerializer to serialize DateTime as ‘YYYY-MM-DD hh:mm:ss’
- How can I show the “Open with” file dialog?
- When should I use the HashSet type?
- ComboBox Dropdown Position
- Process queue with multithreading or tasks
- Total number of items defined in an enum
- Protect .NET code from reverse engineering?
- Entity Framework | Sequence contains more than one matching element
- Read HttpContent in WebApi controller
- string.Empty vs null.Which one do you use?
- Server did not recognize the value of HTTP Header SOAPAction
- How to check if a file is signed in C#? [closed]
- How can I fix the error : “Unreachable Code Detected”
- Extracting Path from OpenFileDialog path/filename
- Memory limitations in a 64-bit .Net application?
- Passing objects by reference vs value
- Net Core: Execute All Dependency Injection in Xunit Test for AppService, Repository, etc