open-generics Questions
4
Solved
Please consider the following pseudo-code trying to define a higher-order type function with a function-typed parameter M<?>:
type HigherOrderTypeFn<T, M<?>> = T extends (...)
?...
Dukas asked 31/1, 2020 at 16:6
2
Solved
I'm new to Autofac (not to DI). Here is the situation:
I have these interfaces:
public interface IQuery<out TResult> : IQuery { }
public interface IQueryHandler<in TQuery, out TResult&g...
Toluene asked 26/5, 2013 at 9:36
4
Solved
How do I get all types that implementing a specific open generic type?
For instance:
public interface IUserRepository : IRepository<User>
Find all types that implement IRepository<>...
Baudelaire asked 27/12, 2011 at 13:57
1
Solved
I've recently upgraded from Automapper 4.2.1 to 5.1.1 and am having issues with a previously valid mapping involving open generics.
Previously, within the automapper configuration, I had the follo...
Awe asked 16/8, 2016 at 19:49
2
Solved
I'm trying to get started with SimpleInjector as an IOC Container and up to now I'm pretty happy with it. But right now I'm stuck on a problem I can't solve. I searched on SO and in the documentati...
Heisenberg asked 27/6, 2014 at 12:46
5
Solved
I'm trying to have a List of open generic types. Is it possible to have something like:
public class MessageProcessor
{
private IDictionary<Type, IMessageHandler<>> _messageHandlers
...
Perineuritis asked 16/5, 2014 at 15:2
2
Solved
I have the following two classes:
public class KeyedEntity<TEntity>
{
internal KeyedEntity() { }
public Identifier Key { get; set; }
public TEntity Entity { get; set; }
}
public static ...
Huntlee asked 26/11, 2013 at 5:50
2
Solved
I'm trying to apply autofac decorator support feature to my scenario with no success.
It looks like in my case it doesn't assign the name to the registrations properly.
Is there a way to register ...
Therapsid asked 15/11, 2011 at 17:42
2
I have an object model that uses Open Generics (Yes, yes, now I have two problems; that's why I'm here :) :-
public interface IOGF<T>
{
}
class C
{
}
class D
{
readonly IOGF<C> _ogf...
Peru asked 10/4, 2012 at 16:14
1
Solved
I am able to register FluentValidation AbstractValidators using a FluentValidatorFactory. However, it doesn't feel right, because not all of the IoC container registrations happen during bootstrap ...
Punt asked 2/4, 2012 at 21:32
3
Solved
Say I have the following interface for exposing a paged list
public interface IPagedList<T>
{
IEnumerable<T> PageResults { get; }
int CurrentPageIndex { get; }
int TotalRecordCount ...
Scornik asked 8/7, 2011 at 10:28
4
Solved
I was going through Asp.Net MVC lesson and learned that, for a method to qualify as an action for a controller,
It must not have an "open generic type"
I understand generics somewhat and...
Ubiquitarian asked 31/1, 2010 at 20:2
1
© 2022 - 2024 — McMap. All rights reserved.