TemplateCompiler MembersNFX Class Library

[This is preliminary documentation and is subject to change.]

The TemplateCompiler type exposes the following members.
Constructors

  NameDescription
Protected methodTemplateCompiler 
Initializes a new instance of the TemplateCompiler class
Protected methodTemplateCompiler( ITemplateSource )
Initializes a new instance of the TemplateCompiler class
Protected methodTemplateCompiler(IEnumerable ITemplateSource )
Initializes a new instance of the TemplateCompiler class
Back to Top
Methods

  NameDescription
Public methodCompile
Performs compilation if it has not already been performed
Public methodConfigure
Protected methodDestructor (Overrides DisposableObject Destructor .)
Public methodDispose
Deterministically disposes object. DO NOT OVERRIDE this method, override Destructor() instead
(Inherited from DisposableObject.)
Protected methodDoCompileCode
Override to perform compilation of code into assembly
Protected methodDoCompileTemplateSource
Override to perform code generation from template source into code
Protected methodDoConfigure
Override to perform custom configuration
Public methodEnsureNotCompiled
Throws an exception if this instance has already been compiled
Public methodEnsureObjectNotDisposed
Checks to see whether object dispose started or has already been disposed and throws an exception if Dispose() was called
(Inherited from DisposableObject.)
Public methodOnlineEquals
Determines whether the specified object is equal to the current object.
(Inherited from OnlineObject.)
Public methodExcludeTemplateSource
Exclude template source from compilation
Protected methodFinalize (Inherited from DisposableObject.)
Public methodGenerateUniqueName
Generates unique identifier suitable for use in code per compiler instance
Public methodGetEnumerator
Public methodOnlineGetHashCode
Serves as the default hash function.
(Inherited from OnlineObject.)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Public methodIncludeTemplateSource
Includes template source into compilation
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodReferenceAssembly
References assembly by its name if it is already not referenced
Protected methodRegisterDefaultUsings
Override to provide default using clauses
Public methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Public methodUnReferenceAssembly
Removes assembly reference by its name if it was already referenced
Back to Top
Extension Methods

  NameDescription
Public Extension MethodAsBool (Defined by ObjectValueConversion.)
Public Extension MethodAsByte (Defined by ObjectValueConversion.)
Public Extension MethodAsChar (Defined by ObjectValueConversion.)
Public Extension MethodAsDateTime Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsDateTime(DateTime, ConvertErrorHandling)Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsDecimal (Defined by ObjectValueConversion.)
Public Extension MethodAsDouble (Defined by ObjectValueConversion.)
Public Extension MethodAsEnum TEnum  (Defined by ObjectValueConversion.)
Public Extension MethodAsFloat (Defined by ObjectValueConversion.)
Public Extension MethodAsGDID Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsGDID(GDID, ConvertErrorHandling)Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsGDIDSymbol Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsGDIDSymbol(GDIDSymbol, ConvertErrorHandling)Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsGUID (Defined by ObjectValueConversion.)
Public Extension MethodAsInt (Defined by ObjectValueConversion.)
Public Extension MethodAsJSONConfig (Defined by ObjectValueConversion.)
Public Extension MethodAsLaconicConfig (Defined by ObjectValueConversion.)
Public Extension MethodAsLong (Defined by ObjectValueConversion.)
Public Extension MethodAsLookAheadEnumerable CompileUnit  (Defined by LookAheadExtensions.)
Public Extension MethodAsNonNullOrEmptyString (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableBool (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableByte (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableChar (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableDateTime (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableDecimal (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableDouble (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableEnum TEnum  (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableFloat (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableGDID (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableGDIDSymbol (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableGUID (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableInt (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableLong (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableSByte (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableShort (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableTimeSpan (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableUInt (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableULong (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableUShort (Defined by ObjectValueConversion.)
Public Extension MethodAsSByte (Defined by ObjectValueConversion.)
Public Extension MethodAsShort (Defined by ObjectValueConversion.)
Public Extension MethodAsString (Defined by ObjectValueConversion.)
Public Extension MethodAsTimeSpan Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsTimeSpan(TimeSpan, ConvertErrorHandling)Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsUInt (Defined by ObjectValueConversion.)
Public Extension MethodAsULong (Defined by ObjectValueConversion.)
Public Extension MethodAsUri (Defined by ObjectValueConversion.)
Public Extension MethodAsUShort (Defined by ObjectValueConversion.)
Public Extension MethodAsXMLConfig (Defined by ObjectValueConversion.)
Public Extension MethodDistinct CompileUnit, TKey  (Defined by CollectionUtils.)
Public Extension MethodFirstMax CompileUnit, TComparand (Func CompileUnit, TComparand )Overloaded. (Defined by CollectionUtils.)
Public Extension MethodFirstMax CompileUnit, TComparand (Func CompileUnit, TComparand , TComparand )Overloaded. (Defined by CollectionUtils.)
Public Extension MethodFirstMin CompileUnit, TComparand (Func CompileUnit, TComparand )Overloaded. (Defined by CollectionUtils.)
Public Extension MethodFirstMin CompileUnit, TComparand (Func CompileUnit, TComparand , TComparand )Overloaded. (Defined by CollectionUtils.)
Public Extension MethodFirstOrAnyOrDefault CompileUnit 
Tries to find the first element that matches the predicate and returns it, otherwise returns the first element found or default (i.e. null)
(Defined by CollectionUtils.)
Public Extension MethodForEach CompileUnit (Action CompileUnit )Overloaded.
Runs some method over each element of src sequence
(Defined by CollectionUtils.)
Public Extension MethodForEach CompileUnit (Action CompileUnit, Int32 )Overloaded.
Runs some method over each element of src sequence
(Defined by CollectionUtils.)
Public Extension MethodSkipLast CompileUnit  Overloaded.
Takes all elements except for last element from the given source
(Defined by CollectionUtils.)
Public Extension MethodSkipLast CompileUnit (Int32)Overloaded.
Takes all but last N elements from the source
(Defined by CollectionUtils.)
Public Extension MethodToErlObject Overloaded.
Try to convert .NET native object type to corresponding Erlang term. Throw exception if conversion is not possible
(Defined by ErlObject.)
Public Extension MethodToErlObject(ErlTypeOrder, Boolean)Overloaded.
Try to convert .NET native object type to corresponding Erlang term of given type. Throw exception if conversion is not possible
(Defined by ErlObject.)
Public Extension MethodToJSON(JSONWritingOptions)Overloaded.
Serializes object into JSON string
(Defined by JSONExtensions.)
Public Extension MethodToJSON(TextWriter, JSONWritingOptions)Overloaded.
Serializes object into JSON format using provided TextWriter
(Defined by JSONExtensions.)
Public Extension MethodToJSON(Stream, JSONWritingOptions, Encoding)Overloaded.
Serializes object into JSON format using provided stream and optional encoding
(Defined by JSONExtensions.)
Back to Top
Fields

  NameDescription
Protected fieldm_Assembly
Protected fieldm_AssemblyFileName
Protected fieldm_CodeCompilerErrors
Protected fieldm_Options
Protected fieldm_ReferencedAssemblies
Protected fieldm_ReferencedAssembliesSearchPath
Protected fieldm_Units
Back to Top
Properties

  NameDescription
Public propertyAssembly
Returns compiled assembly or null if only source have been compiled when CompileCode=false;
Public propertyAssemblyFileName
Gets/sets filename for assembly, if null then assembly is created in-memory only
Public propertyBaseTypeName
Sets the name of base type that templates inherit from. This type must directly or indirectly inherit from Template
Public propertyCodeCompilerErrors
Returns code compilation errors
Public propertyCompileCode
Indicates whether language compilation should be performed and Assembly be built
Public propertyCompiled
Indicates whether this instance was compiled
Public propertyCompileUnitsWithErrors
Returns compile units that have errors
Public propertyDisposed
Indicates whether this object was already disposed - the Dispose() has finished
(Inherited from DisposableObject.)
Public propertyDisposeStarted
Indicates whether this object Dispose() has been called and dispose started but not finished yet
(Inherited from DisposableObject.)
Public propertyHasErrors
Indicates whether some units have template compilation errors or code compiler errors exist
Public propertyItem
Returns a compile unit by template source or throws if it does not exist
Public propertyLanguageName
Gets the name of the language that this compiler supports, i.e. "C#"
Public propertyLanguageSourceFileExtension
Gets the name of the language source code file extension that this compiler supports, i.e. ".cs"
Public propertyNamespace
Sets the name of namespace that classes compiled into
Public propertyOptions
Config options section used for compilation
Public propertyReferencedAssemblies
Returns referenced assemblies
Public propertyReferencedAssembliesSearchPath
Gets/sets path for referenced assemblies that do not have a path in their names
Back to Top
Explicit Interface Implementations

  NameDescription
Explicit interface implemetationPrivate methodIEnumerable GetEnumerator
Back to Top
See Also