Class FileEntry
Inheritance
System.Object
FileEntry
Assembly: Volo.Abp.Cli.Core.dll
Syntax
public class FileEntry : object
Constructors
FileEntry(String, Byte[], Boolean)
Declaration
public FileEntry(string name, byte[] bytes, bool isDirectory)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Byte[] |
bytes |
|
System.Boolean |
isDirectory |
|
Properties
Bytes
Declaration
public byte[] Bytes { get; }
Property Value
Type |
Description |
System.Byte[] |
|
Content
Declaration
public string Content { get; }
Property Value
Type |
Description |
System.String |
|
Encoding
Declaration
public Encoding Encoding { get; }
Property Value
Type |
Description |
Encoding |
|
IsBinaryFile
Declaration
public bool IsBinaryFile { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsDirectory
Declaration
public bool IsDirectory { get; }
Property Value
Type |
Description |
System.Boolean |
|
Name
Declaration
public string Name { get; }
Property Value
Type |
Description |
System.String |
|
Methods
GetLines()
Declaration
public string[] GetLines()
Returns
Type |
Description |
System.String[] |
|
NormalizeLineEndings()
Declaration
public void NormalizeLineEndings()
SetContent(String)
Declaration
public void SetContent(string fileContent)
Parameters
Type |
Name |
Description |
System.String |
fileContent |
|
SetLines(IEnumerable<String>)
Declaration
public void SetLines(IEnumerable<string> lines)
Parameters
Type |
Name |
Description |
IEnumerable<System.String> |
lines |
|
SetName(String)
Declaration
public void SetName(string fileName)
Parameters
Type |
Name |
Description |
System.String |
fileName |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Extension Methods