public void SetType(string type) { if (!string.IsNullOrEmpty(type)) this.Type = Type.GetType(type); else this.Type = typeof(string); }