private static void TrySetLongProperty(Action <long?> propertySetter, string record) { if (W3CParseUtils.RecordContainsData(record)) { propertySetter(long.Parse(record)); } }
private static void TrySetIntProperty(Action <int?> propertySetter, string record) { if (W3CParseUtils.RecordContainsData(record)) { propertySetter(int.Parse(record)); } }
private static void TrySetStringProperty(Action <string> propertySetter, string record) { if (W3CParseUtils.RecordContainsData(record)) { propertySetter(record.Replace("\r", string.Empty).Replace("\n", string.Empty)); } else { propertySetter(string.Empty); } }