You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Beef currently doesn't support custom indexers defined in interfaces, as shown below:
publicinterfaceIIndexable<T>{
T this[intindex]{get;set;}}publicstaticvoidGet<T>(Tindexable)whereT:IIndexable<float>{// This fails!floatf= indexable[0];}
The same functionality can be achieved using ref T Index(int index); in the interface, but a traditional indexer would probably be preferable to most users.
The text was updated successfully, but these errors were encountered:
Beef currently doesn't support custom indexers defined in interfaces, as shown below:
The same functionality can be achieved using
ref T Index(int index);
in the interface, but a traditional indexer would probably be preferable to most users.The text was updated successfully, but these errors were encountered: