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 CS0607

Classes marked with the attribute attribute must have at least one public instance constructor

A public constructor is required for an attribute class.

The following sample generates CS0607:

using System;
[AttributeUsageAttribute(AttributeTargets.All)]
public class MyAttribute : Attribute {
   MyAttribute() {   // CS0607
   // try the following line instead
   // public MyAttribute() {
   }
   public static void Main() {
   }
}