private IsValid ( string propertyName ) : string | ||
propertyName | string | |
return | string |
private string IsValid(string propertyName)
{
if (propertyName == "LicenseUrl")
{
if (RequireLicenseAcceptance && LicenseUrl == null)
{
return "Enabling license acceptance requires a license url.";
}
}
string error;
_propertyErrors.TryGetValue(propertyName, out error);
return error;
}