Click here to Skip to main content
15,881,380 members

Comments by KarNullKa (Top 18 by date)

KarNullKa 9-Nov-21 14:06pm View    
That's why I'm finding out if there's a reason for it before I start fighting with management, but it's probably going to be a futile fight.
KarNullKa 9-Nov-21 14:02pm View    
Usually it's an ID element, so numbers like 1, 2, 3... 1,000,000, 1,000,001, often very large, but nothing SqlDecimal can't handle.
KarNullKa 3-Nov-21 7:31am View    
This method is only available in core, but how can I determine if hardware acceleration is working when this method is not available? I have some code and in both 4.5 and 4.8 frameworks it is much faster when compiling 64bit, so it probably uses hardware acceleration. But something more explicit would be useful. I'm currently only using the preprocessor code:

#if BUILD32
//use Framework function
#else
//use optimized hardware acclerated function
#endif
KarNullKa 12-Oct-21 10:37am View    
I'm trying to make an attribute that distinguishes between Serialization and Deserialization, as opposed to [JsonIgnore]. There are other ways to solve this than using an attribute, but again, constantly writing more code [JsonIgnoreSerialize]/[JsonIgnoreDeserialize] would be nicer.
KarNullKa 12-Oct-21 10:25am View    
I was wondering if it's possible to make a simple attribute that only has e.g. true/false information. After calling the constructor of the AAA class, go through all the properties using reflection and if it has the XXX attribute set and the value set to true, add another attribute to the properties such as [JsonIgnore]. This results in the [JsonIgnore] attribute, but it depends on what data the AAA class contains and the setting of the XXX attribute.