protected override void Validate(string value)
{
if(value.Length<=0)
{
throw new InvalidFrameValueException(value,"Invalid value specified for Track frame.");
}
string []parts=value.Split('/');
if(parts.Length>2)
{
throw new InvalidFrameValueException(value,"Only one '/' character should be present in a Track frame.");
}
try
{
int.Parse(parts[0]);
if(parts.Length==2)
{
int.Parse(parts[1]);
}
}
catch(FormatException)
{
throw new InvalidFrameValueException(value,"Invalid value for Track frame.");
}
}