string.FirstWord()

string GetFirstWord(string target) => Regex.Match(target, @"^([\w]+)").Value;

Sending JSON strings with RestSharp

var restClient = new RestClient("http://mybaseaddress.com") var restRequest = new RestRequest("POST"); restRequest.Resource = "myendpoint"; restRequest.AddParameter("application/json", "{\"Some\":\"Json\"}", ParameterType.RequestBody); var response = restClient.Execute(restRequest);

Сopy file from embedded resource

www.000webhost.com