https://github.com/guionardo/csharp_utils
Code snippets and tool classes in C Sharp
https://github.com/guionardo/csharp_utils
csharp csharp-code
Last synced: about 1 month ago
JSON representation
Code snippets and tool classes in C Sharp
- Host: GitHub
- URL: https://github.com/guionardo/csharp_utils
- Owner: guionardo
- Created: 2017-07-25T23:44:34.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-01-04T14:11:47.000Z (over 8 years ago)
- Last Synced: 2025-11-20T03:23:01.291Z (8 months ago)
- Topics: csharp, csharp-code
- Language: C#
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# csharp_utils
Code snippets and tool classes in C Sharp
## Classes
Guiosoft.Antivirus (static)
```c#
public static AVInfo[] AVList // List of the antivirus installed
```
```c#
public static string AVInfo() // Returns string with all the antivirus installed on the system
```
```c#
public static void Update() // Update the list of antivirus
```
Guiosoft.Firewall (static)
```c#
public static FWInfo[] FWList // List of the firewalls installed
```
```c#
public static string FWInfo() // Returns string with all the antivirus installed on the system
```
## Extensions
```c#
using Guiosoft.Extensions;
```
### Numbers
```c#
(double, decimal).ToSQL() // Returns string representation of value to use in SQL expression
```
```c#
(double, decimal).IsZero(int decimals = 2) // Returns if a value is pratical zero
```
```c#
(double, decimal).IsEqual(another, int decimals = 2) // Returns if a value is pratical zero
```
### DateTime
```c#
DateTime.ToSQL() // Returns string representation of value to use in SQL expression
```
### String
```c#
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
```