Class CodeExtensions
- Namespace
- StockSharp.Algo.Compilation
- Assembly
- StockSharp.Algo.dll
Extension class.
public static class CodeExtensions
- Inheritance
-
CodeExtensions
- Inherited Members
Fields
DefaultLanguage
Default language.
public const string DefaultLanguage = ".cs"
Field Value
MsCorLib
Microsoft Core Library.
public const string MsCorLib = "mscorlib"
Field Value
Properties
DefaultReferences
Default references.
public static IEnumerable<AssemblyReference> DefaultReferences { get; }
Property Value
FSharpReferences
F# references.
public static IEnumerable<AssemblyReference> FSharpReferences { get; }
Property Value
ProjectReferences
Project references.
public static IEnumerable<ICodeReference> ProjectReferences { get; }
Property Value
Methods
AddAsmRef(CodeInfo, string)
Add assembly reference.
public static void AddAsmRef(this CodeInfo ci, string asmFile)
Parameters
AddProjectReference(ICodeReference)
Add project reference.
public static void AddProjectReference(ICodeReference reference)
Parameters
reference
ICodeReference
GetCSharpCompiler()
Get C# compiler.
public static ICompiler GetCSharpCompiler()
Returns
GetCompiler(string)
Try get compiler for the specified file extension.
public static ICompiler GetCompiler(this string fileExt)
Parameters
fileExt
stringFile extension.
Returns
IsCodeExtension(string)
Determine whether the specified file extension is a code file.
public static bool IsCodeExtension(this string fileExt)
Parameters
fileExt
stringFile extension.
Returns
- bool
Check result.
IsReferencesSupported(CodeInfo)
Determine whether the specified code supports references.
public static bool IsReferencesSupported(this CodeInfo code)
Parameters
Returns
- bool
Check result.
IsReferencesSupported(string)
Determines whether the specified file extension supports references.
public static bool IsReferencesSupported(this string langExt)
Parameters
Returns
- bool
Check result.
RemoveProjectReference(string)
Remove project reference.
public static bool RemoveProjectReference(string id)
Parameters
Returns
- bool
Check result.
TryGetCSharpCompiler()
Try get C# compiler.
public static ICompiler TryGetCSharpCompiler()
Returns
TryGetCompiler(string)
Try get compiler for the specified language.
public static ICompiler TryGetCompiler(this string fileExt)
Parameters
fileExt
stringFile extension.
Returns
TryGetProjectReference(string, out ICodeReference)
Try get project reference.
public static bool TryGetProjectReference(string id, out ICodeReference reference)
Parameters
id
stringreference
ICodeReference
Returns
- bool
Check result.