public static string Validate(this IDataErrorInfo instance) { if (instance == null) { throw new ArgumentNullException(nameof(instance)); } return instance.Error ?? ""; }