Recent content by pairofstrings

  1. pairofstrings

    C# Generic Interfaces and Covariance

    Thanks. I used multiple interfaces to achieve the desired result.
  2. pairofstrings

    C# Generic Interfaces and Covariance

    I found the code on ChatGPT: public interface IContainer<out T> { void Add(T item); T Get(); }
  3. pairofstrings

    C# Generic Interfaces and Covariance

    I need both covariance and contravariance..
  4. pairofstrings

    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...
  5. pairofstrings

    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.
  6. pairofstrings

    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.
  7. pairofstrings

    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?
  8. pairofstrings

    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?
  9. pairofstrings

    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...
  10. pairofstrings

    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...
  11. pairofstrings

    I Questions about these Trigonometry Graphs involving sin() and cos()

    Thanks. So, I need to do Analysis first?
  12. pairofstrings

    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...
  13. pairofstrings

    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!
  14. pairofstrings

    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'...
  15. pairofstrings

    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## . . .
Back
Top