Class AbpObjectExtensions
Inheritance
AbpObjectExtensions
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 |
|
Action<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 |
|
Func<T, T> |
func |
|
Returns
Type Parameters
IsIn<T>(T, IEnumerable<T>)
Declaration
public static bool IsIn<T>(this T item, IEnumerable<T> items)
Parameters
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
To<T>(object)
Declaration
public static T To<T>(this object obj) where T : struct
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Type Parameters