Class AbpObjectExtensions
Inheritance
object
AbpObjectExtensions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Assembly: Volo.Abp.Core.dll
Syntax
public static class AbpObjectExtensions
Methods
As<T>(object)
Declaration
public static T As<T>(this object obj) where T : class
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Type Parameters
If<T>(T, bool, Action<T>)
Declaration
public static T If<T>(this T obj, bool condition, Action<T> action)
Parameters
Type |
Name |
Description |
T |
obj |
|
bool |
condition |
|
System.Action<T><T> |
action |
|
Returns
Type Parameters
If<T>(T, bool, Func<T, T>)
Declaration
public static T If<T>(this T obj, bool condition, Func<T, T> func)
Parameters
Type |
Name |
Description |
T |
obj |
|
bool |
condition |
|
System.Func<T, TResult><T, T> |
func |
|
Returns
Type Parameters
IsIn<T>(T, params T[])
Declaration
public static bool IsIn<T>(this T item, params T[] list)
Parameters
Type |
Name |
Description |
T |
item |
|
T[] |
list |
|
Returns
Type Parameters
IsIn<T>(T, IEnumerable<T>)
Declaration
public static bool IsIn<T>(this T item, IEnumerable<T> items)
Parameters
Type |
Name |
Description |
T |
item |
|
System.Collections.Generic.IEnumerable<T><T> |
items |
|
Returns
Type Parameters
To<T>(object)
Declaration
public static T To<T>(this object obj) where T : struct
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Type Parameters