Table of Contents

Class PropertiesConversions

Namespace
SunamoCssGenerator
Assembly
SunamoCssGenerator.dll

Converts C# property names to CSS property names (PascalCase to kebab-case)

public class PropertiesConversions
Inheritance
PropertiesConversions
Inherited Members
Extension Methods

Methods

Convert(string)

Converts a property name from PascalCase to CSS kebab-case format. Note: Init() must be called before first use.

public static string Convert(string propertyName)

Parameters

propertyName string

The property name in PascalCase

Returns

string

The CSS property name in kebab-case

Init()

Initializes the property name mappings dictionary. Must be called before using Convert() method.

public static void Init()