Show / Hide Table of Contents

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 Source

ConvertStringToDouble(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

View Source

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!

View Source

GetResource(String)

Declaration
public static string GetResource(string resourceName)
Parameters
Type Name Description
System.String resourceName
Returns
Type Description
System.String
View Source

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
  • View Source
In This Article
Back to top Copyright 2018-2024 CADology Limited