You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When declaring a DP using Bindables in a generic class, the application freezes.
namespaceBindablesGeneric{publicclassMyLabel:MyLabel<string>{}publicclassMyLabel<T>:Label{//This one hang the execution, need to force close Visual Studio[DependencyProperty]publicobjectMyProperty{get;set;}//This one works//public static readonly DependencyProperty MyPropertyProperty =// DependencyProperty.Register(nameof(MyProperty), typeof(object), typeof(MyLabel<T>), new PropertyMetadata(null));//public object MyProperty//{// get { return (object)GetValue(MyPropertyProperty); }// set { SetValue(MyPropertyProperty, value); }//}}}
The text was updated successfully, but these errors were encountered:
Thanks for reporting the issue. I have found the root cause. The generic type in Mono.Cecil does not contain the T argument while it is being written in IL. That causes an infinite loop in .NET reflection codes.
I am trying to find a way to include the T in IL. I haven't found the way how Mono.Cecil handles it. When I find it, I will fix the code and release a new package.
When declaring a DP using Bindables in a generic class, the application freezes.
The text was updated successfully, but these errors were encountered: