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

◆ GetEntity()

override? object System.Xml.Resolvers.XmlPreloadedResolver.GetEntity ( Uri absoluteUri,
string? role,
Type? ofObjectToReturn )
inline

Definition at line 202 of file XmlPreloadedResolver.cs.

203 {
204 if (absoluteUri == null)
205 {
206 throw new ArgumentNullException("absoluteUri");
207 }
209 {
210 if (_fallbackResolver != null)
211 {
213 }
215 }
216 if (ofObjectToReturn == null || ofObjectToReturn == typeof(Stream) || ofObjectToReturn == typeof(object))
217 {
218 return value.AsStream();
219 }
221 {
222 return value.AsTextReader();
223 }
225 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string Xml_CannotResolveUrl
Definition SR.cs:148
static string Xml_UnsupportedClass
Definition SR.cs:278
Definition SR.cs:7
readonly Dictionary< Uri, PreloadedData > _mappings
object? GetEntity(Uri absoluteUri, string? role, Type? ofObjectToReturn)

References System.Xml.Resolvers.XmlPreloadedResolver._fallbackResolver, System.Xml.Resolvers.XmlPreloadedResolver._mappings, System.Xml.Dictionary, System.SR.Format(), System.Xml.XmlResolver.GetEntity(), System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), System.value, System.SR.Xml_CannotResolveUrl, System.SR.Xml_UnsupportedClass, and System.Xml.XmlException.