Nullable.Compare ジェネリック メソッド
アセンブリ: mscorlib (mscorlib.dll 内)

<ComVisibleAttribute(True)> _ Public Shared Function Compare(Of T As Structure) ( _ n1 As Nullable(Of T), _ n2 As Nullable(Of T) _ ) As Integer
Dim n1 As Nullable(Of T) Dim n2 As Nullable(Of T) Dim returnValue As Integer returnValue = Nullable.Compare(n1, n2)
[ComVisibleAttribute(true)] public static int Compare<T> ( Nullable<T> n1, Nullable<T> n2 ) where T : struct
[ComVisibleAttribute(true)] public: generic<typename T> where T : ValueType static int Compare ( Nullable<T> n1, Nullable<T> n2 )
戻り値
n1 パラメータと n2 パラメータの相対値を表す整数。
0 より小さい値 | n1 の HasValue プロパティが false であり、n2 の HasValue プロパティが true です。 または n1 と n2 の HasValue プロパティが true であり、n1 の Value プロパティの値が、n2 の Value プロパティの値よりも小さい値です。 |
0 | n1 と n2 の HasValue プロパティが false です。 または n1 と n2 の HasValue プロパティが、true であり、n1 の Value プロパティの値が、n2 の Value プロパティの値と同じです。 |
0 より大きい値 | n1 の HasValue プロパティが true であり、n2 の HasValue プロパティが false です。 または n1 と n2 の HasValue プロパティが true であり、n1 の Value プロパティの値が、n2 の Value プロパティの値よりも大きい値です。 |

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- Nullable.Compare ジェネリック メソッドのページへのリンク