Show / Hide Table of Contents

Interface IElementInfoGenerator

Interface for element information generator.

Namespace: Kephas.Generation
Assembly: Kephas.CodeAnalysis.dll
Syntax
[SingletonAppServiceContract]
public interface IElementInfoGenerator

Methods

| Improve this Doc View Source

CanHandle(IElementInfo, ICodeGenerationContext)

Determines whether the generator can handle the provided IElementInfo.

Declaration
bool CanHandle(IElementInfo elementInfo, ICodeGenerationContext codeGenerationContext)
Parameters
Type Name Description
IElementInfo elementInfo

The IElementInfo to be generated.

ICodeGenerationContext codeGenerationContext

Context for the code generation.

Returns
Type Description
System.Boolean

true if the generator can handle the IElementInfo, false if not.

| Improve this Doc View Source

GenerateCodeAsync(StringBuilder, IElementInfo, ICodeGenerationContext, CancellationToken)

Writes the generated code to the given text writer.

Declaration
Task GenerateCodeAsync(StringBuilder text, IElementInfo elementInfo, ICodeGenerationContext codeGenerationContext, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
System.Text.StringBuilder text

The text builder.

IElementInfo elementInfo

The IElementInfo to be generated.

ICodeGenerationContext codeGenerationContext

Context for the code generation.

System.Threading.CancellationToken cancellationToken

The cancellation token (optional).

Returns
Type Description
System.Threading.Tasks.Task

A promise of an enumeration of ICodeGenerationUnits.

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX