Metodo QueryBuilder.AverageByNullable<'T,'Q,^Value> (F#)
Operatore di query che seleziona un valore nullable per ogni elemento selezionato finora e restituisce la media di questi valori.Se qualsiasi tipo nullable non dispone di un valore, viene ignorato.
Namespace/Module Path: Microsoft.FSharp.Linq
Assembly: FSharp.Core (in FSharp.Core.dll)
// Signature:
member this.AverageByNullable : QuerySource<'T,'Q> * ('T -> Nullable<^Value>) -> Nullable<^Value> when ^Value with static member (+) and ^Value with static member DivideByInt and ^Value with static member Zero and ^Value : (new : unit -> ^Value) and ^Value : struct and ^Value :> ValueType
// Usage:
queryBuilder.AverageByNullable (source, projection)
Parametri
source
Tipo: QuerySource< " T “, Q>La query di input.
projection
Tipo: - 'T > <^value> Nullable<T>Una funzione che calcola un valore per ogni elemento.
Valore restituito
Il valore medio.
Note
I valori null non influiscono sulla media.
Per ulteriori informazioni ed esempi, vedere espressioni di query (F#).
Piattaforme
Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2
Informazioni sulla versione
Versioni della libreria di base F#
Supportato in: 4,0, portabile