NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error CS0631

Indexers can't have ref or out parameters

The declaration for an indexer property cannot include the use of ref or out.

The following sample generates CS0631:

public class MyClass {
   public int this[ref int i] {   // CS0631
   // try the following line instead
   // public int this[int i] {
      get {
         return 0;
      }
   }
}

public class MyClass2 {
   public static void Main() {
   }
}