System.Net.WebHeaderCollection.WebHeaderCollection C# (CSharp) Метод

WebHeaderCollection() защищенный Метод

protected WebHeaderCollection ( SerializationInfo serializationInfo, StreamingContext streamingContext ) : System.Collections
serializationInfo SerializationInfo
streamingContext StreamingContext
Результат System.Collections
        protected WebHeaderCollection(SerializationInfo serializationInfo, StreamingContext streamingContext)
        {
            int count = serializationInfo.GetInt32("Count");
            for (int i = 0; i < count; i++)
            {
                string headerName = serializationInfo.GetString(i.ToString(NumberFormatInfo.InvariantInfo));
                string headerValue = serializationInfo.GetString((i + count).ToString(NumberFormatInfo.InvariantInfo));
                if (NetEventSource.IsEnabled) NetEventSource.Info(this, $"calling InnerCollection.Add() key:[{headerName}], value:[{headerValue}]");
                InnerCollection.Add(headerName, headerValue);
            }
        }

Same methods

WebHeaderCollection::WebHeaderCollection ( )
WebHeaderCollection::WebHeaderCollection ( System serializationInfo, System streamingContext )
WebHeaderCollection::WebHeaderCollection ( ) : System.Collections