Tag Archives: reflection

Generics With Type Uknown At Compile Time

Tweet The following is an example of a service containing both generic method calls and generic types. public interface IContainer<T> { IEnumerable<IProperty<T>> Properties { get; } } public interface IPropertyService { IContainer<T> GetProperties<T>(string propertyCode); } Now suppose that you don’t … Continue reading

Posted in .NET, C# | Tagged , , | Leave a comment