Skip to content

M_CommandLine_Core_SpecificationPropertyRules_ContainsIfNotEmpty__1

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

SpecificationPropertyRules.ContainsIfNotEmpty(T) Method

Namespace: CommandLine.Core
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

private static bool ContainsIfNotEmpty<T>(
	this IEnumerable<T> sequence,
	T value
)

VB

<ExtensionAttribute>
Private Shared Function ContainsIfNotEmpty(Of T) ( 
	sequence As IEnumerable(Of T),
	value As T
) As Boolean

C++

private:
[ExtensionAttribute]
generic<typename T>
static bool ContainsIfNotEmpty(
	IEnumerable<T>^ sequence, 
	T value
)

F#

[<ExtensionAttribute>]
private static member ContainsIfNotEmpty : 
        sequence : IEnumerable<'T> * 
        value : 'T -> bool 

Parameters

 

sequence
Type: System.Collections.Generic.IEnumerable(T)
value
Type: T

Type Parameters

 

T

Return Value

Type: Boolean

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable(T). 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

Reference

SpecificationPropertyRules Class
CommandLine.Core Namespace

Clone this wiki locally