private static void LoadColumn(Dbf dbf, XmlReader reader, bool editor) { DbfColumn column = new DbfColumn(); string name = reader["name"]; string str = reader["type"]; if ((name == null) || (str == null)) { Debug.LogError(string.Format("DbfXml.LoadColumn() - failed to load column for DBF {1}", dbf.GetName())); } column.SetName(name); column.SetDataType(EnumUtils.GetEnum <DbfDataType>(str)); if (editor) { bool flag; string str3 = reader["client"]; if ((str3 != null) && bool.TryParse(str3, out flag)) { column.SetClient(flag); } string comment = reader["comment"]; if (comment != null) { column.SetComment(comment); } } dbf.AddColumn(column); }