CSharpLanguageCharacteristics.CreateSymbol Method
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Creates a symbol in the code.
Namespace: System.Web.Razor.Parser
Assembly: System.Web.Razor (in System.Web.Razor.dll)
Syntax
'Declaration
Protected Overrides Function CreateSymbol ( _
location As SourceLocation, _
content As String, _
type As CSharpSymbolType, _
errors As IEnumerable(Of RazorError) _
) As CSharpSymbol
'Usage
Dim location As SourceLocation
Dim content As String
Dim type As CSharpSymbolType
Dim errors As IEnumerable(Of RazorError)
Dim returnValue As CSharpSymbol
returnValue = Me.CreateSymbol(location, _
content, type, errors)
protected override CSharpSymbol CreateSymbol(
SourceLocation location,
string content,
CSharpSymbolType type,
IEnumerable<RazorError> errors
)
protected:
virtual CSharpSymbol^ CreateSymbol(
SourceLocation location,
String^ content,
CSharpSymbolType type,
IEnumerable<RazorError^>^ errors
) override
abstract CreateSymbol :
location:SourceLocation *
content:string *
type:CSharpSymbolType *
errors:IEnumerable<RazorError> -> CSharpSymbol
override CreateSymbol :
location:SourceLocation *
content:string *
type:CSharpSymbolType *
errors:IEnumerable<RazorError> -> CSharpSymbol
protected override function CreateSymbol(
location : SourceLocation,
content : String,
type : CSharpSymbolType,
errors : IEnumerable<RazorError>
) : CSharpSymbol
Parameters
- location
Type: System.Web.Razor.Text.SourceLocation
The source location.
- content
Type: System.String
The content value.
- type
Type: System.Web.Razor.Tokenizer.Symbols.CSharpSymbolType
The html symbol type.
- errors
Type: System.Collections.Generic.IEnumerable<RazorError>
List of errors.
Return Value
Type: System.Web.Razor.Tokenizer.Symbols.CSharpSymbol
A symbol in the code.