镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

M_CommandLine_Infrastructure_EnumerableExtensions_Empty__1

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

EnumerableExtensions.Empty(TSource) Method

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

Syntax

C#

public static bool Empty<TSource>(
	this IEnumerable<TSource> source
)

VB

<ExtensionAttribute>
Public Shared Function Empty(Of TSource) ( 
	source As IEnumerable(Of TSource)
) As Boolean

C++

public:
[ExtensionAttribute]
generic<typename TSource>
static bool Empty(
	IEnumerable<TSource>^ source
)

F#

[<ExtensionAttribute>]
static member Empty : 
        source : IEnumerable<'TSource> -> bool 

Parameters

 

source
Type: System.Collections.Generic.IEnumerable(TSource)

Type Parameters

 

TSource

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(TSource). 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

EnumerableExtensions Class
CommandLine.Infrastructure Namespace

Clone this wiki locally