- public bool deserialize_from_string(string data) {
- bool good = false;
- // call parser to build an array of string of parts
- string[] values = CdlParser.ParseLine(data);
- // check length of array
- if (13 == values.length) {
- // parse parts into this
- name = values[0];
- for (int i = 0; i < 10; ++i) {
- bands[i] = values[i + 1].to_double();
+ public bool deserialize_from_string(string data) {
+ bool good = false;
+ // call parser to build an array of string of parts
+ string[] values = CdlParser.ParseLine(data);
+ // check length of array
+ if (13 == values.length) {
+ // parse parts into this
+ name = values[0];
+ for (int i = 0; i < 10; ++i) {
+ bands[i] = values[i + 1].to_double();
+ }
+ good = true;