private static bool ScanConditionalSource(LSAgent agent) { if (System.Object.ReferenceEquals(agent, Source)) { return(false); } if ((Source.GetAllegiance(agent) & TargetAllegiance) == 0) { return(false); } if ((agent.Platform & TargetPlatform) == 0) { return(false); } return(true); }
private static bool ScanConditionalSource(LSAgent agent) { if (System.Object.ReferenceEquals(agent, Source)) { return(false); } if (TargetAllegiance != AllegianceType.Any) { if (Source.GetAllegiance(agent) != TargetAllegiance) { return(false); } } if (TargetPlatform != PlatformType.Any) { if (agent.Platform != agent.Platform) { return(false); } } return(true); }