84 lines
4.1 KiB
HTML
84 lines
4.1 KiB
HTML
<html dir="LTR" xmlns:ndoc="urn:ndoc-schema">
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
<meta content="history" name="save" />
|
||
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
|
||
<title>NaturalComparer.Compare Method</title>
|
||
<xml>
|
||
</xml>
|
||
<link rel="stylesheet" type="text/css" href="MSDN.css" />
|
||
</head>
|
||
<body id="bodyID" class="dtBODY">
|
||
<div id="nsbanner">
|
||
<div id="bannerrow1">
|
||
<table class="bannerparthead" cellspacing="0">
|
||
<tr id="hdr">
|
||
<td class="runninghead">btb-class</td>
|
||
<td class="product">
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
<div id="TitleRow">
|
||
<h1 class="dtH1">NaturalComparer.Compare Method</h1>
|
||
</div>
|
||
</div>
|
||
<div id="nstext">
|
||
<p> Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other. </p>
|
||
<div class="syntax">public <a href="BetterThumbnailBrowser~ComponentOwl.BetterThumbnailBrowser.NaturalComparer.Compare.html">int</a> Compare(<br /> <a href="BetterThumbnailBrowser~ComponentOwl.BetterThumbnailBrowser.NaturalComparer.Compare.html">object</a> <i>x</i>,<br /> <a href="BetterThumbnailBrowser~ComponentOwl.BetterThumbnailBrowser.NaturalComparer.Compare.html">object</a> <i>y</i><br />);</div>
|
||
<h4 class="dtH4">Parameters</h4>
|
||
<dl>
|
||
<dt>
|
||
<i>x</i>
|
||
</dt>
|
||
<dd>The first object to compare. </dd>
|
||
<dt>
|
||
<i>y</i>
|
||
</dt>
|
||
<dd>The second object to compare. </dd>
|
||
</dl>
|
||
<h4 class="dtH4">Return Value</h4>
|
||
<p> Value Condition Less than zero <i>x</i> is less than <i>y</i>. Zero <i>x</i> equals <i>y</i>. Greater than zero <i>x</i> is greater than <i>y</i>. </p>
|
||
<h4 class="dtH4">Implements</h4>
|
||
<p>
|
||
<a href="http://msdn.microsoft.com/en-us/library/System.Collections.IComparer.Compare(System.Object,System.Object)(VS.90).aspx">IComparer.Compare</a>
|
||
</p>
|
||
<h4 class="dtH4">Exceptions</h4>
|
||
<div class="tablediv">
|
||
<table class="dtTABLE" cellspacing="0">
|
||
<tr valign="top">
|
||
<th width="50%">Exception Type</th>
|
||
<th width="50%">Condition</th>
|
||
</tr>
|
||
<tr valign="top">
|
||
<td width="50%">
|
||
<a href="http://msdn.microsoft.com/en-us/library/System.ArgumentException(VS.90).aspx">ArgumentException</a>
|
||
</td>
|
||
<td width="50%">Neither <i>x</i> nor <i>y</i> implements the <a href="http://msdn.microsoft.com/en-us/library/System.IComparable(VS.90).aspx">IComparable</a> interface. -or- <i>x</i> and <i>y</i> are of different types and neither one can handle comparisons with the other. </td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
<h4 class="dtH4">See Also</h4>
|
||
<p>
|
||
<a href="BetterThumbnailBrowser~ComponentOwl.BetterThumbnailBrowser.NaturalComparer.html">NaturalComparer Class</a> | <a href="~ComponentOwl.BetterThumbnailBrowser.html">ComponentOwl.BetterThumbnailBrowser Namespace</a></p>
|
||
<object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e" viewastext="true" style="display: none;">
|
||
<param name="Keyword" value="Compare method
 ">
|
||
</param>
|
||
<param name="Keyword" value="Compare method, NaturalComparer class">
|
||
</param>
|
||
<param name="Keyword" value="NaturalComparer.Compare method
 ">
|
||
</param>
|
||
</object>
|
||
<hr />
|
||
<div id="footer">
|
||
<p>
|
||
<a href="mailto:support@componentowl.com?subject=btb-class%20Documentation%20Feedback:%20NaturalComparer.Compare Method ">Send comments on this topic.</a>
|
||
</p>
|
||
<p>
|
||
<a>Copyright © 2010-2012 ComponentOwl.com</a>
|
||
</p>
|
||
<p>Generated from assembly BetterThumbnailBrowser [1.4.0.0] by <a href="http://ndoc3.sourceforget.net">NDoc3</a></p>
|
||
</div>
|
||
</div>
|
||
</body>
|
||
</html> |