Show / Hide Table of Contents

Class ConsiderForCodeGenerationAttribute

The attribute which informs the code generator that code should be generated for this type.

Inheritance
System.Object
ConsiderForCodeGenerationAttribute
GenerateSerializerAttribute
KnownTypeAttribute
Namespace: Orleans.CodeGeneration
Assembly: Orleans.Core.Abstractions.dll
Syntax
public class ConsiderForCodeGenerationAttribute : Attribute

Constructors

| Improve this Doc View Source

ConsiderForCodeGenerationAttribute(Type, Boolean)

Initializes a new instance of ConsiderForCodeGenerationAttribute.

Declaration
protected ConsiderForCodeGenerationAttribute(Type type, bool throwOnFailure = false)
Parameters
Type Name Description
Type type

The type that the generator should generate code for

System.Boolean throwOnFailure

When true, it will throw an exception if code cannot be generated for this type.

Properties

| Improve this Doc View Source

ThrowOnFailure

Gets a value indicating whether or not to throw if code was not generated for the specified type.

Declaration
public bool ThrowOnFailure { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Type

Gets the type which should be considered for code generation.

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

Extension Methods

ImmutableExt.AsImmutable<T>(T)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX