Table of Contents

Class FileInfoLiteDC

Namespace
SunamoDevCode._public.SunamoData.Data
Assembly
SunamoDevCode.dll

Lightweight file information class CZ: Odlehčená třída pro informace o souboru

public class FileInfoLiteDC
Inheritance
FileInfoLiteDC
Inherited Members
Extension Methods

Constructors

FileInfoLiteDC()

Initializes a new instance of FileInfoLiteDC CZ: Inicializuje novou instanci FileInfoLiteDC

public FileInfoLiteDC()

FileInfoLiteDC(string, string, long)

Initializes a new instance of FileInfoLiteDC with specified values CZ: Inicializuje novou instanci FileInfoLiteDC se zadanými hodnotami

public FileInfoLiteDC(string directory, string fileName, long length)

Parameters

directory string

Directory containing the file

fileName string

Name of the file

length long

Size of the file in bytes

Properties

Directory

Directory containing the file CZ: Adresář obsahující soubor

public string? Directory { get; set; }

Property Value

string

FileName

Gets the file name (alias for Name) CZ: Získá název souboru (alias pro Name)

public string FileName { get; }

Property Value

string

Length

Gets the file length (alias for Size) CZ: Získá délku souboru (alias pro Size)

public long Length { get; }

Property Value

long

Name

Name of the file with extension CZ: Název souboru s příponou

public string? Name { get; set; }

Property Value

string

Path

Full path to the file CZ: Plná cesta k souboru

public string? Path { get; set; }

Property Value

string

Size

Size of the file in bytes CZ: Velikost souboru v bajtech

public long Size { get; set; }

Property Value

long

Methods

GetFIL(FileInfo)

Creates FileInfoLiteDC from FileInfo instance CZ: Vytvoří FileInfoLiteDC z instance FileInfo

public static FileInfoLiteDC GetFIL(FileInfo fileInfo)

Parameters

fileInfo FileInfo

FileInfo instance to convert

Returns

FileInfoLiteDC

FileInfoLiteDC instance

GetFIL(string)

Creates FileInfoLiteDC from file path CZ: Vytvoří FileInfoLiteDC z cesty k souboru

public static FileInfoLiteDC GetFIL(string filePath)

Parameters

filePath string

Path to the file

Returns

FileInfoLiteDC

FileInfoLiteDC instance