Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.28 KB

README.md

File metadata and controls

39 lines (30 loc) · 1.28 KB

n4.net.extensions

Build Status Build Status Coverage Status NuGet

A collection of useful type extensions provided by N4Works.com for .net

USAGE:

IDataReader extension:

using (var dataReader = ExecuteReader(command))
{
    IPerson person = new Person();
    
    person.Name = dataReader.GetFieldValue<string>("PersonName");
    
    return person;
}

Enum extension:

public enum GameTypes {
    [EnumValue("Role Playing Game")]
    RPG,
    [EnumValue("First Person Shooter")]
    FPS,
    Action
}
var typeDescription = GameTypes.RPG.GetValue();