Class Utilities
Useful functions and methods contained within a static class
Inheritance
System.Object
Utilities
Namespace: FpAssistantCore.General
Assembly: FpAssistantCoreScl.dll
Syntax
public static class Utilities : object
Methods
View SourceConvertStringToDouble(String)
Converts a string value into a double, if possible
Declaration
public static (bool status, double value) ConvertStringToDouble(string textualNumber)
Parameters
Type | Name | Description |
---|---|---|
System.String | textualNumber | A string literal containing numbers |
Returns
Type | Description |
---|---|
System.ValueTuple<System.Boolean, System.Double> | bool, double where bool is true or false on conversion success and double in the value from the text string |
GetFPAssistantSDKFileVersion()
FPAssistant DLL Version
Declaration
public static string GetFPAssistantSDKFileVersion()
Returns
Type | Description |
---|---|
System.String | string : Version number contained within Assembly FileInfo data |
Remarks
Will return 0.0.0.0 if executing assembly can't be found!
GetResource(String)
Declaration
public static string GetResource(string resourceName)
Parameters
Type | Name | Description |
---|---|---|
System.String | resourceName |
Returns
Type | Description |
---|---|
System.String |
Swap<T>(ref T, ref T)
Swap the values held in the variables
Declaration
public static void Swap<T>(ref T x, ref T y)
Parameters
Type | Name | Description |
---|---|---|
T | x | Variable to swap |
T | y | Variable to swap |
Type Parameters
Name | Description |
---|---|
T |