Interface '<interfacename>' cannot be indexed because it has no default property
Index expressions must result in a value whose type is an array, in a value whose type has a set of overloaded default properties, or in a set of overloaded properties. An interface can have only one default method or property. This means that it can either inherit an interface containing a default method or property, or its definition block can contain one method or property that is marked as default.
Error ID: BC30547
- Supply a default property in the interface.
.NET feedback
.NET is an open source project. Select a link to provide feedback: