I have the following class, and I'm trying to create an interface for this. However, when I try to refactor in VS2010. I get a message that: Failed to retrieve. The type does not contain members that can be retrieved in the interface.
Is this related to my definition of a class and / or method as static? What I need to be able to get this data without creating an instance so that why I made it all static.
public static class DataSourceService { public static IEnumerable<DataSource> GetDataSources() { return new[] { new DataSource { Value = "0001", Text = "Development" }, new DataSource { Value = "0002", Text = "Production" } }; }
}
source share