C# Class NetMud.Utility.RenderUtility

Utilities for rendering output
Show file Open project: SwiftAusterity/NetMud

Public Methods

Method Description
GetDescription ( this enumVal ) : string

Gets an attribute on an enum field value

PadWithString ( this str, int padAmount, string padString, bool toTheLeft ) : string

Pads a string with characters

Method Details

GetDescription() public static method

Gets an attribute on an enum field value
public static GetDescription ( this enumVal ) : string
enumVal this The enum value
return string

PadWithString() public static method

Pads a string with characters
public static PadWithString ( this str, int padAmount, string padString, bool toTheLeft ) : string
str this the string to pad
padAmount int how many to pad with
padString string what you're padding with
toTheLeft bool is this to the left or right
return string