Class StringSource
Provides source code from string
Inheritance
System.Object
    StringSource
  Implements
Inherited Members
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
  Namespace: NFX.CodeAnalysis.Source
Assembly: NFX.dll
Syntax
public class StringSource : ISourceText
  Constructors
StringSource(String, Language, String)
Declaration
public StringSource(string source, Language language = null, string name = null)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | source | |
| Language | language | |
| System.String | name | 
Properties
EOF
Declaration
public bool EOF { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
Language
Declaration
public Language Language { get; }
  Property Value
| Type | Description | 
|---|---|
| Language | 
Name
Provides a handy way to name an otherwise-anonymous string source code, This property is like a "file name" only data is kept in a string
Declaration
public string Name { get; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
Methods
PeekChar()
Declaration
public char PeekChar()
  Returns
| Type | Description | 
|---|---|
| System.Char | 
ReadChar()
Declaration
public char ReadChar()
  Returns
| Type | Description | 
|---|---|
| System.Char | 
Reset()
Declaration
public void Reset()