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.
Weakly is available through NuGet:
Install-Package Weakly
Builder.DynamicDelegatecreates compiled version of MethodInfo.InvokeBuilder.OpenActioncreates open delegatesBuilder.OpenFunccreates open delegatesBuilder.PropertyAccessorcreates compiled version of PropertyInfo.SetValue and GetValue
WeakCollection<T>WeakValueDictionary<TKey, TValue>- some Helpers
WeakActionWeakFunc<TResult>DisposableActionexecutes an action when disposed
WeakEventHandlerWeakEventSource<TEventArgs>
- some Helpers
MemoryTributaryis a MemoryStream replacement using multiple memory segments
ManagedRuntimeto determine the managed runtimeReflectionPathto reflect a path of properties- some Helpers
- Common Tasks
- Exception handling
- APM pattern helper