Mormon Son
Mormon Son
CC#
Created by Mormon Son on 1/31/2025 in #help
✅ Data Binding System.Numeric.Vector3?
There was a msdn magazine issue from April 2005 describing how. Required a little updating.
17 replies
CC#
Created by Mormon Son on 1/31/2025 in #help
✅ Data Binding System.Numeric.Vector3?
It’s okay, I figured it out using “TypeProvider.AddProvider” using a TypeDescriptorProvider I wrote to pretend the fields are properties for the component model.
17 replies
CC#
Created by Mormon Son on 1/31/2025 in #help
✅ Data Binding System.Numeric.Vector3?
Right that’s the kinda thing I want to avoid
17 replies
CC#
Created by Mormon Son on 1/31/2025 in #help
✅ Data Binding System.Numeric.Vector3?
Yeah but because Vector3 is fields not properties those bindings don’t work
17 replies
CC#
Created by Mormon Son on 1/31/2025 in #help
✅ Data Binding System.Numeric.Vector3?
TypeDescriptorProvider can only be applied to classes I control, is there any equivalent way to provide a custom type descriptor for a specific property
17 replies
CC#
Created by Mormon Son on 1/31/2025 in #help
✅ Data Binding System.Numeric.Vector3?
So I’m wondering if there is some advanced way I can enable binding directly to the field rather than a property, perhaps something to do with ICustomTypeDescriptor?
17 replies
CC#
Created by Mormon Son on 1/31/2025 in #help
✅ Data Binding System.Numeric.Vector3?
I’m only interested in reading the values, but it would be nice not to add 3 additional properties for each of the 7 vectors on my data object to read them all
17 replies
CC#
Created by bvko on 12/18/2024 in #help
Custom JsonConverter to apply to interface or abstract class, anyone ?
14 replies
CC#
Created by Mormon Son on 12/27/2024 in #help
Source Generator IDE interaction
Ended up finding it’s an IDE error and reproducable with no source generators. https://developercommunity.microsoft.com/t/Partial-Property-on-class-with-Primary-C/10820515
19 replies
CC#
Created by Mormon Son on 12/27/2024 in #help
Source Generator IDE interaction
This has to be some sort of weird caching issue because I just removed my SG entirely for this class and just added the extra partial definitions in non generated code and still see the same issue.
19 replies
CC#
Created by Mormon Son on 12/27/2024 in #help
Source Generator IDE interaction
Right but right now SGs can’t build on each other so I had to implement it myself
19 replies
CC#
Created by Mormon Son on 12/27/2024 in #help
Source Generator IDE interaction
I realize it wasn’t clear, this is a source generator that I have written myself. The generated code looks fine, it is just implementing INotifyPropertyChanged using partial properties rather than a field like most public SGs do right now.
19 replies