public List <Staff> FilterByPerformance(List <Staff> staffList, PerformanceLabel performanceLabel) { var filtedStaffList = from s in staffList where s.PerformanceLabel == performanceLabel select s; return(filtedStaffList.ToList()); }
//Filter by Report public void FilterByReport(PerformanceLabel perfLabel) { var filteredByReport = from r in listStaff where r.PerformanceLabel == perfLabel || perfLabel == PerformanceLabel.ALL select r; viewableStaffPerf.Clear(); filteredByReport.ToList().ForEach(viewableStaffPerf.Add); }
public override int GetHashCode() { int hash = 1; if (ResourceName.Length != 0) { hash ^= ResourceName.GetHashCode(); } if (AssetGroup.Length != 0) { hash ^= AssetGroup.GetHashCode(); } if (Asset.Length != 0) { hash ^= Asset.GetHashCode(); } if (FieldType != global::Google.Ads.GoogleAds.V10.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) { hash ^= FieldType.GetHashCode(); } if (Status != global::Google.Ads.GoogleAds.V10.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus.Unspecified) { hash ^= Status.GetHashCode(); } if (PerformanceLabel != global::Google.Ads.GoogleAds.V10.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel.Unspecified) { hash ^= PerformanceLabel.GetHashCode(); } if (policySummary_ != null) { hash ^= PolicySummary.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }