Skip to content

FluentExtensions 1.5

Compare
Choose a tag to compare
@D-Diyare D-Diyare released this 06 Feb 20:14
· 5 commits to master since this release

Newly added extensions

// Converts generic type to xml content file.
void ToXml<T>(this T entity, string path);

// Converts generic type to xml content file.
void ToXml<T>(this T entity, string path, Encoding encoding);

// Converts generic type to xml content file.
void ToXml<T>(this T entity, string path, Formatting formatting, int indentation = 4);

// Converts generic type to xml content file.
void ToXml<T>(this T entity, string path, Encoding encoding, Formatting formatting, int indentation = 4);

// Reads xml content file as generic type.
T FromXml<T>(this string path);

// Generate a new guid and returns it as a string.
static string FromGuid(this string empty);

// Converts boolean value to either "yes" or "No".
string ToYesNo(this bool source, string pattern);