inovationware.code 3.7.1

dotnet add package inovationware.code --version 3.7.1                
NuGet\Install-Package inovationware.code -Version 3.7.1                
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="inovationware.code" Version="3.7.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add inovationware.code --version 3.7.1                
#r "nuget: inovationware.code, 3.7.1"                
#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.
// Install inovationware.code as a Cake Addin
#addin nuget:?package=inovationware.code&version=3.7.1

// Install inovationware.code as a Cake Tool
#tool nuget:?package=inovationware.code&version=3.7.1                

Code Repertoire

Code Repertoire is multi-purpose for everyday use in .Net. Following are usage examples.


Bootstrap

Contains methods based on Bootstrap, currently 4 but upgrades are WIP.

C#:

using static iNovation.Code.Bootstrap

Alert("This is an alert");

VB:

Imports iNovation.Code.Bootstrap

Alert("This is an alert")

Charts

Contains methods for dynamically creating charts (Bar, Pie, Doughnut, Line) using given values or directly from database columns.

C#:

using static iNovation.Code.Charts

List<string> labels = new List<string> { "Q1", "Q2", "Q3" };
List<string> values  = new List<string> { "50", "25", "75" };
string html = BarChart(labels, values);

VB:

Imports iNovation.Code.Charts

Dim labels As New List(Of String) From {"Q1", "Q2", "Q3"}
Dim values As New List(Of String) From {"50", "25", "75"}
Dim html As String = BarChart(labels, values)

Desktop

Contains methods mainly towards desktop development.

C#:

using static iNovation.Code.Desktoop

enum TitleOfCourtesy{
    Mr, Mrs, Ms
}

//binds values of TitleOfCourtesy to comboBox1
EnumDrop(comboBox1, new TitleOfCourtesy());

VB:

Imports iNovation.Code.Desktop

Enum TitleOfCourtesy
    Mr
    Mrs
    Ms
End Enum

' binds values of TitleOfCourtesy to ComboBox1
EnumDrop(ComboBox1, New TitleOfCourtesy())

DesktopExtensions

Contains extension methods based on methods from Desktop.

C#:

using static iNovation.Code.DesktopExtensions

//The items of comboBox1 are turned into a List
comboBox1.ToList();

VB:

Imports iNovation.Code.DesktopExtensions

' The items of ComboBox1 are turned into a List
ComboBox1.ToList()

Encryption

Ligthweight Encryption/Decryption.

C#:

using static iNovation.Code.Encryption

string key = "MyKey";
string value = "What to encrypt";
string encrypted = Encrypt(key, value);

string original = Decrypt(key, encrypted);

VB:

Imports iNovation.Code.Encryption

Dim key As String = "MyKey"
Dim value = "What to encrypt"
Dim encrypted As String = Encrypt(key, value)

Dim original As String = Decrypt(key, encrypted)

EncryptionExtensions

Contains extension methods based on methods from Encryption.

C#:

using static iNovation.Code.EncryptionExtensions

string key = "MyKey";
string value = "What to encrypt";
string encrypted = value.Encrypt(key);

string original = encrypted.Decrypt(key);

VB:

Imports iNovation.Code.EncryptionExtensions

Dim key As String = "MyKey"
Dim value = "What to encrypt"
Dim encrypted As String = value.Encrypt(key)

Dim original As String = value.Decrypt(key)

Feedback

Contains routines for giving feedback with Text-To-Speech and MessageBox.

C#:

using iNovation.Code.Feedback

//Text to speech
string s = "Hi";
Feedback feedback = new Feedback();
feedback.Inform(s);

VB:

Imports iNovation.Code.Feedback

' Text to speech
Dim s As String = "Hi"
Dim f As New Feedback()
f.Inform(s)

FeedbackExtensions

Contains extension methods based on methods from Feedback.

C#:

using iNovation.Code.FeedbackExtensions

//Text to speech
string s = "Hi";
s.Inform();

VB:

Imports iNovation.Code.FeedbackExtensions

' Text to speech
Dim s As String = "Hi"
s.Inform()

General

Contains methods for general purposes.

C#:

using static iNovation.Code.General

string email = "@provider.com";
bool valid = IsEmail(email); //false

VB:

Imports iNovation.Code.General

Dim email As String = "@provider.com"
Dim valid = IsEmail(email) ' False

GeneralExtensions

Contains extension methods based on methods from General.

C#:

using static iNovation.Code.GeneralExtensions

string input = "how Are you doing";
string output = input.ToTitleCase(); //How Are You Doing

VB:

Imports iNovation.Code.GeneralExtensions

Dim input As String = "how Are you doing"
Dim output = input.ToTitleCase() ' How Are You Doing

LoggingExtensions

Contains extension methods useful for logging common data types.

C#:

using static iNovation.Code.LoggingExtensions

string input = "just a log";
input.Log();

VB:

Imports iNovation.Code.LoggingExtensions

Dim input As String = "just a log"
input.Log()

Machine

Contains methods for dealing with the machine directly.

C#:

using static iNovation.Code.Machine

//Mutes the PC
Mute(this);

VB:

Imports iNovation.Code.Machine

' Mutes the PC
Mute(Me)

Sequel

Contains methods for database access.

C#:

using static iNovation.Code.Sequel

string table = "TableName";
string[] fields = { "ColumnName" };
string[] where_params = { "Id" };
object[] where_params_values = { "Id", 10 };
string connection_string = "Connection_String";

//creates select query
string query = iNovation.Code.General.BuildSelectString(table, fields, where_params);

//creates a DataTable
DataTable dataTable = QDataTable(query, connection_string, where_params_values);

VB:

Imports iNovation.Code.Sequel

Dim table As String = "TableName"
Dim fields As String() = {"ColumnName"}
Dim where_params As String() = {"Id"}
Dim where_params_values As Object() = {"Id", 10}
Dim connection_string As String = "Connection_String"

' creates select query
Dim query As String = iNovation.Code.General.BuildSelectString(table, fields, where_params)

' creates a DataTable
Dim d As DataTable = QDataTable(query, connection_string, where_params_values)

SequelOrm

Lightweight ORM. Joins aren't supported yet, but is actively WIP.

C#:

using iNovation.Code.SequelOrm //not strictly needed

class User
{
    public int id { get; set; }
    public string username { get; set; }
}

string connection_string = "Connection_String";
string database_name = "Database";
SequelOrm orm = SequelOrm.GetInstance(connection_string, database_name);

User sought = orm.FindById<User>(10);

VB:

Imports iNovation.Code.SequelOrm  rem not strictly needed

Structure User
    Public id As Integer
    Public username As String
End Structure

Dim connection_string As String = "Connection_String"
Dim database_name As String = "Database"
Dim orm As SequelOrm = SequelOrm.GetInstance(connection_string, database_name)

Dim sought As User = orm.FindById(Of User)(10)

Styler

Contains methods for desktop development, particularly, styling the Form.

C#:

using static iNovation.Code.Styler

Style(this, true);

VB:

Imports iNovation.Code.Styler

Style(Me, True)
Product Compatible and additional computed target framework versions.
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on inovationware.code:

Package Downloads
inovation.incode

Private

SecurityAdapter

Description

inovationware.securityAdapter

Private

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.7.1 71 1/15/2025
3.7.0 103 11/23/2024
3.6.8 103 10/24/2024
3.6.7 111 10/20/2024
3.6.6 103 10/17/2024
3.6.5 92 9/20/2024
3.6.4 94 9/20/2024
3.6.3 102 9/20/2024
3.6.2 96 9/20/2024
3.6.1 107 9/20/2024
3.6.0 387 1/15/2024
3.5.9 378 1/11/2024 3.5.9 is deprecated.
3.5.8 344 1/7/2024
3.5.7 339 1/6/2024
3.5.6 403 12/23/2023
3.5.5 370 12/21/2023
3.5.4 375 12/20/2023
3.5.3 391 12/20/2023
3.5.2 417 12/15/2023
3.5.1 405 12/15/2023
3.5.0 398 12/15/2023
3.4.9 387 12/15/2023
3.4.8 419 12/13/2023
3.4.7 411 12/12/2023
3.4.6 409 12/12/2023
3.4.5 417 12/12/2023
3.4.4 430 12/9/2023
3.4.3 423 12/4/2023
3.4.2 486 11/29/2023
3.4.1 440 11/29/2023
3.4.0 451 11/29/2023
3.3.0 461 11/22/2023
3.2.8 449 11/22/2023
3.2.7 432 11/22/2023 3.2.7 is deprecated because it is no longer maintained.
3.2.6 449 11/20/2023
3.2.5 454 11/20/2023 3.2.5 is deprecated because it has critical bugs.
3.2.4 617 11/19/2023
3.2.3 713 11/12/2023
3.2.2 403 11/11/2023
3.2.1 434 11/11/2023
3.2.0 409 11/11/2023
3.1.9 472 10/22/2023
3.1.8 476 10/22/2023
3.1.7 521 10/22/2023
3.1.6 477 10/22/2023
3.1.5 432 10/22/2023
3.1.4 476 10/22/2023
3.1.3 446 10/22/2023
3.1.2 579 8/12/2023
3.1.1 581 8/12/2023
3.1.0 629 7/17/2023
3.0.9 615 7/12/2023
3.0.8 621 7/12/2023
3.0.7 606 7/12/2023
3.0.6 594 7/9/2023
3.0.5 625 7/9/2023
3.0.4 637 7/7/2023
3.0.3 704 6/29/2023
3.0.2 659 6/29/2023
3.0.1 627 6/29/2023
3.0.0 622 6/27/2023
2.0.2 655 6/24/2023
2.0.1 653 6/24/2023
2.0.0 628 6/24/2023
1.9.9 636 6/24/2023
1.9.8 624 6/23/2023
1.9.7 654 6/22/2023
1.9.6 622 6/17/2023
1.9.5 618 6/16/2023
1.9.4 591 6/10/2023
1.9.3 632 6/9/2023
1.9.2 662 6/9/2023
1.9.1 629 6/9/2023
1.9.0 634 6/9/2023
1.8.9 618 6/9/2023
1.8.8 628 6/9/2023
1.8.7 603 6/8/2023
1.8.6 649 6/6/2023
1.8.5 639 6/6/2023
1.8.4 615 6/6/2023
1.8.3 595 6/5/2023
1.8.1 600 6/5/2023
1.8.0 615 6/5/2023
1.7.9 612 6/4/2023
1.7.7 621 6/4/2023
1.7.6 607 6/3/2023
1.7.5 604 6/3/2023
1.7.4 645 6/1/2023
1.7.3 618 6/1/2023
1.7.2 704 5/31/2023
1.7.1 651 5/31/2023
1.7.0 630 5/31/2023
1.6.9 620 5/27/2023
1.6.8 626 5/27/2023
1.6.7 635 5/27/2023
1.6.6 611 5/27/2023
1.6.5 628 5/27/2023
1.6.4 652 5/27/2023
1.6.3 611 5/27/2023
1.6.2 624 5/23/2023
1.6.1 643 5/23/2023
1.6.0 632 5/23/2023
1.5.8 636 5/22/2023
1.5.7 645 5/22/2023
1.5.6 640 5/21/2023
1.5.5 613 5/21/2023
1.5.4 607 5/21/2023
1.5.3 627 5/21/2023
1.5.2 638 5/21/2023
1.5.1 604 5/21/2023
1.4.9 619 5/21/2023
1.4.8 648 5/21/2023
1.4.7 629 5/21/2023
1.4.6 562 5/8/2023
1.4.5 616 5/7/2023
1.4.4 617 5/6/2023
1.4.3 628 5/5/2023
1.4.2 614 5/5/2023
1.4.1 623 5/5/2023
1.4.0 593 5/5/2023
1.3.9 613 5/5/2023
1.3.8 581 5/5/2023
1.3.7 598 5/5/2023
1.3.6 625 5/2/2023
1.3.5 651 4/24/2023
1.3.4 613 4/23/2023
1.3.3 706 4/23/2023
1.3.2 634 4/23/2023
1.3.1 642 4/23/2023
1.3.0 606 4/23/2023
1.2.9 647 4/23/2023
1.2.8 665 4/23/2023
1.2.7 643 4/23/2023
1.2.6 624 4/13/2023
1.2.5 678 4/13/2023
1.2.3 662 4/12/2023
1.2.2 672 4/11/2023
1.2.1 648 4/11/2023
1.2.0 648 3/17/2023
1.1.9 717 3/17/2023
1.1.8 715 3/17/2023
1.1.7 817 12/27/2022
1.1.6 802 12/27/2022
1.1.5 762 12/27/2022
1.1.4 777 12/27/2022
1.1.3 791 12/24/2022
1.1.2 755 12/24/2022
1.1.1 772 12/24/2022
1.1.0 781 12/22/2022
1.0.9 1,005 9/11/2022
1.0.8 863 9/10/2022
1.0.7 884 9/10/2022
1.0.6 861 9/10/2022
1.0.5 1,571 8/9/2022
1.0.4 874 7/30/2022
1.0.3 854 7/29/2022
1.0.2 902 7/29/2022
1.0.1 1,477 4/3/2022