DTSValidationStatus ValidateBooleanProperty(string propertyName, object propertyValue)
 {
     if (propertyValue is bool)
     {
         return(DTSValidationStatus.VS_ISVALID);
     }
     else
     {
         this.PostError(MessageStrings.InvalidPropertyValue(propertyName, propertyValue));
         return(DTSValidationStatus.VS_ISCORRUPT);
     }
 }
 DTSValidationStatus ValidateDelimiterProperty(string propertyName, object propertyValue)
 {
     if (propertyValue is string)
     {
         string value = (string)propertyValue;
         if (value.Length < MaxDelimLength)
         {
             return(DTSValidationStatus.VS_ISVALID);
         }
         else
         {
             this.PostError(MessageStrings.PropertyStringTooLong(propertyName, propertyValue.ToString()));
             return(DTSValidationStatus.VS_ISBROKEN);
         }
     }
     else
     {
         this.PostError(MessageStrings.InvalidPropertyValue(propertyName, propertyValue));
         return(DTSValidationStatus.VS_ISCORRUPT);
     }
 }