CSharpCompilation
CommonAssembly
CommonDynamicType
CommonGlobalNamespace
CommonObjectType
CommonOptions
CommonScriptClass
CommonScriptGlobalsType
CommonSourceModule
CommonSyntaxTrees
DirectiveReferences
IsCaseSensitive
Language
LanguageVersion
Options
ReferencedAssemblyNames
ScriptCompilationInfo
SyntaxTrees
AddReferences(MetadataReference[])
AddReferences(IEnumerable<MetadataReference>)
AddSyntaxTrees(SyntaxTree[])
AddSyntaxTrees(IEnumerable<SyntaxTree>)
AppendDefaultVersionResource(Stream)
ClassifyCommonConversion(ITypeSymbol, ITypeSymbol)
ClassifyConversion(ITypeSymbol, ITypeSymbol)
Clone()
CommonAddSyntaxTrees(IEnumerable<SyntaxTree>)
CommonClone()
CommonContainsSyntaxTree(SyntaxTree)
CommonCreateAnonymousTypeSymbol(ImmutableArray<ITypeSymbol>, ImmutableArray<String>, ImmutableArray<Location>, ImmutableArray<Boolean>)
CommonCreateAnonymousTypeSymbol(ImmutableArray<ITypeSymbol>, ImmutableArray<String>, ImmutableArray<Location>, ImmutableArray<Boolean>, ImmutableArray<NullableAnnotation>)
CommonCreateArrayTypeSymbol(ITypeSymbol, Int32)
CommonCreateArrayTypeSymbol(ITypeSymbol, Int32, NullableAnnotation)
CommonCreateBuiltinOperator(String, ITypeSymbol, ITypeSymbol)
CommonCreateBuiltinOperator(String, ITypeSymbol, ITypeSymbol, ITypeSymbol)
CommonCreateErrorNamespaceSymbol(INamespaceSymbol, String)
CommonCreateErrorTypeSymbol(INamespaceOrTypeSymbol, String, Int32)
CommonCreateFunctionPointerTypeSymbol(ITypeSymbol, RefKind, ImmutableArray<ITypeSymbol>, ImmutableArray<RefKind>, SignatureCallingConvention, ImmutableArray<INamedTypeSymbol>)
CommonCreateNativeIntegerTypeSymbol(Boolean)
CommonCreatePointerTypeSymbol(ITypeSymbol)
CommonCreatePreprocessingSymbol(String)
CommonCreateTupleTypeSymbol(ImmutableArray<ITypeSymbol>, ImmutableArray<String>, ImmutableArray<Location>)
CommonCreateTupleTypeSymbol(INamedTypeSymbol, ImmutableArray<String>, ImmutableArray<Location>)
CommonCreateTupleTypeSymbol(ImmutableArray<ITypeSymbol>, ImmutableArray<String>, ImmutableArray<Location>, ImmutableArray<NullableAnnotation>)
CommonCreateTupleTypeSymbol(INamedTypeSymbol, ImmutableArray<String>, ImmutableArray<Location>, ImmutableArray<NullableAnnotation>)
CommonGetAssemblyOrModuleSymbol(MetadataReference)
CommonGetCompilationNamespace(INamespaceSymbol)
CommonGetEntryPoint(CancellationToken)
CommonGetSemanticModel(SyntaxTree, Boolean)
CommonGetSemanticModel(SyntaxTree, SemanticModelOptions)
CommonGetSpecialType(SpecialType)
CommonGetTypeByMetadataName(String)
CommonRemoveAllSyntaxTrees()
CommonRemoveSyntaxTrees(IEnumerable<SyntaxTree>)
CommonReplaceSyntaxTree(SyntaxTree, SyntaxTree)
CommonWithAssemblyName(String)
CommonWithOptions(CompilationOptions)
CommonWithReferences(IEnumerable<MetadataReference>)
CommonWithScriptCompilationInfo(ScriptCompilationInfo)
ContainsSymbolsWithName(String, SymbolFilter, CancellationToken)
ContainsSymbolsWithName(Func<String, Boolean>, SymbolFilter, CancellationToken)
ContainsSyntaxTree(SyntaxTree)
Create(String, IEnumerable<SyntaxTree>, IEnumerable<MetadataReference>, CSharpCompilationOptions)
CreateScriptCompilation(String, SyntaxTree, IEnumerable<MetadataReference>, CSharpCompilationOptions, CSharpCompilation, Type, Type)
GetDeclarationDiagnostics(CancellationToken)
GetDiagnostics(CancellationToken)
GetDirectiveReference(ReferenceDirectiveTriviaSyntax)
GetMetadataReference(IAssemblySymbol)
GetMethodBodyDiagnostics(CancellationToken)
GetParseDiagnostics(CancellationToken)
GetSemanticModel(SyntaxTree, Boolean)
GetSemanticModel(SyntaxTree, SemanticModelOptions)
GetSymbolsWithName(String, SymbolFilter, CancellationToken)
GetSymbolsWithName(Func<String, Boolean>, SymbolFilter, CancellationToken)
GetUsedAssemblyReferences(CancellationToken)
RemoveAllReferences()
RemoveAllSyntaxTrees()
RemoveReferences(MetadataReference[])
RemoveReferences(IEnumerable<MetadataReference>)
RemoveSyntaxTrees(SyntaxTree[])
RemoveSyntaxTrees(IEnumerable<SyntaxTree>)
ReplaceReference(MetadataReference, MetadataReference)
ReplaceSyntaxTree(SyntaxTree, SyntaxTree)
ToMetadataReference(ImmutableArray<String>, Boolean)
WithAssemblyName(String)
WithOptions(CSharpCompilationOptions)
WithReferences(MetadataReference[])
WithReferences(IEnumerable<MetadataReference>)
WithScriptCompilationInfo(CSharpScriptCompilationInfo)
Emit(CSharpCompilation, String, String, String, String, IEnumerable<ResourceDescription>, CancellationToken)
net6.0-windows
namespace Microsoft.CodeAnalysis.CSharp
{
public sealed class CSharpCompilation : Compilation
{
protected override INamespaceSymbol! CommonCreateErrorNamespaceSymbol(INamespaceSymbol! container, string! name);
}
}
.NET | 5.06.07.08.09.010.0 |
---|---|
.NET Core | 2.02.12.23.03.1 |
.NET Framework | 4.6.14.6.24.74.7.14.7.24.84.8.1 |
.NET Standard | 2.02.1 |
Information specific to net6.0 | |
Assembly | Microsoft.CodeAnalysis.CSharp , Version=4.13.0.0, PublicKeyToken=31bf3856ad364e35 |
Referencing | Your project needs a package reference to |
Package | Microsoft.CodeAnalysis.CSharp (4.13.0) netstandard2.0 |
Platform Restrictions | This API is supported on all platforms. |
- Built-in API
- Package-provided API