Property shown as Object when a type is specified

Viewed 54

Ok. I'm programing since 15 years now, and I have a really-REALLY weird behavior here where I have a pretty simple class, which expose a property that have a number of results from a private list of my class;

Public ReadOnly Property NumberOfResult() String Integer
  Get
    Return Me.mList.Count()
  End Get
End Property

For an unknown reason, the compiler tells me my property has a return type of Object.

What am I doing wrong?

0 Answers
Related