Läs på engelska Redigera

Dela via


Microsoft.Toolkit.Helpers Namespace

Classes

NotifyTaskCompletion<TResult>

Helper class to wrap around a Task to provide more information usable for UI databinding scenarios. As discussed in MSDN Magazine: https://msdn.microsoft.com/magazine/dn605875.

Singleton<T>

Obsolete see https://github.com/windows-toolkit/WindowsCommunityToolkit/issues/3134.

SystemSerializer

A bare-bones serializer which knows how to deal with primitive types and strings only. It is recommended for more complex scenarios to implement your own IObjectSerializer based on System.Text.Json, Newtonsoft.Json, or DataContractJsonSerializer see https://aka.ms/wct/storagehelper-migration

Interfaces

IFileStorageHelper

Service interface used to store data in a directory/file-system via files and folders.

This interface is meant to help abstract file storage operations across platforms in a library, but the actual behavior will be up to the implementer. Such as, we don't provide a sense of a current directory, so an implementor should consider using full paths to support any file operations. Otherwise, a "directory aware" implementation could be achieved with a current directory field and traversal functions, in which case relative paths would be applicable.

IObjectSerializer

A basic serialization service.

ISettingsStorageHelper<TKey>

Service interface used to store data using key value pairs.

Enums

DirectoryItemType

Represents the types of items available in a directory.