CodeExtensions

StockSharp.Algo.Compilation

扩展课。

属性

DefaultReferences
public static IEnumerable<AssemblyReference> DefaultReferences { get; }
value = CodeExtensions.DefaultReferences

默认参考.

FSharpReferences
public static IEnumerable<AssemblyReference> FSharpReferences { get; }
value = CodeExtensions.FSharpReferences

F#参考文献.

ProjectReferences
public static IEnumerable<ICodeReference> ProjectReferences { get; }
value = CodeExtensions.ProjectReferences

项目参考文献.

方法

AddAsmRef
public static void AddAsmRef(CodeInfo ci, string asmFile)
CodeExtensions.AddAsmRef(ci, asmFile)

添加组装参考文献.

ci
CodeInfo
asmFile
集会道.
AddProjectReference
public static void AddProjectReference(ICodeReference reference)
CodeExtensions.AddProjectReference(reference)

添加项目参考。

reference
ICodeReference
CreateAssemblyReferences
public static IEnumerable<AssemblyReference> CreateAssemblyReferences(IEnumerable<string> names)
result = CodeExtensions.CreateAssemblyReferences(names)

创建集合参考 。

names
议会名称。

返回值: AssemblyReference (中文(简体) ).

GetCompiler
public static ICompiler GetCompiler(string fileExt)
result = CodeExtensions.GetCompiler(fileExt)

尝试为指定的文件扩展名获取编译器 。

fileExt
扩展名 。

返回值: 编译器

GetCSharpCompiler
public static ICompiler GetCSharpCompiler()
result = CodeExtensions.GetCSharpCompiler()

获取 C# 编译器 。

返回值: 编译器

IsCodeExtension
public static bool IsCodeExtension(string fileExt)
result = CodeExtensions.IsCodeExtension(fileExt)

确定指定的文件扩展名是否是一个代码文件 。

fileExt
扩展名 。

返回值: 检查结果。

IsReferencesSupported
public static bool IsReferencesSupported(string langExt)
result = CodeExtensions.IsReferencesSupported(langExt)

确定指定的文件扩展名是否支持引用。

langExt
语言

返回值: 检查结果。

IsReferencesSupported
public static bool IsReferencesSupported(CodeInfo code)
result = CodeExtensions.IsReferencesSupported(code)

确定指定的代码是否支持引用 。

code
CodeInfo

返回值: 检查结果。

RemoveProjectReference
public static bool RemoveProjectReference(string id)
result = CodeExtensions.RemoveProjectReference(id)

删除工程引用 。

id
编号

返回值: 检查结果。

TryGetCompiler
public static ICompiler TryGetCompiler(string fileExt)
result = CodeExtensions.TryGetCompiler(fileExt)

尝试为指定语言获取编译器 。

fileExt
扩展名 。

返回值: 编译器

TryGetCSharpCompiler
public static ICompiler TryGetCSharpCompiler()
result = CodeExtensions.TryGetCSharpCompiler()

尝试获取 C# 编译器 。

返回值: 编译器

TryGetProjectReference
public static bool TryGetProjectReference(string id, ICodeReference reference)
result = CodeExtensions.TryGetProjectReference(id, reference)

试着获得项目参考。

id
编号
reference
ICodeReference

返回值: 检查结果。

字段

DefaultLanguage
public const string DefaultLanguage
value = CodeExtensions.DefaultLanguage

默认语言.

MsCorLib
public const string MsCorLib
value = CodeExtensions.MsCorLib

微软核心库.