Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetSpecializedCollection< T >()

T System.Net.Http.Headers.HttpResponseHeaders.GetSpecializedCollection< T > ( int slot,
Func< HttpResponseHeaders, T > creationFunc )
inlineprivate

Definition at line 133 of file HttpResponseHeaders.cs.

134 {
135 object[] array = _specialCollectionsSlots ?? (_specialCollectionsSlots = new object[5]);
136 object obj = array[slot];
137 if (obj == null)
138 {
139 obj = (array[slot] = creationFunc(this));
140 }
141 return (T)obj;
142 }

References System.Net.Http.Headers.HttpResponseHeaders._specialCollectionsSlots, System.array, and System.obj.