Skip to content

SourceFile Class ​

Definition ​

A file of source code.

c#
public abstract class SourceFile : IEquatable<SourceFile>, IEqualityOperators<SourceFile, SourceFile, Boolean>

View source

Constructors ​

NameDescription
SourceFile(String, Int32)Initialises a new instance of the SourceFile class.

Properties ​

NameDescription
LengthThe length of the source file.
NameThe name of the source file.

Methods ​

NameDescription
Equals(SourceFile)Indicates whether the current object is equal to another object of the same type.
Equals(Object)Determines whether the specified object is equal to the current object.
GetHashCode()Serves as the default hash function.
ToString()Returns a string that represents the current object.

Operators ​

NameDescription
Equality(SourceFile, SourceFile)Determines whether two specified SourceFiles have the same value.
Inequality(SourceFile, SourceFile)Determines whether two specified SourceFiles have different values.