[This is preliminary documentation and is subject to change.]
Converts a record to a weighted record with the given weight.
Namespace: Microsoft.Research.Naiad.Frameworks.DifferentialDataflow
Assembly: Microsoft.Research.Naiad.DifferentialDataflow (in Microsoft.Research.Naiad.DifferentialDataflow.dll) Version: 0.5.0.0 (0.5.0.0)
Syntax
C#
public static Weighted<TRecord> ToWeighted<TRecord>( this TRecord record, long weight ) where TRecord : Object, IEquatable<TRecord>
Parameters
- record
- Type: TRecord
The record. - weight
- Type: SystemInt64
The weight.
Type Parameters
- TRecord
- The record type.
Return Value
Type: WeightedTRecordThe weighted record.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).See Also