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 CS0117

'type' does not contain a definition for 'function'

A call was made to a method that does not exist for the data type. This can also happen when a class name and its enclosing namespace name are the same and when a qualified method is called.

The following sample generates CS0117:

namespace x {
   public class a {
      public static void Main() {
         int i;
         i = i.get();   // CS0117, no get method on an int
      }
   }
}

When using indexed properties, it is not necessary to use the Item specifier:

using System;
using System.Collections;
class Test {
   public static void Main() {
      ArrayList al = new ArrayList();
      al.Add( new Test() );
      al.Add( new Test() );
      Console.WriteLine("First Element is {0}", al.Item[0]);   // CS0117
      // try the following line instead
      // Console.WriteLine("First Element is {0}", al.[0]);
   }
}