Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4.  
  5. namespace GenericScale
  6. {
  7. public class EqualityScale<T>
  8. {
  9. private T left;
  10.  
  11. private T right;
  12.  
  13. public EqualityScale(T left,T right)
  14. {
  15. this.left = left;
  16. this.right = right;
  17. }
  18.  
  19. public bool AreEqual()
  20. {
  21. bool result=this.left.Equals(this.right);
  22. return result;
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement