Skip to content

Utility and helpers that underpin the LightestNight ecosystem

License

Notifications You must be signed in to change notification settings

lightest-night/utilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lightest Night

System → Utilities

Utility and helpers that underpin the LightestNight ecosystem

Extensions

Assembly Extensions

  • Assembly.GetInstancesOfInterface(Type interfaceType)

    • Gets all instances of the interfaceType
  • GetInstancesOfInterface<T>()

    • Gets all instances of the interface type T

Enumerable Extensions

  • Enumerable.IsNullOrEmpty<T>()
    • Returns a boolean denoting whether the enumerable is either null or empty

Generators

Guid

  • GuidGenerator.GenerateTimeBasedGuid()

    • Generates a new Guid based on the current date & time
  • GuidGenerator.GenerateTimeBasedGuid(DateTime dateTime)

    • Generates a new Guid based on the given date & time
  • GuidGenerator.GenerateTimeBasedGuid(DateTimeOffset dateTime)

    • Generates a new Guid based on the given Date Time Offset
  • DateTimeOffset GuidGenerator.GetDateTimeOffset(Guid guid)

    • Gets the Date Time Offset that was used to generate the Guid
  • DateTime GuidGenerator.GetDateTime(Guid guid)

    • Gets the Date & Time that was used to generate the Guid
  • DateTime GuidGenerator.GetLocalDateTime(Guid guid)

    • Gets the Date & Time that was used to generate the Guid in local time
  • DateTime GuidGenerator.GetUtcDateTime(Guid guid)

    • Gets the Date & Time that was used to generate the Guid in UTC

Attributes

  • GetCustomAttributeValue<TAttributeType, TValue>(MemberInfo type, Func<TAttributeType, TValue> predicate, TValue defaultValue)
    • Allows the retrieval of a value from an attribute property using the given predicate

About

Utility and helpers that underpin the LightestNight ecosystem

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages