public static sbyte[] GetStringEnvelopeData() { var str = PlatformUtils.GetClipboardString(); if (!string.IsNullOrEmpty(str)) { var values = new List <sbyte>(); var splits = str.Split(Seperators, StringSplitOptions.RemoveEmptyEntries); foreach (var split in splits) { if (int.TryParse(split, out var i)) { values.Add((sbyte)Utils.Clamp(i, sbyte.MinValue, sbyte.MaxValue)); } else { return(null); } } return(values.Count > 0 ? values.ToArray() : null); } return(null); }