VPKSoft.Utils

Some utilities I seem to use in many of my applications.
These sort of lay a path for further development to avoid copy-paste programming and easier code management.

The only thing that is going to remain stable in this library is it’s backwards compatibility, so if a method’s insides are re-programmed due a bug or for an improvement you may update your application by replacing the library.

There will be no instructions for this one, however as almost always a full XML documentation is available
for public / private methods / properties.

Features

  • Current version 1.0.3.6 (04.09.2018)
  • The pack is divided to 29 different classes which are:
  • BasicSecurity – Helper methods for System.Security.ProtectedData class
  • Bytes – Helper methods for byte <-> string conversion and hexadecimal string <-> byte array conversion
  • ProgramArgumentCollection – A simple class to get program arguments and to get their values if the format is arg=blah or –arg=blah, etc.
  • DBUtils – I like to do SQL the old fashioned way, by writing! So some utilities to help in that cause
  • Misc – Currently just enumerations
  • Paths – Some utilities to application related paths such as the installation directory and settings directory
  • Utils – Non-categorized utilities, currently about detecting to host application type (WPF? WinForms? ASP.NET?)
  • Strings – String extension utils, mostly trimming
  • VPKNml – A simple library for storing data, setting, etc.. in and UTF8 encoded file
  • MainAppInfo – A simple class to get information of the main application. It doesn’t matter if you call this class from an assembly or from the application itself.
  • AppRunning – A way to detect if your application is already running using Mutex and an unique string.
  • HumanActivity – A WinForm class for monitoring when a user goes idle (no mouse or keyboard activity in a given time).
  • RemotingMessageServer, RemotingMessageClient – A simple implementation of .NET remoting (inter-process communication) using TCP protocol.
  • NetSH – netsh utilities to ease WCF permission settings
  • UriUrlUtils – Some URL parsing utilities such as if your WCF endpoint address is http://localhost:991/myService the URL is can be parsed to netsh format like http://+:991/
  • SysIcons – Possibility to access system icons and to get them as scaled bitmaps 
  • BuiltInWindowsAccountsLocalize – Possibility to localize Windows built in account names
  • ObjectSerialization – A class containing helper methods for object serialization
  • FileEnumerator class which can search for directories containing certain types of files, etc..
  • TimeTaker class to help measure times for a specified code block execution.

Requirements

  • A Microsoft® Windows® supporting .NET Framework v.4.5
  • LGPL v3 compatible application

Changes

  • v.1.0.0.1 (03.10.2015)
  • Added some string extension utils, mostly trimming (Strings).
  • Added a simple library for storing data, setting, etc.. in and UTF8 encoded file (VPKNml).
  • v.1.0.0.2 (20.10.2015)
  • Added a simple class to get information of the main application. It doesn’t matter if you call this class from an assembly or from the application itself (MainAppInfo).
  • v.1.0.0.3 (03.11.2015)
  • Added some data deletion routines to vnml (VPKNml)
  • v.1.0.0.4 (06.01.2016)
  • Added AppRunning – A way to detect if your application is already running using Mutex and an unique string.
  • Added HumanActivity – A WinForm class for monitoring when a user goes idle (no mouse or keyboard activity in a given time).
  • Added RemotingMessageServer, RemotingMessageClient – A simple implementation of .NET remoting (inter-process communication) using TCP protocol.
  • v.1.0.1.0 (04.02.2018)
  • Added NetSH – netsh utilities to ease WCF permission settings
  • Added UriUrlUtils – some URL parsing utilities such as if your WCF endpoint address is http://localhost:991/myService the URL is can be parsed to netsh format like http://+:991/
  • Added SysIcons – possibility to access system icons and to get them as scaled bitmaps
  • v.1.0.2.0 (23.07.2018)
  • Added WM_MOUSEMOVE to the HumanActivity class
  • Added ObjectSerialization containing helper methods to for object serialization and deserialization
  • Added class BuiltInWindowsAccountsLocalize to localize Windows built in account names
  • Bug fixes for the netsh
  • v.1.0.3.0 (02.08.2018)
  • Added FileEnumerator class which can search for directories containing certain types of files, etc..
  • v.1.0.3.1 (04.08.2018)
  • Fixed bugs from the FileEnumerator class which can search for directories containing certain types of files, etc..
  • v.1.0.3.4 (09.08.2018)
  • Added asynchronous methods to the FileEnumerator class.
  • v.1.0.3.6 (04.09.2018)
  • Added TimeTaker class to the library..

Screenshot (hehee) 😃

Something…

Download