Class CommonTypeExtensions
Contains common type extension methods.
Inherited Members
Namespace: OpenSvg
Assembly: OpenSvg.dll
Syntax
public static class CommonTypeExtensions
Methods
| Edit this page View SourceToDouble(string)
Converts the given string value to a double.
Declaration
public static double ToDouble(this string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | The string value to convert. |
Returns
Type | Description |
---|---|
double | The converted double value. |
ToFloat(double)
Converts the given double value to a float.
Declaration
public static float ToFloat(this double value)
Parameters
Type | Name | Description |
---|---|---|
double | value | The double value to convert. |
Returns
Type | Description |
---|---|
float | The converted float value. |
ToFloat(string)
Converts the given string value to a float.
Declaration
public static float ToFloat(this string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | The string value to convert. |
Returns
Type | Description |
---|---|
float | The converted float value. |
ToInt(string)
Converts the given string value to an integer.
Declaration
public static int ToInt(this string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | The string value to convert. |
Returns
Type | Description |
---|---|
int | The converted integer value. |
ToXmlString(double)
Converts the given double value to a string representation for XML serialization.
Declaration
public static string ToXmlString(this double value)
Parameters
Type | Name | Description |
---|---|---|
double | value | The double value to convert. |
Returns
Type | Description |
---|---|
string | The string representation of the double value. |
ToXmlString(int)
Converts the given integer value to a string representation for XML serialization.
Declaration
public static string ToXmlString(this int value)
Parameters
Type | Name | Description |
---|---|---|
int | value | The integer value to convert. |
Returns
Type | Description |
---|---|
string | The string representation of the integer value. |
ToXmlString(float)
Converts the given float value to a string representation for XML serialization.
Declaration
public static string ToXmlString(this float value)
Parameters
Type | Name | Description |
---|---|---|
float | value | The float value to convert. |
Returns
Type | Description |
---|---|
string | The string representation of the float value. |