public static List <DADTuple> InputFileReader(string inputFileName) { var output = new List <DADTuple>(); string[] lines = System.IO.File.ReadAllLines(@inputFileName); foreach (string line in lines) { var newTuple = new DADTuple(line); if (!newTuple.IsNull) { output.Add(newTuple); } } return(output); }
public override bool Equals(object obj) { if (obj.GetType().Equals(this.GetType())) { DADTuple other = (DADTuple)obj; if (other.Items != null && other.Items != null) { return(other.Items.SequenceEqual(this.Items)); //HACK: This implies that there are no equal ids in a tuple. } if (other.Items == null && this.Items == null) { return(true); } return(false); } return(base.Equals(obj)); }