コード例 #1
0
ファイル: People.cs プロジェクト: behoyh/csharp-proj
        /** USE LINQ for the following 2 Methods **/

        public dynamic Originals()
        {
            /** Return a list of unique based on Fname & Lname **/
            return(from e in this where (Unique.Contains(e.Id)) select e);
        }
コード例 #2
0
ファイル: People.cs プロジェクト: behoyh/csharp-proj
 public dynamic Duplicates()
 {
     /** Return a list of duplicates (based on Originals) **/
     return(from e in this where (!Unique.Contains(e.Id)) select e);
 }