1,624,363 questions
0
votes
0
answers
7
views
Why is Animator.SetBool(string, bool)'s effect within a coroutine not consistently reflected in editor or animation behaviour?
I have a simple prototype with a controllable 'villager'. The villager has two animations available to its animator - Guy_idle and Guy_walk. Below is the controller:
The villager has a script, ...
1
vote
0
answers
34
views
Reference Class Properties in Reflection
I'm migrating my application library from dotnet framework 4.6 to dotnet core 8 and I've spent days trying to make the Microsoft.ReportingServices.ReportViewer.Core library work. It refuses to, as ...
-4
votes
0
answers
17
views
Warning on .NET validators [closed]
I have a data field that has a fairly complex rule set for validation.
However, if the validation fails, I need to allow the user to override the error because there will be rare cases in which I get ...
0
votes
0
answers
28
views
NotNullIfNotNull, but using the return value instead of a parameter
I have a function that returns a nullable result and has an out parameter that is also nullable:
public Result? GetResult(out Parameter? parameter)
{
Result? result = //...get the result somehow
...
0
votes
0
answers
19
views
Writing Spill/Array Data to Excel using OpenXML in C# causes cell to become uneditable
Using OpenXML to write "spill" or array data to Excel. This is data that all lives in one cell, but spills over into other cells.
If the cell already has a spill/array in it and then I run ...
0
votes
0
answers
37
views
Cast a DataType in xaml
I am having issues setting the DataType for a picker since the property is an interface that does not have the source exposed.
Below is my xaml code:
<Picker ItemsSource="{Binding ...
0
votes
2
answers
62
views
C# LINQ - Splitting a List into two variables by a condition [duplicate]
Let's say I have someList of things I want to split into two separate lists by some condition.
I've thought of 3 options:
// 1 - two Where's
var trueGroup = someList.Where(x => x.SomeCondition);
...
0
votes
0
answers
38
views
Proper management of Database transactions across services - ASP.NET Core, EF Core
I'm currently working on an ASP.NET Core Web API project, using EF Core as my ORM.
I'm handling database access through a repository pattern for each entity. This mainly because my project makes use ...
0
votes
2
answers
32
views
XmlUnit Diff library - Comparing 2 XMLs ignoring object order
I am writing an XML comparison tool and need to ignore the object, rather than a property, order. For instance:
XML 1.
<Root>
<Vehicles>
<Vehicle>
<...
0
votes
0
answers
41
views
OData $orderby on complex property in projected DTO
I'm building an OData endpoint using EF Core and ODataQueryOptions, and I want to allow clients to $orderby a property that comes from a nested collection in my projection.
I am using ASP.NET Core ...
-2
votes
0
answers
39
views
Approach to identify and replace obsolete .NET Framework APIs during migration to .NET 8 [closed]
I'm in the process of migrating a solution containing multiple projects from .NET Framework 4.8 to .NET 8.
After running the migration using the Upgrade Assistant, I encountered several issues where ...
0
votes
0
answers
19
views
Domain events didn't fire with Elastic APM CaptureSpan
We had a prod bug where domain events weren't being dispatched when _unitOfWork.CommitAsync() was called inside an Elastic APM CaptureSpan. The thing is, this usually works fine - it's just this one ...
0
votes
1
answer
55
views
How to write set property that modifies if required before assignment?
I have a class member String strIOMask; presently, I have get and set methods, but I want to add a modified set property that checks the value being assigned and modifies it if required. This is what ...
0
votes
1
answer
37
views
ILGPU and MemoryAccessViolations [closed]
I am preparing a method to process some combinations for a Sokoban solver. As far as deadlocks discovery takes ages, I am converting it to run on Cuda cores.
A lot seems fine already except for an ...
2
votes
2
answers
79
views
BenchmarkDotNet: OutOfMemoryException when benchmarking parsing a JSON file
I'm trying to benchmark the performance of a library I've written that can parse large JSON files into both an object model and a JsonDocument. So far as I can tell I'm doing everything right, but I'...