System.JSON
Namespace: System
Assembly: Wisej.Framework (3.1.0.0)
Provides JSON serialization and parsing functionality and extends every Object with the ToJSON methods.
In Visual Basic and C#, you can call this method as an instance method on any object of type Object. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Parses a JSON string to a dynamic object, similar to a JavaScript "expando" object.
Parameter | Type | Description |
---|---|---|
Returns: Object. An instance of DynamicObject containing all the values parsed from the json string.
Parses a JSON string to a dynamic object, similar to a JavaScript "expando" object.
Parameter | Type | Description |
---|---|---|
Returns: Object. An instance of DynamicObject containing all the values parsed from the stream stream.
Serializes the object to a JSON string.
Returns: String. A String representing the serialized object.
Serializes the object to a JSON string.
Returns: String. A String representing the serialized object.
Serializes the object to a JSON string.
Returns: String. A String representing the serialized object.
Serializes the object to a JSON string.
Returns: String. A String representing the serialized object.
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
obj
The object to serialize.
formatted
True to format the output JSON string.
obj
The object to serialize.
options
A combination of WisejSerializerOptions flags.
obj
The object to serialize.
formatted
True to format the output JSON string.
obj
The object to serialize.
options
A combination of WisejSerializerOptions flags.
json
The JSON string to parse.
stream
A Stream providing the JSON string to parse.
System.DateTimeExtensions
Namespace: System
Assembly: Wisej.Framework (3.1.0.0)
Extends DateTime with methods to adjust the server-side time to the client's timezone.
In Visual Basic and C#, you can call this method as an instance method on any object of type Object. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Converts the DateTime value to the time zone of the client's browser. When the timezone of the server doesn't match the time zone of the client, you should convert to the client's timezone when using Now.
Parameter | Type | Description |
---|---|---|
Returns: DateTime.
Converts the DateTime value to the time zone of the client's browser. When the timezone of the server doesn't match the time zone of the client, you should convert to the client's timezone when using Now.
Parameter | Type | Description |
---|---|---|
Returns: DateTime.
System.StringExtensions
Namespace: System
Assembly: Wisej.Framework (3.1.0.0)
Extends the String class.
In Visual Basic and C#, you can call this method as an instance method on any object of type Object. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Replaces diacritics (i.e. "ÇĆĈĊČ" = "C") with their invariant equivalent.
Parameter | Type | Description |
---|---|---|
Returns: String. A string without diacritics.
System.FontExtensions
Namespace: System
Assembly: Wisej.Framework (3.1.0.0)
Extends the Font class.
In Visual Basic and C#, you can call this method as an instance method on any object of type Object. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Changes the FontStyle of the specified font .
Parameter | Type | Description |
---|---|---|
Returns: Font. A new Font with the same size and family as font and the specified style .
Changes the size of the specified font .
Parameter | Type | Description |
---|---|---|
Returns: Font. A new Font with the new size and same family as font .
Changes the size of the specified font .
Returns: Font. A new Font with the new size and unit .
Changes the size and style of the specified font .
Returns: Font. A new Font with the new size, unit , and style .
Creates a copy of the Font preserving the OriginalFontName.
Returns: Font. A new Font identical to the original font..
Returns whether the specified font is a theme font.
Returns: Boolean. True if font is a theme font.
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
font
Base font.
size
New size using the specified unit .
unit
New GraphicsUnit.
font
Base font.
size
New size using the specified unit .
style
New see FontStyle.
unit
New GraphicsUnit.
font
font
Font to check.
value
The DateTime to adjust to the client's time zone.
value
The DateTime to adjust to the client's time zone.
timezoneOffset
The time-zone offset in minutes.
value
String to normalize.
font
Base font.
style
New FontStyle.
font
Base font.
size
New size using the same GraphicsUnit of the original font .