StringExtensions Class

Definition

Extension methods for the String type.

public static class StringExtensions
type StringExtensions = class
Public Module StringExtensions
Inheritance
StringExtensions

Methods

ToQuaternion(String)

Converts a String value to a Quaternion value. This method always assumes the invariant culture for parsing values (',' separates numbers, '.' is the decimal separator). Additionally, the format "<float, float, float, float>" is also allowed (though less efficient to parse).

ToVector2(String)

Converts a String value to a Vector2 value. This method always assumes the invariant culture for parsing values (',' separates numbers, '.' is the decimal separator). The input text can either represents a single number (mapped to Vector2(Single), or multiple components. Additionally, the format "<float, float>" is also allowed (though less efficient to parse).

ToVector3(String)

Converts a String value to a Vector3 value. This method always assumes the invariant culture for parsing values (',' separates numbers, '.' is the decimal separator). The input text can either represents a single number (mapped to Vector3(Single), or multiple components. Additionally, the format "<float, float, float>" is also allowed (though less efficient to parse).

ToVector4(String)

Converts a String value to a Vector4 value. This method always assumes the invariant culture for parsing values (',' separates numbers, '.' is the decimal separator). The input text can either represents a single number (mapped to Vector4(Single), or multiple components. Additionally, the format "<float, float, float, float>" is also allowed (though less efficient to parse).

Applies to