argument to name attribute must be a valid identifier
Any argument that you pass to the name attribute must be a valid identifier.
The following sample generates CS0633:
using System; public class MonthDays { [name("bad indexer name")] // CS0633 public int this[int iPropIndex] { get { return 0; } set { } } } public class test { public static void Main( string[] args ) { } }