Phone.

Extension(int) Method

Summary

Generates a random extension with the specified length. (US based)
Namespace
Faker
Containing Type
Phone

Syntax

public static string Extension(int length)

Parameters

Name Type Description
length int The extension length

Return Value

Type Description
string a random extension.
GitHub