Table of contents
TOC
Collapse the table of content
Expand the table of content

Comparer.Equals

Owen Duncan|Last Updated: 4/19/2018

About

Returns a logical value based on the equality check over the two given values.

Comparer.Equals(comparer as function, x as any, y as any) as logical  

Arguments

ArgumentDescription
comparerThe comparer function is used to perform the operation.
xThe left value to compare.
yThe right value to compare.

Example

let  
comparer1 = Comparer.FromCulture("en-us", false),  
comparer2 = Comparer.FromCulture("en-us", true)      
in       
[         
Test1 =  Comparer.Equals(comparer1,"a","A"), equals false   
Test2 = Comparer.Equals(comparer2,"a","A") equals true       
]  
© 2018 Microsoft