Click or drag to resize

TomsToolbox.Desktop Namespace

Classes and functions that use functionality avaiable only in desktop environments targeting .Net 4.5 or .Net Core 3.0 Desktop. This assembly has e.g. a reference to WindwosBase.
Classes
 ClassDescription
Public classHGlobal Wrapper for a global memory handle. The memory will be allocated using AllocHGlobal(Int32); the memory will be freed when the object is disposed.
Public classLegacyV2RuntimeActivationPolicy Configure the LegacyV2RuntimeActivationPolicy from code. See https://msdn.microsoft.com/de-de/library/bbx34a2h.aspx for documentation.
Public classSafeNativeMemory Represents a wrapper class for a buffer allocated with AllocHGlobal(Int32)
Public classSafeNativeMemoryT Represents a wrapper class for a buffer allocated with AllocHGlobal(Int32) and the size of T.
Public classSafeTokenHandle Represents a wrapper class for a token handle.
Public classTryCastExtension Entry point to create the TryCastWorkerTValue.
Public classTryCastWorkerTValue Provide fluent notation for try-casting types.

Create this object using TryCastTValue(TValue)

Public classTryCastWorkerTValue, TResult Provide fluent notation for try-casting types and returning a result.

Create this object using ReturningTResult

Public classTryCastWorkerBaseTValue, TResult Provide fluent notation for try-casting types and returning a result.
Public classUserAccountControl Helper Functions for Privileges and Elevation Status
Public classCode exampleValidationTemplate A validation template for using Validar.Fody (https://github.com/Fody/Validar) with data annotations (System.ComponentModel.DataAnnotations).

Public classWebHelper Helper for web methods.