g ToString()
    {
        return string.Format("[CreateTaskInput &gt; AssignedPersonId = {0}, Description = {1}]", AssignedPersonId, Description);
    }
}</pre>

<p>Here, Description is marked as <strong>Required</strong>. You can use any <a href="http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.aspx" target="_blank"> Data Annotation attributes</a> here. If you want to make some custom validation, you can implement <strong>ICustomValidate</strong> as I implemented in <strong>Up