This project is read-only.

Inconsistencies in guidelines

Oct 26, 2010 at 12:48 PM

There's a couple of rules at the top on style.  Those are:

* Don't put multiple statements on a single line, and
* Put braces around single line conditional statements

But then, in the section on implementing the Dispose pattern properly, there's things like:

public void DoSomething()
      if (disposed)
          throw new ObjectDisposedException(...);

       // Now call some native methods using the resource


protected virtual void Dispose(bool disposing)
       // Protect from being called multiple times.
       if (disposed) return;


Thought you might like to know...

Oct 27, 2010 at 2:34 AM

Hello stevedunn

Thank you for pointing out these problems! I have fixed them in this changeset, and updated the doc's download.

Jialiang Ge