Class CsharpEmitter
Generate C# code to compute metrics. The generated code will contain
a single class named CLASS_NAME, which has a single public
method named METHOD_NAME, which accepts a DataTable
and returns a collection of anonymous objects.
Inheritance
CsharpEmitter
Assembly: MetricSetEmitters.dll
Syntax
public class CsharpEmitter : IEmitter, IGenericMetricsPlanTransformer<IDictionary<string, MemoryStream>>
Constructors
View Source
CsharpEmitter(String, ILogger)
Declaration
public CsharpEmitter(string scriptName, ILogger logger)
Parameters
Fields
View Source
CLASS_NAME
Declaration
public const string CLASS_NAME = "MangroveCalculation____"
Field Value
View Source
METHOD_NAME
Declaration
public const string METHOD_NAME = "Transform"
Field Value
Properties
View Source
Assumption
Declaration
public IMetricsPlanValidator Assumption { get; }
Property Value
View Source
Extern
Declaration
public ExternKind Extern { get; }
Property Value
Methods
View Source
Declaration
public IDictionary<string, MemoryStream> Transform(MetricsPlan plan)
Parameters
Returns
Implements
Extension Methods