RBytesNetUtil 0.1.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package RBytesNetUtil --version 0.1.0
NuGet\Install-Package RBytesNetUtil -Version 0.1.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RBytesNetUtil" Version="0.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RBytesNetUtil" Version="0.1.0" />
<PackageReference Include="RBytesNetUtil" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add RBytesNetUtil --version 0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: RBytesNetUtil, 0.1.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=RBytesNetUtil&version=0.1.0
#tool nuget:?package=RBytesNetUtil&version=0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
RBytesNetUtil
Biblioteca utilitária para .NET com funções comuns de manipulação de dados, datas, arquivos, ordenações, algoritmos e geração de planilhas Excel simples sem dependências externas.
🚀 Funcionalidades Disponíveis
- 📊 Geração de arquivos Excel (.xlsx) com estrutura XML pura
- 🔢 Funções matemáticas (Fatorial, Fibonacci, MMC, MDC...)
- 🧠 Algoritmos úteis (Busca Binária, Kadane, Palíndromo...)
- 🔤 Ordenações (Bubble Sort, Quick Sort, Merge Sort...)
- 📅 Utilitários de data e hora
- 📦 Manipulação de JSON
- 🌐 Utilitários de rede
💡 Exemplos de Uso
📊 Excel — Criar um arquivo .xlsx simples
var dados = new List<List<string>>
{
new() { "Nome", "Idade", "Cidade" },
new() { "Ana", "30", "São Paulo" },
new() { "Bruno", "25", "Rio de Janeiro" }
};
RBytesExcelUtil.CriarExcelXLSX("dados.xlsx", "Pessoas", dados);
🔢 Json — Serializar e desserializar objetos
var pessoa = new { Nome = "Carlos", Idade = 28 };
string json = RBytesJsonUtil.ToJson(pessoa);
var novaPessoa = RBytesJsonUtil.FromJson<Dictionary<string, object>>(json);
Console.WriteLine(novaPessoa["Nome"]); // Carlos
🧮 Math — Fatorial, Fibonacci, MMC e MDC
Console.WriteLine(RBytesMathUtil.Fatorial(5)); // 120
Console.WriteLine(RBytesMathUtil.Fibonacci(6)); // 8
Console.WriteLine(RBytesMathUtil.MMC(10, 15)); // 30
Console.WriteLine(RBytesMathUtil.MDC(36, 60)); // 12
📅 DateTime — Datas úteis
Console.WriteLine(RBytesDateTimeUtil.ConverterMesExtensoParaNumerico("01")); // janeiro
Console.WriteLine(RBytesDateTimeUtil.AppendTimeStamp("arquivo.xls"));
🔤 Sort — Algoritmos de ordenação
int[] numeros = { 5, 3, 8, 2, 1 };
RBytesSortUtil.BubbleSort(numeros);
Console.WriteLine(string.Join(", ", numeros)); // 1, 2, 3, 5, 8
🔎 Algoritmos — Busca Binária
int[] lista = { 1, 3, 5, 7, 9 };
int index = RBytesAlgoritmoUtil.BuscaBinaria(lista, 5);
Console.WriteLine(index); // 2
📦 Como instalar
# Em seu terminal:
dotnet add package RBytesNetUtil
Ou copie o código do repositório RBytesNetUtil diretamente.
📂 Organização
Excel/ExcelUtil.cs
Json/JsonUtil.cs
Sort/SortUtil.cs
Math/MathUtil.cs
DateTime/DateTimeUtil.cs
Algorithms/AlgoritmoUtil.cs
Others/NetworkUtil.cs
Contribuições são bem-vindas! 🚀
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- ClosedXML (>= 0.104.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.