Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
Observe()
[3/3]
IEnumerable
<
Measurement
<
T
> >
System.Diagnostics.Metrics.ObservableInstrument
<
T
>.Observe
(
object
callback
)
inline
package
Definition at line
33
of file
ObservableInstrument.cs
.
34
{
35
if
(callback
is
Func<T>
func)
36
{
37
return
new
Measurement<T>
[1]
38
{
39
new
Measurement<T>
(
func
())
40
};
41
}
42
if
(callback
is
Func<
Measurement<T>
>
func2
)
43
{
44
return
new
Measurement<T>
[1] {
func2
() };
45
}
46
if
(callback
is
Func<
IEnumerable
<
Measurement<T>
>>
func3
)
47
{
48
return
func3
();
49
}
50
return
null
;
51
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Collections.Generic.IEnumerable
Definition
IEnumerable.cs:4
System.Linq.ExceptionArgument.func
@ func
System
Diagnostics
Metrics
ObservableInstrument
Generated by
1.10.0