Skip to content

xkaede/Weakly

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

Weakly

Weakly is a collection of some useful weak-reference types available as portable class library for net45+win8+wp8+wpa81 and available through nuget.

Normally it is not possible to call private methods using reflection in Windows Phone and Windows Store Apps. You will get a MethodAccessException. Weakly solves this problem by using compiled Expressions. So it is not only possible to call private methods but also faster as dynamic invocation.

Install

Weakly is available through NuGet:

Install-Package Weakly

Content

Builders

  • Builder.DynamicDelegate creates compiled version of MethodInfo.Invoke
  • Builder.OpenAction creates open delegates
  • Builder.OpenFunc creates open delegates
  • Builder.PropertyAccessor creates compiled version of PropertyInfo.SetValue and GetValue

Collections

  • WeakCollection<T>
  • WeakValueDictionary<TKey, TValue>
  • some Helpers

Delegates

  • WeakAction
  • WeakFunc<TResult>
  • DisposableAction executes an action when disposed

Events

  • WeakEventHandler
  • WeakEventSource<TEventArgs>

Expressions

  • some Helpers

IO

  • MemoryTributary is a MemoryStream replacement using multiple memory segments

Reflection

  • ManagedRuntime to determine the managed runtime
  • ReflectionPath to reflect a path of properties
  • some Helpers

Tasks

  • Common Tasks
  • Exception handling
  • APM pattern helper

About

Weakly is a collection of some useful weak-reference types.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 99.8%
  • Batchfile 0.2%