|
using System;
|
|
namespace SPSolutions.SharePoint.Administration
|
|
{
|
|
public class CommandLineParameterIntegerValidator : CommandLineParameterValidator
|
|
{
|
|
public override bool Validate(string value)
|
|
{
|
|
int num;
|
|
return !string.IsNullOrEmpty(value) && int.TryParse(value, out num);
|
|
}
|
|
}
|
|
}
|