Class ObjectExtensions
Inheritance
ObjectExtensions
Assembly: Acoustics.Shared.dll
Syntax
public static class ObjectExtensions
Methods
|
Improve this Doc
View Source
AsArray<T>(T)
Declaration
public static T[] AsArray<T>(this T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
Type Parameters
|
Improve this Doc
View Source
AsList<T>(T)
Declaration
public static List<T> AsList<T>(this T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
Type Parameters
|
Improve this Doc
View Source
NotNull(Object)
Declaration
[ContractAnnotation("obj:null => false; obj:notnull => true")]
public static bool NotNull(this object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
|
Improve this Doc
View Source
Wrap<T>(T)
Declaration
public static IEnumerable<T> Wrap<T>(this T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
Type Parameters