Recent content by pairofstrings
-
C# Generic Interfaces and Covariance
Thanks. I used multiple interfaces to achieve the desired result.- pairofstrings
- Post #8
- Forum: Programming and Computer Science
-
C# Generic Interfaces and Covariance
I found the code on ChatGPT: public interface IContainer<out T> { void Add(T item); T Get(); }- pairofstrings
- Post #6
- Forum: Programming and Computer Science
-
C# Generic Interfaces and Covariance
I need both covariance and contravariance..- pairofstrings
- Post #5
- Forum: Programming and Computer Science
-
C# Generic Interfaces and Covariance
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...- pairofstrings
- Post #3
- Forum: Programming and Computer Science
-
C# Generic Interfaces and Covariance
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.- pairofstrings
- Thread
- Code Covariance
- Replies: 7
- Forum: Programming and Computer Science
-
Inversion of Control: OS vs Software Development | Explained
Hi. What is the difference between Inversion of Control in Operating system and IoC in Software Development? Thanks.- pairofstrings
- Thread
- Difference
- Replies: 1
- Forum: Programming and Computer Science
-
Close Button and other types of buttons
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?- pairofstrings
- Post #4
- Forum: Programming and Computer Science
-
Close Button and other types of buttons
Hi. Thanks for taking my question. How to make screen display close button on a window? Does it depend on display technology?- pairofstrings
- Thread
- Replies: 4
- Forum: Programming and Computer Science
-
I Adding 'z' to 2D graph equation
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...- pairofstrings
- Post #4
- Forum: General Math
-
I Adding 'z' to 2D graph equation
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...- pairofstrings
- Thread
- equation
- Replies: 3
- Forum: General Math
-
I Questions about these Trigonometry Graphs involving sin() and cos()
Thanks. So, I need to do Analysis first?- pairofstrings
- Post #3
- Forum: Calculus
-
I Questions about these Trigonometry Graphs involving sin() and cos()
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...- pairofstrings
- Thread
- equations Graphs Trigonometry
- Replies: 3
- Forum: Calculus
-
B Why are the values (-1.618, 0) and (0.618 ,0) solutions for this equation?
Thank you all for the answers. I figured out how to build equations. Thanks for the support!- pairofstrings
- Post #45
- Forum: General Math
-
B Why are the values (-1.618, 0) and (0.618 ,0) solutions for this equation?
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'...- pairofstrings
- Post #38
- Forum: General Math
-
B Finding Online PEMDAS Calculators
If there is PEMDAS then all of the following equations are equivalent to each other? ##x^2+x-y=1## ##x+x^2-y=1## ##-y+x^2+x=1## . . .- pairofstrings
- Post #10
- Forum: General Math