Table of Contents

Class IndexedFile

Namespace
Hi.Common.FileLines
Assembly
HiGeom.dll

Represents a file with an associated index.

public class IndexedFile : IEquatable<IndexedFile>
Inheritance
IndexedFile
Implements
Inherited Members
Extension Methods

Constructors

IndexedFile()

Initializes a new instance of the IndexedFile class.

public IndexedFile()

IndexedFile(IndexedFile)

Copy ctor.

public IndexedFile(IndexedFile src)

Parameters

src IndexedFile

src

IndexedFile(string, int)

Initializes a new instance of the IndexedFile class with the specified file path and index.

public IndexedFile(string filePath, int fileIndex)

Parameters

filePath string

The path of the file.

fileIndex int

The index of the file.

Properties

FileIndex

File Index. Start on 0.

public int FileIndex { get; set; }

Property Value

int

FilePath

File path.

public string FilePath { get; set; }

Property Value

string

Methods

Equals(IndexedFile)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(IndexedFile other)

Parameters

other IndexedFile

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.