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

◆ Fetch()

object System.Diagnostics.DiagnosticSourceEventSource.TransformSpec.PropertySpec.Fetch ( object obj)
inline

Definition at line 787 of file DiagnosticSourceEventSource.cs.

788 {
789 PropertyFetch propertyFetch = _fetchForExpectedType;
790 Type type = obj?.GetType();
791 if (propertyFetch == null || propertyFetch.Type != type)
792 {
793 propertyFetch = (_fetchForExpectedType = PropertyFetch.FetcherForProperty(type, _propertyName));
794 }
795 object result = null;
796 try
797 {
798 result = propertyFetch.Fetch(obj);
799 }
800 catch (Exception value)
801 {
802 Log.Message($"Property {type}.{_propertyName} threw the exception {value}");
803 }
804 return result;
805 }

References System.Diagnostics.DiagnosticSourceEventSource.TransformSpec.PropertySpec.PropertyFetch.FetcherForProperty(), System.obj, System.type, and System.value.