EifelMono.Fluent 0.1.6

Fluent helper for Files, Directories, strings, objects, etc, c#, ....

Install-Package EifelMono.Fluent -Version 0.1.6
dotnet add package EifelMono.Fluent --version 0.1.6
<PackageReference Include="EifelMono.Fluent" Version="0.1.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EifelMono.Fluent --version 0.1.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

EifelMono.Fluent

Infos

  • Build Status Ubuntu
  • Build Status macOS
  • Build Status Windows
  • NuGet nuget
  • fuget.org doc 😉

Fluent handling for files and directories

var testFile = new FilePath(@"C:\temp\src\test.txt")
    .EnsureDirectoryExist()
    .DeleteIfExist(); // if file exist
testFile.WriteLine("Line 1");
testFile.WriteLine("Line 2");

testFile.Copy("test.bak");

Console.WriteLine(testFile.FullPath);
Console.WriteLine(testFile.FileName);
Console.WriteLine(testFile.FileNameWithoutExtension);
Console.WriteLine(testFile.Extension);
Console.WriteLine(testFile.DirectoryName);
Console.WriteLine(testFile.CreationTime);
Console.WriteLine(testFile.CreationTimeUtc);
Console.WriteLine(testFile.LastAccessTime);
Console.WriteLine(testFile.LastWriteTime);

foreach (var file in testFile.Directory.GetFiles(@"**\*.txt,*.bak"))
    Console.WriteLine(file);

##Catalog

Serialized your object to a ini like output

  • ToCatalog() => string with each filed/propertiy in a line (optional settings)
  • ToCatalogString() => string with no newlines (optional settings)
  • ToCatalogToString() => string with no newlines (optional depth)
using EifelMono.Fluent.Cataloge;
:

public class ClassA
{
    public string Name {get;set;}
    public int Cip {get;set;}

    :
    public override string ToString()
        => this.ToCatalogeToString();
}

=> ToString() => .Name=.. .Cip=.. 



for more see the

Requirements

  • Visual Studio 2019 RC/preview
  • dotnet core 3.0 Roslyn c# 8.0

Safe at the end of the metod name

=> (bool Ok, T Value)

Methods for fluent
=> (bool Ok, T Value, TF FluentValue)

Social

<a href="https://twitter.com/eifelmono"><img src="https://img.shields.io/badge/twitter-%40eifelmono-55acee.svg?style=flat-square"></a>
<a href="https://facebook.com/andreas.klapperich"><img src="https://img.shields.io/badge/facebook-andreas.klapperich-55acee.svg?style=flat-square"></a>

EifelMono.Fluent

Infos

  • Build Status Ubuntu
  • Build Status macOS
  • Build Status Windows
  • NuGet nuget
  • fuget.org doc 😉

Fluent handling for files and directories

var testFile = new FilePath(@"C:\temp\src\test.txt")
    .EnsureDirectoryExist()
    .DeleteIfExist(); // if file exist
testFile.WriteLine("Line 1");
testFile.WriteLine("Line 2");

testFile.Copy("test.bak");

Console.WriteLine(testFile.FullPath);
Console.WriteLine(testFile.FileName);
Console.WriteLine(testFile.FileNameWithoutExtension);
Console.WriteLine(testFile.Extension);
Console.WriteLine(testFile.DirectoryName);
Console.WriteLine(testFile.CreationTime);
Console.WriteLine(testFile.CreationTimeUtc);
Console.WriteLine(testFile.LastAccessTime);
Console.WriteLine(testFile.LastWriteTime);

foreach (var file in testFile.Directory.GetFiles(@"**\*.txt,*.bak"))
    Console.WriteLine(file);

##Catalog

Serialized your object to a ini like output

  • ToCatalog() => string with each filed/propertiy in a line (optional settings)
  • ToCatalogString() => string with no newlines (optional settings)
  • ToCatalogToString() => string with no newlines (optional depth)
using EifelMono.Fluent.Cataloge;
:

public class ClassA
{
    public string Name {get;set;}
    public int Cip {get;set;}

    :
    public override string ToString()
        => this.ToCatalogeToString();
}

=> ToString() => .Name=.. .Cip=.. 



for more see the

Requirements

  • Visual Studio 2019 RC/preview
  • dotnet core 3.0 Roslyn c# 8.0

Safe at the end of the metod name

=> (bool Ok, T Value)

Methods for fluent
=> (bool Ok, T Value, TF FluentValue)

Social

<a href="https://twitter.com/eifelmono"><img src="https://img.shields.io/badge/twitter-%40eifelmono-55acee.svg?style=flat-square"></a>
<a href="https://facebook.com/andreas.klapperich"><img src="https://img.shields.io/badge/facebook-andreas.klapperich-55acee.svg?style=flat-square"></a>

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.1.6 62 10/26/2020
0.1.5 121 7/7/2020
0.1.4 85 7/7/2020
0.1.1 471 9/2/2019
0.1.0 124 9/2/2019
0.0.21-preview 280 7/20/2019
0.0.20-preview 135 7/17/2019
0.0.19 220 6/18/2019
0.0.17 168 6/4/2019
0.0.16 185 6/1/2019
0.0.14 357 5/7/2019
0.0.13 256 5/2/2019
0.0.12 202 4/28/2019
0.0.11 151 4/24/2019
0.0.10 128 4/24/2019
0.0.9 435 4/20/2019
0.0.8 331 4/19/2019
0.0.7 273 4/19/2019
0.0.6 334 4/15/2019
0.0.5 272 4/7/2019
0.0.4 275 3/31/2019
0.0.3 320 3/17/2019
0.0.2 277 3/10/2019
0.0.1 277 3/5/2019