コード例 #1
0
        public override object DeepCopy()
        {
            ResearchTeam other = (ResearchTeam)MemberwiseClone();

            other.ThemeName          = String.Copy(ThemeName);
            other.Name               = String.Copy(Name);
            other.RegistrationNumber = RegistrationNumber;
            other.Duration           = Duration;
            other.Papers             = Papers.Select(x => (Paper)x.DeepCopy()).ToList();
            other.Members            = Members.Select(x => (Person)x.DeepCopy()).ToList();
            return(other);
        }
コード例 #2
0
ファイル: Author.cs プロジェクト: Pounehsn/WekaFileBuilders
 public double TotalFirstYearCitationsUntil(int year) => Papers
 .Select(
     paper => paper
     .CitedIn
     .Count(
         cite =>
 {
     var minCitedYear = cite.Years.Min();
     return(minCitedYear <= year && (minCitedYear - paper.Years.Max()) <= 1);
 }
         )
     )
 .Sum();