Properties.EqualityComparer Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
EqualityComparer<TKey,TPayload,T>(IPropertySetter<TKey,TPayload>, Expression<Func<TPayload,T>>, IEqualityComparerExpression<T>) |
Sets a selected-substream equality comparer for the stream. Multiple of these can be set for various selectors. This comparer is an efficient comparer optimized for this data instance, and does not apply to other streams with the same schema. For a schema-level equality comparer, implement the interface IEqualityComparerExpression. |
EqualityComparer<TKey,TPayload,T>(IPropertySetter<TKey,TPayload>, Expression<Func<TPayload,T>>, Expression<Func<T,T,Boolean>>, Expression<Func<T,Int32>>) |
Sets a selected-substream equality comparer for the stream. Multiple of these can be set for various selectors. This comparer is an efficient comparer optimized for this data instance, and does not apply to other streams with the same schema. |
EqualityComparer<TKey,TPayload,T>(IPropertySetter<TKey,TPayload>, Expression<Func<TPayload,T>>, IEqualityComparerExpression<T>)
Sets a selected-substream equality comparer for the stream. Multiple of these can be set for various selectors. This comparer is an efficient comparer optimized for this data instance, and does not apply to other streams with the same schema. For a schema-level equality comparer, implement the interface IEqualityComparerExpression.
public static Microsoft.StreamProcessing.IStreamable<TKey,TPayload> EqualityComparer<TKey,TPayload,T> (this Microsoft.StreamProcessing.IPropertySetter<TKey,TPayload> source, System.Linq.Expressions.Expression<Func<TPayload,T>> selectorExpr, Microsoft.StreamProcessing.IEqualityComparerExpression<T> equalityComparerExpr);
static member EqualityComparer : Microsoft.StreamProcessing.IPropertySetter<'Key, 'Payload> * System.Linq.Expressions.Expression<Func<'Payload, 'T>> * Microsoft.StreamProcessing.IEqualityComparerExpression<'T> -> Microsoft.StreamProcessing.IStreamable<'Key, 'Payload>
<Extension()>
Public Function EqualityComparer(Of TKey, TPayload, T) (source As IPropertySetter(Of TKey, TPayload), selectorExpr As Expression(Of Func(Of TPayload, T)), equalityComparerExpr As IEqualityComparerExpression(Of T)) As IStreamable(Of TKey, TPayload)
Type Parameters
- TKey
- TPayload
- T
Parameters
- source
- Microsoft.StreamProcessing.IPropertySetter<TKey,TPayload>
- selectorExpr
- Expression<Func<TPayload,T>>
- equalityComparerExpr
- IEqualityComparerExpression<T>
Returns
Applies to
EqualityComparer<TKey,TPayload,T>(IPropertySetter<TKey,TPayload>, Expression<Func<TPayload,T>>, Expression<Func<T,T,Boolean>>, Expression<Func<T,Int32>>)
Sets a selected-substream equality comparer for the stream. Multiple of these can be set for various selectors. This comparer is an efficient comparer optimized for this data instance, and does not apply to other streams with the same schema.
public static Microsoft.StreamProcessing.IStreamable<TKey,TPayload> EqualityComparer<TKey,TPayload,T> (this Microsoft.StreamProcessing.IPropertySetter<TKey,TPayload> source, System.Linq.Expressions.Expression<Func<TPayload,T>> selectorExpr, System.Linq.Expressions.Expression<Func<T,T,bool>> equalsExpr, System.Linq.Expressions.Expression<Func<T,int>> getHashCodeExpr);
static member EqualityComparer : Microsoft.StreamProcessing.IPropertySetter<'Key, 'Payload> * System.Linq.Expressions.Expression<Func<'Payload, 'T>> * System.Linq.Expressions.Expression<Func<'T, 'T, bool>> * System.Linq.Expressions.Expression<Func<'T, int>> -> Microsoft.StreamProcessing.IStreamable<'Key, 'Payload>
<Extension()>
Public Function EqualityComparer(Of TKey, TPayload, T) (source As IPropertySetter(Of TKey, TPayload), selectorExpr As Expression(Of Func(Of TPayload, T)), equalsExpr As Expression(Of Func(Of T, T, Boolean)), getHashCodeExpr As Expression(Of Func(Of T, Integer))) As IStreamable(Of TKey, TPayload)
Type Parameters
- TKey
- TPayload
- T
Parameters
- source
- Microsoft.StreamProcessing.IPropertySetter<TKey,TPayload>
- selectorExpr
- Expression<Func<TPayload,T>>
- equalsExpr
- Expression<Func<T,T,Boolean>>
- getHashCodeExpr
- Expression<Func<T,Int32>>