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 CS0580

Too many unnamed arguments to attribute 'attribute'

Some attributes only take one argument. You cannot pass multiple arguments in a comma-separated list.

The following sample generates CS0580:

using System;

public class bug {
   [name("abc", "def")]
   // try the following line instead
   // [name("abc")]
   public int this [int index] {
      get { 
         return 0; 
      }
   }

   public static void Main() {
   }
}