Class Common
- Namespace
- PHCLibrary.Utils
- Assembly
- PHCLibrary.dll
- Inheritance
-
Common
Methods
CreateStampID()
public static string CreateStampID()
Returns
- string
GetDefaultValue(object)
public static object GetDefaultValue(object value)
Parameters
| Nome |
Tipo |
Descrição |
value |
object |
|
Returns
- object
GetDefaultValue(Type)
public static object GetDefaultValue(Type objType)
Parameters
| Nome |
Tipo |
Descrição |
objType |
Type |
|
Returns
- object
GetDefaultValue<T>()
public static T GetDefaultValue<T>()
Returns
- T
Type Parameters
T
GetTrace(string, int)
public static string GetTrace(string caller = "", int lineNumber = 0)
Parameters
| Nome |
Tipo |
Descrição |
caller |
string |
|
lineNumber |
int |
|
Returns
- string
HasOnlyDigits(string)
[Obsolete("Use IsOnlyDigits extension")]
public static bool HasOnlyDigits(string value)
Parameters
| Nome |
Tipo |
Descrição |
value |
string |
|
Returns
- bool
InList(object, params object[])
public static bool InList(object toExpression, params object[] toItems)
Parameters
Returns
- bool
IsBaseType(Type)
[Obsolete("Use IsSimpleType extension")]
public static bool IsBaseType(Type myType)
Parameters
| Nome |
Tipo |
Descrição |
myType |
Type |
|
Returns
- bool
isEmpty(byte)
[Obsolete("Use IsVoid extension")]
public static bool isEmpty(byte expression)
Parameters
| Nome |
Tipo |
Descrição |
expression |
byte |
|
Returns
- bool
isEmpty(byte[])
[Obsolete("Use IsVoid extension")]
public static bool isEmpty(byte[] expression)
Parameters
| Nome |
Tipo |
Descrição |
expression |
byte[] |
|
Returns
- bool
isEmpty(char)
[Obsolete("Use IsVoid extension")]
public static bool isEmpty(char expression)
Parameters
| Nome |
Tipo |
Descrição |
expression |
char |
|
Returns
- bool
isEmpty(IEnumerable)
[Obsolete("Use IsVoid extension")]
public static bool isEmpty(IEnumerable list)
Parameters
Returns
- bool
isEmpty(IList)
[Obsolete("Use IsVoid extension")]
public static bool isEmpty(IList list)
Parameters
| Nome |
Tipo |
Descrição |
list |
IList |
|
Returns
- bool
isEmpty(DBNull)
[Obsolete("Use IsVoid extension")]
public static bool isEmpty(DBNull expression)
Parameters
| Nome |
Tipo |
Descrição |
expression |
DBNull |
|
Returns
- bool
isEmpty(DateTime)
[Obsolete("Use IsVoid extension")]
public static bool isEmpty(DateTime expression)
Parameters
Returns
- bool
isEmpty(decimal)
[Obsolete("Use IsVoid extension")]
public static bool isEmpty(decimal expression)
Parameters
| Nome |
Tipo |
Descrição |
expression |
decimal |
|
Returns
- bool
isEmpty(double)
[Obsolete("Use IsVoid extension")]
public static bool isEmpty(double expression)
Parameters
| Nome |
Tipo |
Descrição |
expression |
double |
|
Returns
- bool
isEmpty(int)
[Obsolete("Use IsVoid extension")]
public static bool isEmpty(int expression)
Parameters
| Nome |
Tipo |
Descrição |
expression |
int |
|
Returns
- bool
isEmpty(long)
[Obsolete("Use IsVoid extension")]
public static bool isEmpty(long expression)
Parameters
| Nome |
Tipo |
Descrição |
expression |
long |
|
Returns
- bool
IsEmpty(object)
public static bool IsEmpty(object expression)
Parameters
| Nome |
Tipo |
Descrição |
expression |
object |
|
Returns
- bool
isEmpty(string)
[Obsolete("Use IsVoid extension")]
public static bool isEmpty(string expression)
Parameters
| Nome |
Tipo |
Descrição |
expression |
string |
|
Returns
- bool
isEmpty(string[])
[Obsolete("Use IsVoid extension")]
public static bool isEmpty(string[] expression)
Parameters
| Nome |
Tipo |
Descrição |
expression |
string[] |
|
Returns
- bool
IsEqual(object, object)
public static bool IsEqual(object oldValue, object newValue)
Parameters
Returns
- bool
[Obsolete("Use ToDigit extension")]
public static string Transform(bool expression)
Parameters
| Nome |
Tipo |
Descrição |
expression |
bool |
|
Returns
- string
[Obsolete]
public static string Transform(char expression)
Parameters
| Nome |
Tipo |
Descrição |
expression |
char |
|
Returns
- string
[Obsolete]
public static string Transform(DBNull expression)
Parameters
| Nome |
Tipo |
Descrição |
expression |
DBNull |
|
Returns
- string
[Obsolete("Use ToSerial extension")]
public static string Transform(DateTime expression)
Parameters
Returns
- string
[Obsolete("Use ToString().TrimEnd")]
public static string Transform(decimal expression)
Parameters
| Nome |
Tipo |
Descrição |
expression |
decimal |
|
Returns
- string
[Obsolete("Use ToString().TrimEnd")]
public static string Transform(double expression)
Parameters
| Nome |
Tipo |
Descrição |
expression |
double |
|
Returns
- string
[Obsolete("Use ToString().TrimEnd")]
public static string Transform(int expression)
Parameters
| Nome |
Tipo |
Descrição |
expression |
int |
|
Returns
- string
[Obsolete("Use ToString().TrimEnd")]
public static string Transform(long expression)
Parameters
| Nome |
Tipo |
Descrição |
expression |
long |
|
Returns
- string
public static string Transform(object expression)
Parameters
| Nome |
Tipo |
Descrição |
expression |
object |
|
Returns
- string
[Obsolete("Use TrimEnd extension")]
public static string Transform(string expression)
Parameters
| Nome |
Tipo |
Descrição |
expression |
string |
|
Returns
- string
getDefaultSqlValue(Type)
public static string getDefaultSqlValue(Type objType)
Parameters
| Nome |
Tipo |
Descrição |
objType |
Type |
|
Returns
- string
getRandomDigits(int, Random)
public static string getRandomDigits(int numDigits, Random rng = null)
Parameters
Returns
- string
isAnyEmpty(params object[])
public static bool isAnyEmpty(params object[] expression)
Parameters
| Nome |
Tipo |
Descrição |
expression |
object[] |
|
Returns
- bool