Documentation de Dvp.Net. Forum : http://www.developpez.net/forums/f1239/applications/projets/projets-heberges/dvp-net/
Assembly: Developpez.Dotnet (in Developpez.Dotnet.dll) Version: 1.0.0.0 (1.0.0.0)
[Ceci est une documentation préliminaire, sous réserve de modification.]
Convertit un délégué Func<T, bool> en délégué Predicate<T>
Namespace:
Developpez.DotnetAssembly: Developpez.Dotnet (in Developpez.Dotnet.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public static Predicate<T> AsPredicate<T>( this Func<T, bool> function ) |
| Visual Basic (Declaration) |
|---|
<ExtensionAttribute> _ Public Shared Function AsPredicate(Of T) ( _ function As Func(Of T, Boolean) _ ) As Predicate(Of T) |
| Visual C++ |
|---|
[ExtensionAttribute] public: generic<typename T> static Predicate<T>^ AsPredicate( Func<T, bool>^ function ) |
Parameters
- function
- Type: System..::.Func<(Of <(T, Boolean>)>)
La fonction à convertir
Type Parameters
- T
- Le type du paramètre