System.Xml.Serialization.CodeIdentifiers.MakeRightCase Method

Ensures that the input is of the correct case by modifying the name according to the value of the CodeIdentifiers.UseCamelCasing property.

Syntax

public string MakeRightCase (string identifier)

Parameters

identifier
The name to possibly modify.

Returns

A string that is the same as the input identifier or has the first letter's case modified.

Remarks

If the value of the CodeIdentifiers.UseCamelCasing property is true and the first character of the input is a letter, it is made lowercase, if necessary. If the value of the CodeIdentifiers.UseCamelCasing is false, Pascal case is in effect and the first character, if a letter, is capitalized, if necessary.

Requirements

Namespace: System.Xml.Serialization
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0