 | ExtensionMethodsLesserOfT(NullableT, NullableT) Method |
Returns the lesser of two values (helper method)
Namespace: SanteDB.CoreAssembly: SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntaxpublic static T? LesserOf<T>(
this T? me,
T? other
)
where T : struct, new(), IComparable
<ExtensionAttribute>
Public Shared Function LesserOf(Of T As {Structure, New, IComparable}) (
me As T?,
other As T?
) As T?public:
[ExtensionAttribute]
generic<typename T>
where T : value class, gcnew(), IComparable
static Nullable<T> LesserOf(
Nullable<T> me,
Nullable<T> other
)
[<ExtensionAttribute>]
static member LesserOf :
me : Nullable<'T> *
other : Nullable<'T> -> Nullable<'T> when 'T : struct, new() and IComparableParameters
- me NullableT
[Missing <param name="me"/> documentation for "M:SanteDB.Core.ExtensionMethods.LesserOf``1(System.Nullable{``0},System.Nullable{``0})"]
- other NullableT
[Missing <param name="other"/> documentation for "M:SanteDB.Core.ExtensionMethods.LesserOf``1(System.Nullable{``0},System.Nullable{``0})"]
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:SanteDB.Core.ExtensionMethods.LesserOf``1(System.Nullable{``0},System.Nullable{``0})"]
Return Value
NullableT[Missing <returns> documentation for "M:SanteDB.Core.ExtensionMethods.LesserOf``1(System.Nullable{``0},System.Nullable{``0})"]
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
NullableT. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also