/// <summary> /// Get customized properties of a specified job /// </summary> /// <param name="job">scheduler job</param> /// <param name="propNames">customized property names</param> /// <returns>dictionary of propname, propvalue</returns> internal static Dictionary <string, string> GetCustomizedProperties(ISchedulerJob job, params string[] propNames) { Dictionary <string, string> dic = new Dictionary <string, string>(); foreach (NameValue pair in job.GetCustomProperties()) { if (Array.Exists <string>(propNames, delegate(string name) { return(pair.Name.Equals(name, StringComparison.InvariantCultureIgnoreCase)); })) { dic.Add(pair.Name, pair.Value); } } return(dic); }