EGDL2 2.1
Loading...
Searching...
No Matches
FullSerializer.fsAotCompilationManager Class Reference

The AOT compilation manager. More...

Static Public Member Functions

static bool TryToPerformAotCompilation (Type type, out string aotCompiledClassInCSharp)
 This is a helper method that makes it simple to run an AOT compilation on the given type.
 
static void AddAotCompilation (Type type, fsMetaProperty[] members, bool isConstructorPublic)
 Adds a new AOT compilation unit.
 

Properties

static Dictionary< Type, string > AvailableAotCompilations [get]
 Ahead of time compilations that are available. The type maps to the object type the generated converter will serialize/deserialize, and the string is the text content for a converter that will do the serialization.
 

Detailed Description

The AOT compilation manager.

Member Function Documentation

◆ AddAotCompilation()

static void FullSerializer.fsAotCompilationManager.AddAotCompilation ( Type type,
fsMetaProperty[] members,
bool isConstructorPublic )
inlinestatic

Adds a new AOT compilation unit.

Parameters
typeThe type of object we are AOT compiling.
membersThe members on the object which will be serialized/deserialized.
Here is the caller graph for this function:

◆ TryToPerformAotCompilation()

static bool FullSerializer.fsAotCompilationManager.TryToPerformAotCompilation ( Type type,
out string aotCompiledClassInCSharp )
inlinestatic

This is a helper method that makes it simple to run an AOT compilation on the given type.

Parameters
typeThe type to perform the AOT compilation on.
aotCompiledClassInCSharpThe AOT class. Add this C# code to your project.
Returns
True if AOT compilation was successful.
Here is the call graph for this function:

Property Documentation

◆ AvailableAotCompilations

Dictionary<Type, string> FullSerializer.fsAotCompilationManager.AvailableAotCompilations
staticget

Ahead of time compilations that are available. The type maps to the object type the generated converter will serialize/deserialize, and the string is the text content for a converter that will do the serialization.

The generated serializer is completely independent and you don't need to do anything. Simply add the file to your project and it'll get used instead of the reflection based one.


The documentation for this class was generated from the following file: