Annotations for IEnumerable
Hi
We have created an interface that looks like:
/// <summary>
/// The Reader of the DataLayer
/// </summary>
public interface IDataLayerReader
{
/// <summary>
/// Enumerable Rows
/// </summary>
IEnumerable<IDataLayerReaderRow> Rows { get; }
/// <summary>
/// Close connection of the reader
/// </summary>
void Close();
/// <summary>
/// Indicate if the reader behind have rows
/// </summary>
bool HasRows { get; }
}
And we have multiple classes that implements this interface.
Now when we try to do a foreach on this interface Reshaper is not suggesting/showing the Rows as autocompletion when we write the dot (Image 1).
We have to do a CTRL + space or delete the dot and write it again to show the autocompletion (Image 2).
Is there anyway to annotate or tell Resharper that we are working with a class that have a property thats IEnumable?
Thank you.
Attachment(s):
2.png
1.png
Please sign in to leave a comment.
Hi,
Thanks for the report. I beleive it's a known issue for us when the completion list is not available in the Live Template hotspot: http://youtrack.jetbrains.com/issue/RSRP-329897.
We apologize for the inconvneience.
Thank you!