What's Changed?
CaseSensitive Property (CompareLogic)
Example 



KellermanSoftware.WhatsChanged Namespace > CompareLogic Class : CaseSensitive Property
By default the comparison is Case Sensitive
Syntax
Public Property CaseSensitive As Boolean
Dim instance As CompareLogic
Dim value As Boolean
 
instance.CaseSensitive = value
 
value = instance.CaseSensitive
public bool CaseSensitive {get; set;}
public:
property bool CaseSensitive {
   bool get();
   void set (    bool value);
}
Example
CompareLogic compareLogic = new CompareLogic(); //Trial Mode
//CompareLogic compareLogic = new CompareLogic("place user name here", "place license key here"); //License Mode
 
//Set it to be case sensitive, the default is true
compareLogic.CaseSensitive = true;
 
//Compare two strings
string original = "Tiberious";
string changed = "tiberious";
 
ComparisonResult result = compareLogic.CompareStrings(original, changed);
 
//Output to HTML, also can export to CSV, or DataTable
OutputHtmlLogic outputLogic = new OutputHtmlLogic();
outputLogic.OutputToFile(result, "CaseSensitiveTest.html");
 
//Show the file in the browser
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.FileName = "CaseSensitiveTest.html";
proc.Start();
Dim compareLogic As New CompareLogic() 'Trial Mode
'Dim compareLogic As New CompareLogic("place user name here", "place license key here") 'License Mode
 
'Set it to be case sensitive, the default is true
compareLogic.CaseSensitive = True
 
'Compare two strings
Dim original As String = "Tiberious"
Dim changed As String = "tiberious"
 
Dim result As ComparisonResult = compareLogic.CompareStrings(original, changed)
 
'Output to HTML, also can export to CSV, or DataTable
Dim outputLogic As New OutputHtmlLogic()
outputLogic.OutputToFile(result, "CaseSensitiveTest.html")
 
'Show the file in the browser
Dim proc As New System.Diagnostics.Process()
proc.StartInfo.FileName = "CaseSensitiveTest.html"
proc.Start()
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

CompareLogic Class
CompareLogic Members