/// <summary> /// Copy constructor. /// </summary> /// <param name="sourceField">Source field.</param> public Field(Field sourceField) { this.title = sourceField.title; this.value = sourceField.value; this.type = sourceField.type; this.typeString = sourceField.typeString; }
/// <summary> /// Returns the value of a field. /// </summary> /// <returns> /// The value of the field, or <c>null</c> if field is <c>null</c>. /// </returns> /// <param name='field'> /// The field. /// </param> public static string FieldValue(Field field) { return (field != null) ? field.value : null; }