Provides ducking extensions for collections.
More...
|
static T[] | DuckAsArrayOf< T > (this IEnumerable< object > src) |
| Attempts to DuckType a collection.
|
static T[] | DuckAsArrayOf< T > (this IEnumerable< object > src, bool throwOnFailure) |
| Attempts to DuckType a collection.
|
Provides ducking extensions for collections.
◆ DuckAsArrayOf< T >() [1/2]
T[] PeanutButter.DuckTyping.Extensions.DuckTypingCollectionExtensions.DuckAsArrayOf< T > |
( |
this IEnumerable< object > | src | ) |
|
|
static |
Attempts to DuckType a collection.
- Parameters
-
- Template Parameters
-
- Returns
◆ DuckAsArrayOf< T >() [2/2]
T[] PeanutButter.DuckTyping.Extensions.DuckTypingCollectionExtensions.DuckAsArrayOf< T > |
( |
this IEnumerable< object > | src, |
|
|
bool | throwOnFailure ) |
|
static |
Attempts to DuckType a collection.
- Parameters
-
src | Collection to convert |
throwOnFailure | Throw an exception when failing |
- Template Parameters
-
- Returns
The documentation for this class was generated from the following file:
- source/Utils/PeanutButter.DuckTyping/Extensions/DuckTypingCollectionExtensions.cs