public Field(FieldGroup group = null) { this.isValidFunctionParams = (Object param) => { return(this.isValidFunction()); }; if (typeof(T) == typeof(int)) { this.value = (T)Convert.ChangeType(0, typeof(T)); } else if (typeof(T) == typeof(string)) { this.value = (T)Convert.ChangeType("", typeof(T)); } }
public Field(T val, FieldGroup group = null) { this.isValidFunctionParams = (Object param) => { return(this.isValidFunction()); }; this.value = val; }