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

◆ AddResourceInternal()

void System.Resources.ResourceWriter.AddResourceInternal ( string name,
Stream value,
bool closeAfterWrite )
inlineprivate

Definition at line 157 of file ResourceWriter.cs.

158 {
159 if (value == null)
160 {
161 _caseInsensitiveDups.Add(name, null);
162 _resourceList.Add(name, value);
163 return;
164 }
165 if (!value.CanSeek)
166 {
168 }
169 _caseInsensitiveDups.Add(name, null);
170 _resourceList.Add(name, new StreamWrapper(value, closeAfterWrite));
171 }
void Add(TKey key, TValue value)
void ICollection< KeyValuePair< TKey, TValue > >. Add(KeyValuePair< TKey, TValue > keyValuePair)
SortedDictionary< string, object > _resourceList
Dictionary< string, object > _caseInsensitiveDups
static string NotSupported_UnseekableStream
Definition SR.cs:26
Definition SR.cs:7

References System.Resources.ResourceWriter._caseInsensitiveDups, System.Resources.ResourceWriter._resourceList, System.Collections.Generic.SortedDictionary< TKey, TValue >.Add(), System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.SR.NotSupported_UnseekableStream, and System.value.

Referenced by System.Resources.ResourceWriter.AddResource(), System.Resources.ResourceWriter.AddResource(), and System.Resources.ResourceWriter.AddResource().