inovationware.code 3.7.0

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

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

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.0 37 11/23/2024
3.6.8 85 10/24/2024
3.6.7 92 10/20/2024
3.6.6 88 10/17/2024
3.6.5 75 9/20/2024
3.6.4 82 9/20/2024
3.6.3 87 9/20/2024
3.6.2 84 9/20/2024
3.6.1 95 9/20/2024
3.6.0 380 1/15/2024
3.5.9 371 1/11/2024 3.5.9 is deprecated.
3.5.8 337 1/7/2024
3.5.7 332 1/6/2024
3.5.6 396 12/23/2023
3.5.5 363 12/21/2023
3.5.4 368 12/20/2023
3.5.3 384 12/20/2023
3.5.2 410 12/15/2023
3.5.1 398 12/15/2023
3.5.0 391 12/15/2023
3.4.9 380 12/15/2023
3.4.8 410 12/13/2023
3.4.7 404 12/12/2023
3.4.6 402 12/12/2023
3.4.5 410 12/12/2023
3.4.4 423 12/9/2023
3.4.3 416 12/4/2023
3.4.2 479 11/29/2023
3.4.1 431 11/29/2023
3.4.0 444 11/29/2023
3.3.0 454 11/22/2023
3.2.8 440 11/22/2023
3.2.7 425 11/22/2023 3.2.7 is deprecated because it is no longer maintained.
3.2.6 440 11/20/2023
3.2.5 445 11/20/2023 3.2.5 is deprecated because it has critical bugs.
3.2.4 610 11/19/2023
3.2.3 706 11/12/2023
3.2.2 396 11/11/2023
3.2.1 427 11/11/2023
3.2.0 402 11/11/2023
3.1.9 465 10/22/2023
3.1.8 467 10/22/2023
3.1.7 514 10/22/2023
3.1.6 470 10/22/2023
3.1.5 425 10/22/2023
3.1.4 469 10/22/2023
3.1.3 439 10/22/2023
3.1.2 572 8/12/2023
3.1.1 574 8/12/2023
3.1.0 620 7/17/2023
3.0.9 608 7/12/2023
3.0.8 614 7/12/2023
3.0.7 599 7/12/2023
3.0.6 587 7/9/2023
3.0.5 618 7/9/2023
3.0.4 630 7/7/2023
3.0.3 697 6/29/2023
3.0.2 652 6/29/2023
3.0.1 618 6/29/2023
3.0.0 613 6/27/2023
2.0.2 648 6/24/2023
2.0.1 644 6/24/2023
2.0.0 619 6/24/2023
1.9.9 627 6/24/2023
1.9.8 615 6/23/2023
1.9.7 645 6/22/2023
1.9.6 612 6/17/2023
1.9.5 608 6/16/2023
1.9.4 582 6/10/2023
1.9.3 623 6/9/2023
1.9.2 655 6/9/2023
1.9.1 620 6/9/2023
1.9.0 625 6/9/2023
1.8.9 609 6/9/2023
1.8.8 619 6/9/2023
1.8.7 594 6/8/2023
1.8.6 642 6/6/2023
1.8.5 630 6/6/2023
1.8.4 606 6/6/2023
1.8.3 586 6/5/2023
1.8.1 591 6/5/2023
1.8.0 606 6/5/2023
1.7.9 603 6/4/2023
1.7.7 595 6/4/2023
1.7.6 596 6/3/2023
1.7.5 594 6/3/2023
1.7.4 636 6/1/2023
1.7.3 609 6/1/2023
1.7.2 697 5/31/2023
1.7.1 642 5/31/2023
1.7.0 621 5/31/2023
1.6.9 611 5/27/2023
1.6.8 617 5/27/2023
1.6.7 626 5/27/2023
1.6.6 602 5/27/2023
1.6.5 609 5/27/2023
1.6.4 642 5/27/2023
1.6.3 602 5/27/2023
1.6.2 615 5/23/2023
1.6.1 634 5/23/2023
1.6.0 623 5/23/2023
1.5.8 627 5/22/2023
1.5.7 636 5/22/2023
1.5.6 632 5/21/2023
1.5.5 603 5/21/2023
1.5.4 597 5/21/2023
1.5.3 619 5/21/2023
1.5.2 630 5/21/2023
1.5.1 596 5/21/2023
1.4.9 609 5/21/2023
1.4.8 641 5/21/2023
1.4.7 622 5/21/2023
1.4.6 555 5/8/2023
1.4.5 609 5/7/2023
1.4.4 610 5/6/2023
1.4.3 621 5/5/2023
1.4.2 607 5/5/2023
1.4.1 616 5/5/2023
1.4.0 586 5/5/2023
1.3.9 600 5/5/2023
1.3.8 574 5/5/2023
1.3.7 591 5/5/2023
1.3.6 618 5/2/2023
1.3.5 644 4/24/2023
1.3.4 606 4/23/2023
1.3.3 699 4/23/2023
1.3.2 627 4/23/2023
1.3.1 635 4/23/2023
1.3.0 599 4/23/2023
1.2.9 640 4/23/2023
1.2.8 658 4/23/2023
1.2.7 636 4/23/2023
1.2.6 617 4/13/2023
1.2.5 671 4/13/2023
1.2.3 655 4/12/2023
1.2.2 648 4/11/2023
1.2.1 641 4/11/2023
1.2.0 642 3/17/2023
1.1.9 711 3/17/2023
1.1.8 709 3/17/2023
1.1.7 810 12/27/2022
1.1.6 795 12/27/2022
1.1.5 753 12/27/2022
1.1.4 768 12/27/2022
1.1.3 780 12/24/2022
1.1.2 746 12/24/2022
1.1.1 763 12/24/2022
1.1.0 772 12/22/2022
1.0.9 996 9/11/2022
1.0.8 854 9/10/2022
1.0.7 875 9/10/2022
1.0.6 852 9/10/2022
1.0.5 1,560 8/9/2022
1.0.4 865 7/30/2022
1.0.3 845 7/29/2022
1.0.2 893 7/29/2022
1.0.1 1,468 4/3/2022

### New Features
- Added Extension Methods
### Breaking Changes
- Desktop.ListToAray renamed to ListToArray
- Feedback.stress renamed to Stress