Back to top OpenSVG (c) Veridict AB, www.veridict.com
Edit this page

Class CommonTypeExtensions

Contains common type extension methods.

Inheritance
object
CommonTypeExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: OpenSvg
Assembly: OpenSvg.dll
Syntax
public static class CommonTypeExtensions

Methods

| Edit this page View Source

ToDouble(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.

| Edit this page View Source

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.

| Edit this page View Source

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.

| Edit this page View Source

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.

| Edit this page View Source

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.

| Edit this page View Source

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.

| Edit this page View Source

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.