Advertisement
Guest User

Untitled

a guest
Feb 26th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.08 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace toman_ZP4CS_02
  8.  
  9. {
  10.     public class Tuple
  11.     {
  12.         //private int[] ntice;
  13.  
  14.         public Tuple(List<object> ntice)
  15.         {
  16.            // this.ntice = ntice;
  17.         }
  18.  
  19.         public int length()
  20.         {
  21.             return this.length();
  22.         }
  23.         /*
  24.         public static bool operator == (Tuple t1, Tuple t2)
  25.         {
  26.             if (t1.length() != t2.length())
  27.             {
  28.                 return false;
  29.             }
  30.             for (int i = 0; i < t1.length(); i++)
  31.             {
  32.                
  33.             }
  34.             return true;
  35.         }
  36.  
  37.         public static bool operator !=(Tuple t1, Tuple t2)
  38.         {
  39.             return true;
  40.         }*/
  41.     }
  42.  
  43.     class Program
  44.     {
  45.  
  46.         static void Main(string[] args)
  47.         {
  48.  
  49.             Tuple t = new Tuple({ 1, 2, 3});
  50.             //Tuple[] tuples = { new Tuple({ 5, 8, 2 }), new Tuple({ 3, 7, 9 }),new Tuple({ 7, 5, 9 })};
  51.         }  
  52.     }
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement