c# - Can you add a TypeConverter to a structure from different assembly, so XAML parser can use it? -


i have add typeconverter structure different assembly (specifically biginteger system.numerics.dll), xaml parser can use deserialization.

public class myclass {   public biginteger value { get; set; }    public dictionary<biginteger, string> dictionary { get; set; } = new dictionary<biginteger, string>(); }  public class bigintegerconverter : typeconverter {   //code } 

i can't use typedescriptor.addattributes since xaml parser not take runtime modifications account.

i can't inherit biginteger , add typeconverterattribute since struct.

i can add typeconverterattribute value property not dictionary property (so can used x:key). furthermore, lead lot of code duplication.

is there way add bigintegerconverter biginteger xaml parser can use it?


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -