Skip to content

M_CommandLine_Infrastructure_StringExtensions_SafeLength

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

StringExtensions.SafeLength Method

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

Syntax

C#

public static int SafeLength(
	this string value
)

VB

<ExtensionAttribute>
Public Shared Function SafeLength ( 
	value As String
) As Integer

C++

public:
[ExtensionAttribute]
static int SafeLength(
	String^ value
)

F#

[<ExtensionAttribute>]
static member SafeLength : 
        value : string -> int 

Parameters

 

value
Type: System.String

Return Value

Type: Int32

Usage Note

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

StringExtensions Class
CommandLine.Infrastructure Namespace

Clone this wiki locally