Class CompilationError
- Namespace
- Ecng.Compilation
- Assembly
- Ecng.Compilation.dll
Represents a compilation error with details about its location and type.
public class CompilationError : Equatable<CompilationError>, ICloneable<CompilationError>, ICloneable, IEquatable<CompilationError>, IComparable<CompilationError>, IComparable
- Inheritance
-
CompilationError
- Implements
- Inherited Members
- Extension Methods
Constructors
CompilationError()
public CompilationError()
Properties
Character
Gets or sets the character position where the error occurred.
public int Character { get; set; }
Property Value
Id
Gets or sets the identifier of the compilation error.
public string Id { get; set; }
Property Value
Line
Gets or sets the line number where the error occurred.
public int Line { get; set; }
Property Value
Message
Gets or sets the message that describes the error.
public string Message { get; set; }
Property Value
Type
Gets or sets the type of the compilation error.
public CompilationErrorTypes Type { get; set; }
Property Value
Methods
Clone()
Creates a new object that is a copy of the current instance.
public override CompilationError Clone()
Returns
- CompilationError
A new object that is a copy of this instance.
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
OnEquals(CompilationError)
Determines equality between this instance and another instance of the same type.
protected override bool OnEquals(CompilationError other)
Parameters
other
CompilationErrorAn object to compare with this instance.
Returns
- bool
true if the objects are equal; otherwise, false.
ToString()
public override string ToString()