Class Utils
Class containing static utility functions with general purpose.
Inheritance
System.Object
Utils
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace:Foundations.Core.AppDataLayer
Assembly:Foundations.Core.AppDataLayer.dll
Syntax
public class Utils
Methods
ClearIdentifier(String)
Get an identifier clean of invalid characters
Declaration
public static string ClearIdentifier(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | String representing the identifier |
Returns
Type | Description |
---|---|
System.String | String of identifier cleaned of invalid characters |
IsEqual(INullable, INullable)
Declaration
public static bool IsEqual(INullable a, INullable b)
Parameters
Type | Name | Description |
---|---|---|
INullable | a | |
INullable | b |
Returns
Type | Description |
---|---|
System.Boolean |
IsEqual(Object, Object)
Declaration
public static bool IsEqual(object a, object b)
Parameters
Type | Name | Description |
---|---|---|
System.Object | a | |
System.Object | b |
Returns
Type | Description |
---|---|
System.Boolean |
MakeSqlVariable(String)
Get a string representing a variable
Declaration
public static string MakeSqlVariable(string exp)
Parameters
Type | Name | Description |
---|---|---|
System.String | exp | Representation of identifier |
Returns
Type | Description |
---|---|
System.String | String representing a variable - prefixed by @ |
ReplaceEx(String, String, String)
Case insensitive string Replace.
Declaration
public static string ReplaceEx(string original, string pattern, string replacement)
Parameters
Type | Name | Description |
---|---|---|
System.String | original | The original string. |
System.String | pattern | The match pattern. |
System.String | replacement | The replacement string. |
Returns
Type | Description |
---|---|
System.String |
Sysdate()
Declaration
public static NDate Sysdate()
Returns
Type | Description |
---|---|
NDate |