コード例 #1
0
        /// <summary>
        /// Copies an array of header models to a header dictionary.
        /// </summary>
        /// <param name="models">The source header models.</param>
        /// <param name="dict">The target header dictionary.</param>
        private void CopyHeaderModelToDictionary(IEnumerable <HeaderModel> models, IHttpHeaders dict)
        {
            dict.Clear();

            foreach (var model in models)
            {
                dict[model.Name] = model.Value;
            }
        }
コード例 #2
0
ファイル: StumpsModule.cs プロジェクト: Cayan-LLC/stumps
        /// <summary>
        /// Copies an array of header models to a header dictionary.
        /// </summary>
        /// <param name="models">The source header models.</param>
        /// <param name="dict">The target header dictionary.</param>
        private void CopyHeaderModelToDictionary(IEnumerable<HeaderModel> models, IHttpHeaders dict)
        {
            dict.Clear();

            foreach (var model in models)
            {
                dict[model.Name] = model.Value;
            }
        }