Code snippets and tool classes in C Sharp
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
GuiosoftUtils
UnitTests
.gitattributes
.gitignore
README.md
_config.yml
csharp_utils.sln

README.md

csharp_utils

Code snippets and tool classes in C Sharp

Classes

Guiosoft.Antivirus (static)

public static AVInfo[] AVList	// List of the antivirus installed
public static string AVInfo()	// Returns string with all the antivirus installed on the system
public static void Update()		// Update the list of antivirus

Guiosoft.Firewall (static)

public static FWInfo[] FWList	// List of the firewalls installed
public static string FWInfo()	// Returns string with all the antivirus installed on the system

Extensions

using Guiosoft.Extensions;

Numbers

(double, decimal).ToSQL()	// Returns string representation of value to use in SQL expression
(double, decimal).IsZero(int decimals = 2)	// Returns if a value is pratical zero 
(double, decimal).IsEqual(another, int decimals = 2)	// Returns if a value is pratical zero 

DateTime

DateTime.ToSQL()	// Returns string representation of value to use in SQL expression

String

public static string Replace(this string str, string[] searched, string[] replaced, StringComparison comparisonType = StringComparison.CurrentCulture, int limitByElements = 256)	// Replaces contents in string, searching by values in array