You need to add a method body for
public ObjectComparer(string compareField, string direction);
I suggest you do some research on abstract classes. MSDN is a good starting point, but a quick Google search will find many sources of detailed information.
Since the question was reasonably answered, I will add additional comments, since the code you received looks pretty broken.
using System.Web; using System.Runtime.CompilerServices;
It seems that this is an odd pair of namespaces to be used in comparison (especially the second one), is this class from a larger file and you donโt have it, or is it just left over the old code?
public ObjectComparer(string compareField, string direction);
I assume that the constructor should tune properties like this?
public ObjectComparer(string compareField, string direction) { CompareField = compareField; Direction = direction; }
public string Direction { get { return compareField; } set { compareField = value;} }
I think this should have its own support field. It seems strange that it will always be the same as CompareField.
I donโt want to be rude, but just passing this error will not make this class work. You really need to understand exactly what you are trying to do, and how such a class can help you do it. (If you know all this and just did not understand the mistake, I apologize)