I\'m hashing a file with one or more hash algorithms.When I tried to parametrize which hash types I want, it got a lot messier than I was hoping.
I again need help by you, this time I struggle with covariance, contravariance, delegates and an simple idea blowing up...
First of, I have read many explanations on SO and blogs about covariance and contravariance and a big thanks goes out to Eric Lippert for producing such a great series on Covariance and Contravariance
I have the following two generic types: interface IRange<T> where T : IComparable<T> interface IRange<T, TData> : IRange<T> where T : IComparable<T>
Yesterday at a seminar the presenter (Peter Sestoft) showed a small java program, with 3 classes, featuring both co-variance and contra-variance. When attempting to compile using javac, the type check
I watched a video about it on Channel 9 but I didn\'t really understand it much. Can someone please give me a simple example about these that\'s easy to understand? After that maybe how it would be u