Class Extensions
Inheritance
System.Object
Extensions
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()
Assembly: Asgard3.Core.dll
Syntax
public static class Extensions
Methods
|
Improve this Doc
View Source
HexToBytes(String)
Declaration
public static byte[] HexToBytes(this string str)
Parameters
Type |
Name |
Description |
System.String |
str |
|
Returns
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
TimeExceedsMinites(DateTime, Int64)
Declaration
public static bool TimeExceedsMinites(this DateTime dateTime, long count)
Parameters
Type |
Name |
Description |
System.DateTime |
dateTime |
|
System.Int64 |
count |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
TimeExceedsMs(DateTime, Int64)
Declaration
public static bool TimeExceedsMs(this DateTime dateTime, long count)
Parameters
Type |
Name |
Description |
System.DateTime |
dateTime |
|
System.Int64 |
count |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ToDataTable<T>(IList<T>)
Declaration
public static DataTable ToDataTable<T>(this IList<T> data)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IList<T> |
data |
|
Returns
Type |
Description |
System.Data.DataTable |
|
Type Parameters
|
Improve this Doc
View Source
ToHex(Byte[])
Declaration
public static string ToHex(this byte[] bytes)
Parameters
Type |
Name |
Description |
System.Byte[] |
bytes |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ToNormalizedString(Enum)
Declaration
public static string ToNormalizedString(this Enum e)
Parameters
Type |
Name |
Description |
System.Enum |
e |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ToReadableString(TimeSpan)
Declaration
public static string ToReadableString(this TimeSpan span)
Parameters
Type |
Name |
Description |
System.TimeSpan |
span |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ToReadableStringShort(TimeSpan)
Declaration
public static string ToReadableStringShort(this TimeSpan span)
Parameters
Type |
Name |
Description |
System.TimeSpan |
span |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ToTimeSpan(DateTime, DateTime)
Declaration
public static TimeSpan ToTimeSpan(this DateTime dateTime, DateTime compareDateTime)
Parameters
Type |
Name |
Description |
System.DateTime |
dateTime |
|
System.DateTime |
compareDateTime |
|
Returns
Type |
Description |
System.TimeSpan |
|