Table of Contents

Class OrgNoExtensions

Namespace
Tharga.Toolkit
Assembly
Tharga.Toolkit.Standard.dll

Provides extension methods for parsing and validating Swedish organization numbers.

public static class OrgNoExtensions
Inheritance
OrgNoExtensions
Inherited Members

Methods

TryParseOrgNo(string, out string)

Attempts to parse and validate a Swedish organization number from the input string.

public static bool TryParseOrgNo(this string input, out string orgNo)

Parameters

input string
orgNo string

Returns

bool

TryParseOrgNo(string, out string, out ErrorType?)

Attempts to parse and validate a Swedish organization number from the input string, providing an error type if parsing fails.

public static bool TryParseOrgNo(this string input, out string orgNo, out ErrorType? errorType)

Parameters

input string
orgNo string
errorType ErrorType?

Returns

bool