Show / Hide Table of Contents

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
Object
CsharpEmitter
Implements
IEmitter
IGenericMetricsPlanTransformer<IDictionary<String, MemoryStream>>
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Mangrove.MetricSetEmitters
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
Type Name Description
String scriptName
ILogger logger

Fields

View Source

CLASS_NAME

Declaration
public const string CLASS_NAME = "MangroveCalculation____"
Field Value
Type Description
String
View Source

METHOD_NAME

Declaration
public const string METHOD_NAME = "Transform"
Field Value
Type Description
String

Properties

View Source

Assumption

Declaration
public IMetricsPlanValidator Assumption { get; }
Property Value
Type Description
IMetricsPlanValidator
View Source

Extern

Declaration
public ExternKind Extern { get; }
Property Value
Type Description
ExternKind

Methods

View Source

Transform(MetricsPlan)

Declaration
public IDictionary<string, MemoryStream> Transform(MetricsPlan plan)
Parameters
Type Name Description
MetricsPlan plan
Returns
Type Description
IDictionary<String, MemoryStream>

Implements

IEmitter
IGenericMetricsPlanTransformer<T>

Extension Methods

ObjectExtensions.EventId(Object)
  • View Source
Back to top Generated by DocFX