Yes, I did but the search says that it is not possible to have covariance and contravariance in the single interface like this:
public interface IContainer<out T>
{
void Add(T item);
T Get();
}
If I remove the following statement then it works fine:
void Add(T item);
But I need both...
Hi. I have the following code:
public interface ICovariance<out T>
{
void Add(T item);
T Get();
}
How to remove the compile-time error without changing the code of method declaration and by only changing the interface signature?
The error is in:void Add(T item);
Thanks.
How to put a button on the top right corner without using any library? Can you describe hardware (display technology) mechanism with little pseudocode that puts a button right up there?
Hi.
Sorry for not using math words. By saying 2D and 3D graphing system I mean 2D and 3D coordinate system.
In GeoGebra when I write random equation: ##x^2y^2z+x^2yz^2+xyz=1## I am getting a blank graph and sometimes like this (vertical axis is y-axis):
My question is that, is it possible to...
Hi.
If I write any random equation in 2D then the graph undoubtedly shows up on that 2D graphing system.
Equation example: ##x^2 y^2 + x^2 y + x y =1##
My question is: if I take the same equation: ##x^2 y^2 + x^2 y + x y =1## and if I manipulate the equation by including another variable...
Hi.
I have two trigonometric equations whose graphs I am trying to understand.
Here are the equations:
1. a sin(x) - b cos(y) = y; a = 2, b = 2
2. a sin(x) + b cos(y) = 1; a = 1, b = 1
My question is why the graphs are the way they are.
What should I do to understand them?
Can anyone...
I understand that 'completing the square' is a technique that solves equations like ##x^2+x-1=0##. There are many equations with higher exponents, and lower exponents, and to solve them there could be techniques that gives me solutions by satisfying those equations. The 'completing the square'...