CreateCSharpCompilation(string, string?, bool, IEnumerable<MetadataReference>?, string?, bool, IEnumerable<string>?, OutputKind)
Declaration
public static CSharpCompilation CreateCSharpCompilation(string code, string? dependentCode = null, bool ignoreErrors = false, IEnumerable<MetadataReference>? additionalReferences = null, string? name = null, bool addMetalamaReferences = true, IEnumerable<string>? preprocessorSymbols = null, OutputKind outputKind = OutputKind.DynamicallyLinkedLibrary)
Parameters
Type | Name | Description |
---|---|---|
string | code | |
string | dependentCode | |
bool | ignoreErrors | |
IEnumerable<MetadataReference> | additionalReferences | |
string | name | |
bool | addMetalamaReferences | |
IEnumerable<string> | preprocessorSymbols | |
OutputKind | outputKind |
Returns
Type | Description |
---|---|
CSharpCompilation |
CreateCSharpCompilation(IReadOnlyDictionary<string, string>, string?, bool, IEnumerable<MetadataReference>?, string?, bool, IEnumerable<string>?, OutputKind)
Declaration
public static CSharpCompilation CreateCSharpCompilation(IReadOnlyDictionary<string, string> code, string? dependentCode = null, bool ignoreErrors = false, IEnumerable<MetadataReference>? additionalReferences = null, string? name = null, bool addMetalamaReferences = true, IEnumerable<string>? preprocessorSymbols = null, OutputKind outputKind = OutputKind.DynamicallyLinkedLibrary)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyDictionary<string, string> | code | |
string | dependentCode | |
bool | ignoreErrors | |
IEnumerable<MetadataReference> | additionalReferences | |
string | name | |
bool | addMetalamaReferences | |
IEnumerable<string> | preprocessorSymbols | |
OutputKind | outputKind |
Returns
Type | Description |
---|---|
CSharpCompilation |
CreateCSharpCompilation(IReadOnlyDictionary<string, string>, IReadOnlyDictionary<string, string>?, bool, IEnumerable<MetadataReference>?, string?, bool, IEnumerable<string>?, OutputKind)
Declaration
public static CSharpCompilation CreateCSharpCompilation(IReadOnlyDictionary<string, string> code, IReadOnlyDictionary<string, string>? dependentCode, bool ignoreErrors = false, IEnumerable<MetadataReference>? additionalReferences = null, string? name = null, bool addMetalamaReferences = true, IEnumerable<string>? preprocessorSymbols = null, OutputKind outputKind = OutputKind.DynamicallyLinkedLibrary)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyDictionary<string, string> | code | |
IReadOnlyDictionary<string, string> | dependentCode | |
bool | ignoreErrors | |
IEnumerable<MetadataReference> | additionalReferences | |
string | name | |
bool | addMetalamaReferences | |
IEnumerable<string> | preprocessorSymbols | |
OutputKind | outputKind |
Returns
Type | Description |
---|---|
CSharpCompilation |