Skip to content

jonstodle/Simplicity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KodeFisk.Simplicity

A library of extension methods to make C# easier to write and read.

Methods

HasValue

Checks if the string has a valid value (not null, empty or whitespace) and is at least the specified length.

"Valid".HasValue(); // True
"Valid".HasValue(5); // True
"Valid".HasValue(6); // False (length less than 6)

Mutate

Let's you make changes to an object in a one-line expression. It returns the original instance of the object.

myWpfButton.Mutate(button =>
{
    Grid.SetColumn(button, 1);
});

AssignTo

Let's you assign an object to a variable in a "fluent" syntax.

List<int> list;
new List<int> {0, 1, 2}.AssignTo(out list);

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages