Tool.Net Library Documentation

website·Indexed 31 days ago

https://tool.nixue.top

Technical documentation for the Tool.Net.dll assembly, providing a suite of utility namespaces including Tool.SqlCore for low-level SQL operations and pagination, Tool.Utils for file management, encryption, validation, and thread-safe collections, and Tool.Web for API routing and Ashx-based lightweight controllers.

Tokens
47K
Snippets
432
Records
525
Agent score
50%

What's inside Tool.Net

  1. Overview of DictionaryExtension utility class

    The DictionaryExtension static class, located in the Tool.Utils.Data namespace within the Tool.Net.dll assembly, provides extension methods to enhance the functionality of standard .NET Dictionaries. It primarily offers capabilities to convert dictionaries to read-only views and retrieve specific subsets of content based on index and count.
    public static class DictionaryExtension
  2. Overview of the Tool.Utils.Validate class

    The Validate class is a sealed utility class located in the Tool.Utils namespace (Assembly: Tool.Net.dll). It provides various validation utilities, including regular expression checks and methods to verify if objects, DataRow objects, or DataSet objects are null or empty. It is commonly used for validating agent strings, image filenames, and date formats.
    public sealed class Validate
  3. Overview of Tool.Sockets.NetFrame TCP Framework

    The Tool.Sockets.NetFrame namespace provides a structured TCP communication framework. Key components include ServerFrame for server-side implementation, ClientFrame for client-side implementation, and ClientFrameList for managing multiple server connections with thread-safe, balanced packet distribution. The framework relies on DataBase as the mandatory base class for packet interfaces and DataNet for general processing logic and custom communication protocol implementation.
  4. Overview of Tool.ObjectExtension class

    The ObjectExtension static class, located in the Tool namespace within the Tool.Net.dll assembly, provides a set of extension methods and properties designed to enhance the base System.Object class. It is primarily used to add dynamic functionality, such as managing dynamic keys and counts, to standard objects.
    public static class ObjectExtension
  5. Overview of Tool.Sockets.UdpHelper Namespace

    The Tool.Sockets.UdpHelper namespace provides tools for asynchronous UDP communication over IPv4. It includes a client implementation (UdpClientAsync), a server implementation (UdpServerAsync), a dedicated UDP communication module (UdpEndPoint), and a core interface for managing connection information (IUdpCore).
  6. Overview of the ByteExtension utility class

    The ByteExtension static class, located in the Tool namespace within the Tool.Net.dll assembly, provides a collection of extension methods to simplify operations on byte arrays and memory segments. It includes functionality for appending bytes, converting Memory<T> to ArraySegment<T>, and transforming byte data into integers, longs, or hexadecimal strings.
    public static class ByteExtension
  7. Overview of the Tool.Utils.Utility class

    The Utility class, located in the Tool.Utils namespace within the Tool.Net.dll assembly, serves as a general-purpose utility class providing common helper methods for the application.
    public class Utility
  8. Overview of LazyConcurrentDictionary<TKey, TValue>

    The LazyConcurrentDictionary<TKey, TValue> class is a thread-safe collection of key/value pairs designed specifically for multi-threaded lazy loading scenarios. It provides standard dictionary operations along with atomic 'get or add' and 'add or update' functionality to ensure consistency across multiple threads.
  9. Overview of StringExtension class

    The StringExtension class in the Tool namespace (contained in Tool.Net.dll) provides a set of extension methods designed to enhance the standard .NET string class. It includes utilities for array manipulation (such as adding or changing elements) and data conversion, such as converting JSON strings to Dictionaries.
    public static class StringExtension
  10. Overview of Tool.Utils.FtpHelper Namespace

    The Tool.Utils.FtpHelper namespace provides utilities for FTP communication. It includes the following primary components:

    • FTPHelper: A general FTP helper class (Note: the documentation recommends using FluentFTP as an alternative).
    • FtpClient: A client class for managing FTP connections and operations.
    • FtpOperater: A class dedicated to performing specific FTP operations.
  11. Overview of TextUtility class

    The TextUtility class, located in the Tool.Utils namespace within the Tool.Net.dll assembly, provides a library of utility methods for string manipulation and technical support tasks.
    public class TextUtility