Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Support.Utility Class

This static class implements utility functions used throughout YetaWF.

Namespace: YetaWF.Core.Support
Assembly: YetaWF.Core

Inheritance

Syntax

public static class Utility;

Constructors

This class cannot be instantiated.

Properties

PublicStaticAspNetMvcReturns a value indicating which MVC version is used.
PublicStaticJsonSettingsGetSetJSON settings used to de/serialize only properties with Get and Set accessors.
PublicStaticJsonSettingsGetSetUIHintJSON settings used to de/serialize only properties with Get and Set accessors and UIHint.

Methods

PublicStaticAllowSyncIOUsed to enable sync I/O for the current request. Only enable sync I/O when there is no way to use async I/O (e.g., when using a 3rd party library).
PublicInherited from System.ObjectEqualsDetermines whether the specified object is equal to the current object.
PublicStaticFileToPhysicalTranslates a file path to the appropriate form of the operating system where the application is executing. YetaWF internally uses the "/" character, which may need to be translated for some operating systems, like Windows.
ProtectedInherited from System.ObjectFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
PublicStaticGetAspNetMvcNameReturns a user-displayable name for the MVC version used.
PublicInherited from System.ObjectGetHashCodeServes as the default hash function.
PublicInherited from System.ObjectGetTypeGets the Type of the current instance.
PublicStaticHAEEncodes a string for use as an HTML attribute.
PublicStaticHEEncodes a string for use as HTML.
PublicStaticHtmlDecodeDecodes a HTML encoded string.
PublicStaticJserEncodeEncodes a string for use with JavaScript. The returned string must be surrounded by quotes.
PublicStaticJsonDeserializeDeserializes a JSON string to an object.
PublicStaticJsonSerializeSerializes an object to a JSON string.
ProtectedInherited from System.ObjectMemberwiseCloneCreates a shallow copy of the current Object.
PublicStaticPhysicalToUrlTranslates a local file name to a URL.
PublicStaticInherited from System.ObjectReferenceEqualsDetermines whether the specified Object instances are the same instance.
PublicInherited from System.ObjectToStringReturns a string that represents the current object.
PublicStaticUrlDecodeArgsDecodes an encoded query string argument.
PublicStaticUrlEncodeArgsEncodes a string for use as a query string argument.
PublicStaticUrlEncodePathEncodes a string for use as a URL path.
PublicStaticUrlEncodeSegmentEncodes a string for use as a URL segment (parts in the URL between /xxx/).
PublicStaticUrlForReturns a URL with query string, given a type implementing a controller, and an action name.
PublicStaticUrlToPhysicalTranslates a URL to a local file name.
PublicStaticYamlDeserializeDeserializes a Yaml string to an object.
PublicStaticYamlSerializeSerializes an object to Yaml.

Enums

ProtectedAspNetMvcVersionDescribes the MVC version.

See Also YetaWF.Core Overview