Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Invisionware/Invisionware.Core

Open more actions menu

Repository files navigation

Invisionware.Core

Core components for the Invisionware framework

Extensions

The following are the details o nthe extensions provided in this library

Enumerable

The follow extensions are supported on an IEnumerable and IEnumerable object

var lst = new List<string>() { "a", "b", "c", "d", "e", "f" }

ChunkBy

Break up an existing array into chucnks of a certain size

var chunkResult = lst.ChunkBy(2); // returns 2 arrays with 3 items each

TakeLast

Take the last N number of elements from an array

var last lst.TakLast(2); // returns a kist with "e" and "f"

AnySafe

A "null safe" version of Any(). Returns 0 if the object is null

IList<string> invalidList = null;
var anySafe = invalidList.AnySafe(); // Returns false

Enum

GetAttributeOfType

GetEnumValue

TryConvert

List

RemoveRange

String

IsNullOrEmpty

Extends the string object to provide a "method" for checking if the string is null or empty. Really not sure why this isn't part of the framework

string s = null;

Console.WriteLine(s.IsNullOrEmpty());  // Output: true

Type

GetAttributeValue

GetAttributeOfType

AttributeExists

About

Core components for the Invisionware framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.