Selerix Developer Tools
Utils Class Members
Fields  Properties  Methods 

Selerix.Foundation Assembly > Selerix.Foundation.Data Namespace : Utils Class

The following tables list the members exposed by Utils.

Public Fields
 NameDescription
Public Fieldstatic (Shared in Visual Basic)Max date for SQL SmallDateTime value  
Public Fieldstatic (Shared in Visual Basic)Min date for SQL SmallDateTime value  
Public FieldSQL Server date format  
Public FieldSQL Server date time format  
Public FieldStandard date format  
Public FieldStream buffer size.  
Public FieldWSP date format  
Public FieldWSP date time format  
Public FieldXML standard dateTime format. http://www.w3.org/TR/xmlschema-2/#dateTime  
Top
Public Properties
 NameDescription
Public Propertystatic (Shared in Visual Basic)Gets the default long date format string.  
Public Propertystatic (Shared in Visual Basic)Gets the default short date format string.  
Top
Public Methods
 NameDescription
Public Methodstatic (Shared in Visual Basic)Overloaded. Checks the SSN.  
Public Methodstatic (Shared in Visual Basic)Comments the script.  
Public Methodstatic (Shared in Visual Basic)Compares two strings and returns true if they are the same. For the comparison, nulls and empty strings are treated as equal and leading and trailing spaces are ignored.  
Public Methodstatic (Shared in Visual Basic)Creates the seven zip selef extract exe.  
Public Methodstatic (Shared in Visual Basic)Overloaded. Cuts the script  
Public Methodstatic (Shared in Visual Basic)String to DateTime conversion.  
Public Methodstatic (Shared in Visual Basic)Overloaded. DateTime to String conversion.  
Public Methodstatic (Shared in Visual Basic)Dumps the current thread stack to the Console.  
Public Methodstatic (Shared in Visual Basic)Encodes binary data using a URL-safe variation of the base64 algorithm but does not chunk the output. The url-safe variation emits - and _ instead of + and / characters.  
Public Methodstatic (Shared in Visual Basic)Encrypts the string.  
Public Methodstatic (Shared in Visual Basic)Encrypts the string ex.  
Public Methodstatic (Shared in Visual Basic)Compares 2 arrays and determines if equal.  
Public Methodstatic (Shared in Visual Basic)Compares two files by matching content and returns true if they are identical; otherwise returns false.  
Public Methodstatic (Shared in Visual Basic)Overloaded. Returns a formatted date string  
Public Methodstatic (Shared in Visual Basic)Formats EIN as ##-#######  
Public Methodstatic (Shared in Visual Basic)Returns a formatted file size  
Public Methodstatic (Shared in Visual Basic)Overloaded. Takes in a phone number as stored in the database and returns the string to be displayed to the user.  
Public Methodstatic (Shared in Visual Basic)Formats SSN as ###-##-####  
Public Methodstatic (Shared in Visual Basic)Generates new ticket number which can be used for error reporting.  
Public Methodstatic (Shared in Visual Basic)Gets the deterministic GUID.  
Public Methodstatic (Shared in Visual Basic)Gets the name parts.  
Public Methodstatic (Shared in Visual Basic)Generates new integer id.  
Public Methodstatic (Shared in Visual Basic)Splits phone in parts and returns those parts.  
Public Methodstatic (Shared in Visual Basic)Gets the product library root path.  
Public Methodstatic (Shared in Visual Basic)Returns the stack trace of the specified exception and all the inner exceptions recursively.  
Public Methodstatic (Shared in Visual Basic)Checks if the file name is safe for the system and does not point to unauthorized locations  
Public Methodstatic (Shared in Visual Basic)Determines whether the specified GUID string is GUID.  
Public Methodstatic (Shared in Visual Basic)If file is MSAccess database  
Public Methodstatic (Shared in Visual Basic)Determines whether [is product library path] [the specified virtual path].  
Public Methodstatic (Shared in Visual Basic)Determines whether [is XML file] [the specified file name].  
Public Methodstatic (Shared in Visual Basic)If file is PKZip Archive  
Public Methodstatic (Shared in Visual Basic)Lefts the string. Trims string to specified lenght  
Public Methodstatic (Shared in Visual Basic)Lists to XML string.  
Public Methodstatic (Shared in Visual Basic)Makes the file name safe.  
Public Methodstatic (Shared in Visual Basic)Returns masked SSN  
Public Methodstatic (Shared in Visual Basic)Normalizes the EIN.  
Public Methodstatic (Shared in Visual Basic)Utility function that removes all non-alphanumeric characters from a string and returns just the numbers and letters, permits underscore, and prepends with underscore if the identifier starts with a number. This is used for converting text valid XML tags, for example.  
Public Methodstatic (Shared in Visual Basic)Overloaded. Checks that SSN has the right format.  
Public Methodstatic (Shared in Visual Basic)Utility function that removes all non-alphanumeric and '.', ':', '-', '_' characters from a string and returns just the numbers, letters and this spec characters, Prepends with underscore if the identifier starts with a number or '.' or'-'. This is used for converting text valid XML tags and attributes.  
Public Methodstatic (Shared in Visual Basic)Replaces all non alpha-num chars from string with new string.  
Public Methodstatic (Shared in Visual Basic)Run and rerun a func up to retryCount times with a msdelay delay between each try  
Public Methodstatic (Shared in Visual Basic)Deletes all non alpha-num chars from string.  
Public Methodstatic (Shared in Visual Basic)Deletes all non alpha-num-whitespace chars from string.  
Public Methodstatic (Shared in Visual Basic)Overloaded. Utility function that removes all non-numeric characters from a string and returns just the numbers. This is used when storing SSN's, ZIP Codes, etc.  
Public Methodstatic (Shared in Visual Basic)Utility function that removes all non numeric from input string and returns result. Also check length of result and if it bigger than withingLength, returns position of last character from result in input string. Used for check max length of SSN\ZIP\PHONE  
Public Methodstatic (Shared in Visual Basic)Trim string  
Public Methodstatic (Shared in Visual Basic)Pauses execution until a file is available for the given access. An exception is thrown if the given time limit is exceeded without the file becoming available.  
Top
See Also

Reference

Utils Class
Selerix.Foundation.Data Namespace