public DCP[] GetParameters() { if (string.IsNullOrWhiteSpace(this.Parameters)) { return(null); } string[] parts = Parameters.Split(','); foreach (var part in parts) { if (!string.IsNullOrWhiteSpace(part)) { string error; var p = DCP.Create(part, out error); if (p == null) { Debug.LogError("Debug command param parse error: '{0}'".Form(error)); } else { temp.Add(p); } } } var final = temp.ToArray(); temp.Clear(); return(final); }