Table of Contents

Class ToAttribute

Namespace
CSharpToJavaScript.Utils
Assembly
CSharpToJavaScript.dll

Changes class/method based on options.

[AttributeUsage(AttributeTargets.All)]
public class ToAttribute : Attribute
Inheritance
ToAttribute
Inherited Members

Remarks

Default: do nothing.
ToLower: convert to lowercase.
FirstCharToLowerCase: convert the first char to lowercase.
None: convert to empty.
NoneWithLeadingDotRemoved: convert to empty with the leading dot removed.
NoneWithTrailingDotRemoved: convert to empty with the trailing dot removed.

Constructors

ToAttribute(string)

public ToAttribute(string to)

Parameters

to string

Fields

Default

public const string Default = "Default"

Field Value

string

FirstCharToLowerCase

public const string FirstCharToLowerCase = "FirstCharToLowerCase"

Field Value

string

None

public const string None = "None"

Field Value

string

NoneWithLeadingDotRemoved

public const string NoneWithLeadingDotRemoved = "NoneWithLeadingDotRemoved"

Field Value

string

NoneWithTrailingDotRemoved

public const string NoneWithTrailingDotRemoved = "NoneWithTrailingDotRemoved"

Field Value

string

ToLower

public const string ToLower = "ToLower"

Field Value

string

Properties

To

public string To { get; init; }

Property Value

string

Methods

Convert(string)

public string Convert(string str)

Parameters

str string

Returns

string