terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ GetObject() [3/3]

object System.Resources.RuntimeResourceSet.GetObject ( string key,
bool ignoreCase,
bool isString )
inlineprivate

Definition at line 149 of file RuntimeResourceSet.cs.

150 {
151 if (key != null)
152 {
153 if (this.Reader == null || this._resCache == null)
154 {
155 throw new InvalidCastException();
156 }
157 if (this.Reader == null)
158 {
159 throw new OutOfMemoryException();
160 }
161 if (this._defaultReader != null)
162 {
164 int num = this._defaultReader.FindPosForResource(key);
165 string text = this._defaultReader.LoadString(num);
166 object obj;
167 return obj;
168 }
169 if (!this._haveReadFromReader)
170 {
172 if (caseInsensitiveTable == null)
173 {
174 if (caseInsensitiveTable == null)
175 {
176 }
177 if (!true)
178 {
179 }
180 }
181 ResourceReader defaultReader = this._defaultReader;
182 int dataPosition;
183 if (defaultReader != null)
184 {
186 int num2 = 1;
187 int currentName = enumeratorInternal._currentName;
191 if (enumeratorInternal.Key != null)
192 {
193 }
194 dataPosition = enumeratorInternal._dataPosition;
196 int num3 = 32768;
198 }
199 IResourceReader reader = this.Reader;
200 if (dataPosition != 0)
201 {
202 }
203 if (reader != null)
204 {
205 }
208 IResourceReader reader2 = this.Reader;
209 int num4 = 1;
210 this._haveReadFromReader = num4 != 0;
211 }
212 if (this._defaultReader != null)
213 {
216 object obj2;
217 return obj2;
218 }
219 int num5 = 1;
222 long num6 = 0L;
223 if (num5 != 0)
224 {
225 }
226 if (num6 == 0L)
227 {
228 object obj3;
229 return obj3;
230 }
231 }
232 throw new OutOfMemoryException();
233 }
class f__AnonymousType0<< Count > j__TPar
ResourceReader.ResourceEnumerator GetEnumeratorInternal()
Dictionary< string, ResourceLocator > _resCache
Dictionary< string, ResourceLocator > _caseInsensitiveTable

References System.Resources.RuntimeResourceSet._caseInsensitiveTable, System.Resources.ResourceReader.ResourceEnumerator._currentName, System.Resources.RuntimeResourceSet._defaultReader, System.Resources.RuntimeResourceSet._haveReadFromReader, System.Resources.RuntimeResourceSet._resCache, System.Resources.ResourceReader.FindPosForResource(), j__TPar, System.key, System.L, System.Resources.ResourceReader.LoadString(), System.obj, System.Resources.ResourceSet.Reader, and System.text.