JavaScript Structure |
Namespace: MicaSystems.Utils
public struct JavaScript
The JavaScript type exposes the following members.
Name | Description | |
---|---|---|
JavaScript |
Initializes a new JavaScript from the given FormattableString.
Variable parts of the template (between '{' and '}') will be serialized to JSON.
Specify whether original letter case should be kept. e.g. if set to true PascaleCase property names
will NOT be converted to camelCase.
|
Name | Description | |
---|---|---|
Create |
Creates a new JavaScript from the given FormattableString.
Variable parts of the template (between '{' and '}') will be serialized to JSON.
Specify whether original letter case should be kept. e.g. if set to true PascaleCase property names
will NOT be converted to camelCase.
| |
FromValue |
Returns the JSON representation of the given value.
Specify whether original letter case should be kept. e.g. if set to true PascaleCase property names
will NOT be converted to camelCase.
| |
GetHtmlForAttribute |
Returns an HTML string that is html encoded. Use this method when inserting dynamic JavaScript code into
a html attribute.
| |
GetHtmlForScriptTag |
Returns an HTML string that is NOT html encoded. Use this method when inserting dynamic JavaScript code into
a html script tag.
| |
ToString | Obsolete.
Returns an empty string. This method should be called explicitly. Use GetHtmlForAttribute or GetHtmlForScriptTag instead.
(Overrides ValueTypeToString.) |
Name | Description | |
---|---|---|
AsT |
Casts an object to another type. Returns default(T) if the object is null.
(Defined by Utils_Other.) | |
EqualsAll |
Checks that this object is equal to every object in parameters.
(Defined by Utils_Other.) | |
EqualsAny |
Checks that this object is equal to at least one of the parameters.
(Defined by Utils_Other.) | |
GetString |
Converts an object to String using ToString() method, else returns String.Empty.
(Defined by Utils_Other.) | |
IsGenericList | Overloaded.
Checks if this object is a System.Collections.Generic.List.
(Defined by Utils_Linq.) | |
IsGenericList(Type) | Overloaded.
Checks if this object is a System.Collections.Generic.List using type as T.
(Defined by Utils_Linq.) | |
Serialize | Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.) | |
Serialize(String) | Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.) | |
SerializeJson | Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.) | |
SerializeJson(ListType) | Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.) | |
SerializeJson(DataContractJsonSerializerSettings) | Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.) |