What hid under the bed...
time to read 1 min | 118 words
public class ARValidatingAuthorizationRepository<TIEntityType, TIUsersGroup, TIEntitiesGroup, TIOperation, TIEntityReference, TIPermission> : RhinoAuthorizationRepository< TIEntityType, TIUsersGroup, TIEntitiesGroup, TIOperation, TIEntityReference, TIPermission> where TIEntityType : class, IEntityType, new() where TIUsersGroup : class, IUsersGroup, new() where TIEntitiesGroup : class, IEntitiesGroup, new() where TIOperation : class, IOperation, new() where TIEntityReference : class, IEntityReference, new() where TIPermission : class, IPermission, new()
Comments
We might have to revoke your Generics License for that one.
Holy Generics, Batman!!!! :P
whoa :D
What's even more funny, all types have an interface, so the method also could have just used the interfaces and it would still be a generic method
Frans: Except that interfaces don't allow constructor definitions, but the generics constraints can demand that the type have a zero-argument public ctor.
Maybe a new smell should be named... "Generics explosion" :)
Vladan
Ya know, thats exactly the reason i never got into the C++ STL, but strangely i have less of a problem with this...
I don't want to play oneupsmanship here, but as soon as I finished this code I knew I needed to post this here:
Good grief.
You do this kind of stuff on purpose?
Comment preview