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
Post a Comment