Show / Hide Table of Contents

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()
Namespace: System
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 Description
T
Type Parameters
Name Description
T

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 Description
T
Type Parameters
Name Description
T

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 Description
T
Type Parameters
Name Description
T

IsIn<T>(T, IEnumerable<T>)

Declaration
public static bool IsIn<T>(this T item, IEnumerable<T> items)
Parameters
Type Name Description
T item
IEnumerable<T> items
Returns
Type Description
bool
Type Parameters
Name Description
T

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 Description
bool
Type Parameters
Name Description
T

To<T>(object)

Declaration
public static T To<T>(this object obj) where T : struct
Parameters
Type Name Description
object obj
Returns
Type Description
T
Type Parameters
Name Description
T
In this article
Back to top Powered by ABP.IO Platform