Class UtilityMethods
Inheritance
System.Object
UtilityMethods
Assembly: SMT.MastaAPI.13.0.dll
Syntax
public static class UtilityMethods
Methods
InitialiseApiAccess(String)
Call this method to initilise API access from Python, MATLAB, etc
Declaration
public static void InitialiseApiAccess(string installationDirectory)
Parameters
Type |
Name |
Description |
System.String |
installationDirectory |
|
InitialiseDotNetProgramAccess()
Call this method to initilise API access for a .NET application.
Assembly resolution must be setup before calling this method
Declaration
public static void InitialiseDotNetProgramAccess()
IsMethodReadOnly<T>(T, Expression<Func<T, Action>>)
Declaration
public static bool IsMethodReadOnly<T>(this T entity, Expression<Func<T, Action>> method)
where T : APIBase
Parameters
Type |
Name |
Description |
T |
entity |
|
System.Linq.Expressions.Expression<System.Func<T, System.Action>> |
method |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
IsMethodValid<T>(T, Expression<Func<T, Action>>)
Declaration
public static bool IsMethodValid<T>(this T entity, Expression<Func<T, Action>> method)
where T : APIBase
Parameters
Type |
Name |
Description |
T |
entity |
|
System.Linq.Expressions.Expression<System.Func<T, System.Action>> |
method |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
IsReadOnly<T>(T, Expression<Func<T, Object>>)
Declaration
public static bool IsReadOnly<T>(this T entity, Expression<Func<T, object>> property)
where T : APIBase
Parameters
Type |
Name |
Description |
T |
entity |
|
System.Linq.Expressions.Expression<System.Func<T, System.Object>> |
property |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
IsValid<T>(T, Expression<Func<T, Object>>)
Declaration
public static bool IsValid<T>(this T entity, Expression<Func<T, object>> property)
where T : APIBase
Parameters
Type |
Name |
Description |
T |
entity |
|
System.Linq.Expressions.Expression<System.Func<T, System.Object>> |
property |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters