tgstation-server
6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
src
Tgstation.Server.Host
Models
Transformers
TransformerBase{TInput,TOutput}.cs
Go to the documentation of this file.
1
using
System;
2
using
System.Linq.Expressions;
3
4
namespace
Tgstation.Server.Host.Models.Transformers
5
{
7
abstract
class
TransformerBase
<TInput, TOutput> :
ITransformer
<TInput, TOutput>
8
{
12
static
Func<TInput, TOutput>?
compiledExpression
;
13
15
public
Expression<Func<TInput, TOutput>>
Expression
{
get
; }
16
18
public
Func<TInput, TOutput>
CompiledExpression
{
get
; }
19
24
protected
TransformerBase
(
25
Expression
<Func<TInput, TOutput>> expression)
26
{
27
compiledExpression
??= expression.Compile();
28
Expression
= expression;
29
CompiledExpression
=
compiledExpression
;
30
}
31
}
32
}
Tgstation.Server.Host.Models.Transformers.TransformerBase
Definition
TransformerBase{TInput,TOutput}.cs:8
Tgstation.Server.Host.Models.Transformers.TransformerBase.Expression
Expression< Func< TInput, TOutput > > Expression
Expression<TDelegate> form of the transformation.
Definition
TransformerBase{TInput,TOutput}.cs:15
Tgstation.Server.Host.Models.Transformers.TransformerBase.compiledExpression
static ? Func< TInput, TOutput > compiledExpression
static cache for CompiledExpression.
Definition
TransformerBase{TInput,TOutput}.cs:12
Tgstation.Server.Host.Models.Transformers.TransformerBase.CompiledExpression
Func< TInput, TOutput > CompiledExpression
The compiled Expression.
Definition
TransformerBase{TInput,TOutput}.cs:18
Tgstation.Server.Host.Models.Transformers.TransformerBase.TransformerBase
TransformerBase(Expression< Func< TInput, TOutput > > expression)
Initializes a new instance of the TransformerBase<TInput, TOutput> class.
Definition
TransformerBase{TInput,TOutput}.cs:24
Tgstation.Server.Host.Models.ITransformer
Contains a transformation Expression for converting TInput s to TOutput s.
Definition
ITransformer{TInput,TOutput}.cs:12
Tgstation.Server.Host.Models.Transformers
Definition
PermissionSetGraphQLTransformer.cs:2
Generated by
1.9.8