Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SourceFilter.cs
Go to the documentation of this file.
2
3namespace System.Diagnostics;
4
6{
7 private string _src;
8
9 public string Source
10 {
11 get
12 {
13 return _src;
14 }
15 [MemberNotNull("_src")]
16 set
17 {
18 if (value == null)
19 {
20 throw new ArgumentNullException("Source");
21 }
22 _src = value;
23 }
24 }
25
26 public SourceFilter(string source)
27 {
28 Source = source;
29 }
30
31 public override bool ShouldTrace(TraceEventCache? cache, string source, TraceEventType eventType, int id, string? formatOrMessage, object?[]? args, object? data1, object?[]? data)
32 {
33 if (source == null)
34 {
35 throw new ArgumentNullException("source");
36 }
37 return string.Equals(_src, source);
38 }
39}
override bool ShouldTrace(TraceEventCache? cache, string source, TraceEventType eventType, int id, string? formatOrMessage, object?[]? args, object? data1, object?[]? data)