Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You need to add a method body for </p> <pre><code>public ObjectComparer(string compareField, string direction); </code></pre> <p>I'd suggest that you do some research into abstract classes. <a href="http://msdn.microsoft.com/en-us/library/sf985hc5%28VS.71%29.aspx" rel="nofollow noreferrer">MSDN</a> is a good starting point, but a quick Google search will find you many sources of in depth information.</p> <hr> <p>Since the question has been reasonably answered I'll add some extra comments as the code you have been given looks quite broken.</p> <pre><code>using System.Web; using System.Runtime.CompilerServices; </code></pre> <p>These seem to be a odd couple of namespaces to be using in a comparer (especially the second), is this class from a larger file and you haven't got all of it, or is it just left over legacy code?</p> <hr> <pre><code>public ObjectComparer(string compareField, string direction); </code></pre> <p>I'm guessing the constructor should be setting up the properties like this?</p> <pre><code>public ObjectComparer(string compareField, string direction) { CompareField = compareField; Direction = direction; } </code></pre> <hr> <pre><code>public string Direction { get { return compareField; } set { compareField = value;} } </code></pre> <p>I think this should have it's own backing field. Seems strange that it will always be the same as CompareField.</p> <hr> <p>I don't mean to be rude, but just getting past that error won't make this class work. You really need to understand what it is you are trying to do and how a class like this may help you do it. (If you know all this and just didn't understand the error then I apologise)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload