public static Glue Parse(SqlString s) { if (s.IsNull) { return(Null); } else { string[] values = s.Value.Split(@"/".ToCharArray()); Glue glue = new Glue(); glue.m_Price = Double.Parse(values[0]); glue.m_Radius = int.Parse(values[1]); glue.m_Height = int.Parse(values[2]); if (!glue.Validate()) { throw new ArgumentException("Invalid values!"); } return(glue); } }