public override string SerializeToString(object obj)
{
IWeekDay ds = obj as IWeekDay;
if (ds != null)
{
string value = string.Empty;
if (ds.Offset != int.MinValue)
value += ds.Offset;
value += Enum.GetName(typeof(DayOfWeek), ds.DayOfWeek).ToUpper().Substring(0, 2);
return Encode(ds, value);
}
return null;
}