All Questions
2,330
questions
0
votes
0
answers
17
views
Suprema BioMini with C# - where should UFLicense.dat be put?
I'm developing a C# application using the BioMini SDK for fingerprint scanning. When running my application, I encountered the following error:
Exception thrown: 'System.DllNotFoundException' in ...
0
votes
1
answer
78
views
Public static class and methods not found in NuGet package
I'm running into an odd issue where I've developed a NuGet package. Because of the architecture of the legacy software I'm trying to write new functionality for, this is in .NET Framework 4.6.1 (I ...
2
votes
1
answer
110
views
C# .NET : is "lock" required around ImmutableList reference copy?
A debate formed about a lock statement in our team - I would appreciate some external feedback about this.
The code part in question is:
lock (IndexLock)
{
currentIndex = Index;
}
You can see ...
2
votes
1
answer
43
views
Do implicit and explicit transformations in C# affect real type transformations?
Why in the reference type, even if implicit conversion is done, the actual type conversion is not done even if explicit conversion is done?
While studying explicit and implicit transformations, I was ...
2
votes
1
answer
34
views
C# pass a parameter a variable with changing references [duplicate]
I have the following code snippet as an example of what I want to do. In this example I would like to print "reference1".
var reference1 = new TestValueClass() { AValue = "reference1&...
0
votes
2
answers
60
views
Trying to import and use a method from different project in a multi-project visual studio solution
I thought this would be really easy to do using just a project reference, but I believe I am missing a step. I am very unfamiliar with working with multi-project solutions and appreciate any help!
I ...
2
votes
1
answer
76
views
Assign the Version of a C# project dynamically, according to the version of another referenced package
I want to set the Version property of a C# project, according to the Version attribute of a PackageReference.
That is, in my project I have a reference to a package "A" of version "1.2....
0
votes
0
answers
21
views
System.Diagnostics.Debug, Version=4.1.2.0 Exception in ASP.NET
After deploying new method, I stumbled upon this error:
Could not load file or assembly 'System.Diagnostics.Debug, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its ...
0
votes
0
answers
40
views
.Net App has reference but is not being recognized in class
Image showing that System.Net is in references
This is an older .net app running 4.5.1
I added the System.Net reference.
Closed/Restarted Visual Studio.
Unloaded/Loaded project.
Cleaned/Built/Rebuilt ...
0
votes
0
answers
39
views
If I have an inline expression, will all references to that expression be the same for the lifetime of an application?
So I have some code that filters a foo by primary key and applies a transformation
public T GetFooByIdAndApplyTransformation<T>(int fooID, func<Foo,T> transformation)
{
return ...
0
votes
1
answer
126
views
A C# Project library with app.config as dll reference to a azure function ,keys not accessible
A C# Project library with app.config file to access keys in project , When i add this project as dll reference to a azure function the keys used in dll are not able to access in metadata of dll and ...
0
votes
1
answer
187
views
How to reference a var node in a script (per instance)?
Am moving from Unity to Godot. There, you can put in the inspector the public variable and change it per instance, but I don't know how to do this in Godot.
I tried using public Node/Node3D and ...
1
vote
1
answer
120
views
Returning a new ref struct instance that holds a reference to the returning instance of another struct
I recently wanted to write code where an instance A of struct S1 returns some instance B of struct S2 that needs some values from instance A. Trivial implementation of struct S2 would be to store ...
-3
votes
1
answer
58
views
How to modify the object (textBox) that called the method from within the method itself?
EDIT: This question has been solved using "sender" (see answer below)--thank you to everyone who left comments!
I'm trying to create a method that I can call within any number of text fields ...
0
votes
0
answers
30
views
C# Console Application No Dependency or Reference
I am trying to create a C# console application that has a depedency or reference to my class libary BUT everytime I create a console application Visual Studio Mac does not give me a depedency option ...