Sugar

Classes

Class Notes
Binary Represents in memory byte buffer.
Color Represents a color value.
Consts Class that provides access to various type constants.
Convert Converts a base data type to another base data type.
DateFormatter
Encoding
EncodingHelpers
Environment Provides information about the current environment and platform.
Http Provides common methods for receiving data from a resource identified by a URI.
HttpBinaryRequestContent
HttpRequest
HttpRequestContent
HttpResponse
HttpResponseContent<T>
Locale
Math Provides static methods for common mathematical functions.
Random Represents a pseudo-random number generator.
RangeHelper
String Represents text as a series of Unicode characters.
StringBuilder Represents a mutable string of characters.
TimeZone
Url Provides an object representation of a uniform resource locator.
UserSettings Represents a configuration file.

Enums

Enum Notes
CompilerMode
CompilerSubMode
GuidFormat Represents a format specified for a Guid.
HttpRequestMode
OperatingSystem
TargetPlatform Represents a target platform type.

Records

Record Notes
DateTime Represents an instant in time.
Guid Represents a globally unique identifier (GUID).
Range Represents data range.
TimeSpan

Exceptions

Exception Notes
HttpException
SugarAppContextMissingException The exception that is thrown when ApplicationContext is missing.
SugarArgumentException The exception that is thrown when one of the arguments provided to a method is not valid.
SugarArgumentNullException The exception that is thrown when a nil reference is passed to a method that does not accept it as a valid argument.
SugarArgumentOutOfRangeException The exception that is thrown when the value of an argument is outside the allowable range of values.
SugarException Represents errors that occur during application execution.
SugarFileNotFoundException Represents exception that is thrown when specific file can not be found.
SugarFormatException The exception that is thrown when the format of an argument does not meet the parameter specifications.
SugarInvalidOperationException The exception that is thrown when a method call is invalid for the object's current state.
SugarIOException The exception that is thrown when an I/O error occurs.
SugarKeyNotFoundException The exception that is thrown when the key specified for accessing an element in a collection does not match any key in the collection.
SugarNotImplementedException The exception that is thrown when a requested method is not implemented.
SugarNotSupportedException The exception that is thrown when an invoked method is not supported.
SugarStackEmptyException The exception that is thrown when a stack contains no elements.

Aliases

Alias Type
PlatformString
String