public static void SetFixedLengthRecordField(this ChoIniFile @this, string fieldName, string value) { ChoGuard.ArgumentNotNullOrEmpty(fieldName, "FieldName"); fieldName = fieldName.Trim(); @this.OpenFixedLengthRecordFieldSection().SetValue(fieldName, value); }
public static string GetFixedLengthRecordField(this ChoIniFile @this, string fieldName) { ChoGuard.ArgumentNotNullOrEmpty(fieldName, "FieldName"); fieldName = fieldName.Trim(); return(@this.OpenFixedLengthRecordFieldSection().GetValue <string>(fieldName)); }