Show / Hide Table of Contents

Class LanguageTag

Provides methods for working with BCP 47 language tags.

Inheritance
System.Object
LanguageTag
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Parsing
Assembly: dotNetRdf.dll
Syntax
public class LanguageTag

Fields

| Improve this Doc View Source

IrregularGrandfatheredTags

Tags that do not match the general langtag production and which would not otherwise be considered well-formed, but which are valid although deprecated in most cases.

Declaration
public static readonly string[] IrregularGrandfatheredTags
Field Value
Type Description
string[]
| Improve this Doc View Source

RegularGrandfatheredTags

Tags that do match the general langtag production but their subtags are not semantically valid. These are also considered valid tags although all are deprecated.

Declaration
public static readonly string[] RegularGrandfatheredTags
Field Value
Type Description
string[]

Methods

| Improve this Doc View Source

IsWellFormed(string)

Determine if a string represents a well-formed language tag.

Declaration
public static bool IsWellFormed(string languageTag)
Parameters
Type Name Description
string languageTag

The string to check.

Returns
Type Description
System.Boolean

True if languageTag is a well-formed language or a grandfathered tag that is considered valid.

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Fields
    • IrregularGrandfatheredTags
    • RegularGrandfatheredTags
  • Methods
    • IsWellFormed(string)
  • Extension Methods
Back to top Generated by DocFX