public void setStringValue(String value) {if (!(fieldsData instanceof String)) {throw new IllegalArgumentException("cannot change value type from " + fieldsData.getClass().getSimpleName() + " to String");}if (value == null) {throw new IllegalArgumentException("value must not be null");}fieldsData = value;}
public virtual void SetStringValue(string value){if (!(FieldsData is string)){throw new ArgumentException("cannot change value type from " + FieldsData.GetType().Name + " to string");}FieldsData = value;}