All Questions
3,848
questions
-1
votes
1
answer
878
views
Unexpected character encountered while parsing value c# newtonsoft
I'm using C# with Newtonsoft library, the error i get is this
Unexpected character encountered while parsing value: {. Path 'data', line 1, position 9.
This is my result json from call
var result = ...
0
votes
0
answers
36
views
Database link objects within objects C#
I know it's seems like a very newbie question but it's still confuse me how you can link objects within objects:
For example I have an objects of Book:
name
pages
publication Date
author
and so on.
...
-1
votes
1
answer
293
views
Creating a generic List with a variable number of objects
I'm trying to build a method that automatically fils a generic list.
I've put together a method like this:
public List<(object, object, object)> makeList<T1>(IEnumerable<T1> coll,...
0
votes
1
answer
148
views
How to pass a method parameter as object and convert it back to it's type?
I would like to pass any type variable to a method and in the method convert it back to it's original type. I am looking to wrap DevExpress Messenger functionality and the message that is sent needs ...
2
votes
2
answers
934
views
A way to catch any change of an object with properties
I have a simple program that's supposed to capture any change of object A. When it does detect a change, it will write down the stringified object into file A.
Now the most obvious approach would be ...
0
votes
0
answers
131
views
(C#) How can I access a property of the parent class?
I want to access a property of my master object.
Here, after instantiating the class City, I want to know the country this city belongs to.
public class Country
{
public string NameOfCountry { get;...
1
vote
0
answers
178
views
Can't add an object from scene to a Visual Scripting node in Unity
I can't add an object from scene to a Visual Scripting node in Unity. While I am dragging a object from a samplescene section to a scipt graph on a GameObject node it shows an unavailable symbol and I ...
-4
votes
1
answer
300
views
Object Reference Not Set To Instance Of Object When Using InputField Script
I just started learning how to do basic things in Unity. I am trying to learn how to use a text field box. I have followed several tutorials and copied everything but I always end up running into one ...
0
votes
1
answer
34
views
Creating a 2-D array of integer triplets in C#
I am trying to create a 2-D array of integer triplets R, G and B using the following code:
BitmapColours [,] PrevImage = new BitmapColours [1, 1];
public class BitmapColours
{
public ...
-1
votes
2
answers
63
views
Is it possible to add an extra element to an object[] array if it has already been instantiated?
Assume the following code as an example:
static void Main(string[] args)
{
Object objects = new Object();
objects.object1 = new ObjectList[4];
}
public class Object
...
-2
votes
3
answers
74
views
Problem sorting objects based on value of its properties
I'm sitting here with a school project I can't seem to figure out; I am to create a console application that let's the user enter a number of salesmen for a hypothetical company. The information about ...
0
votes
0
answers
35
views
Cannot validate properly the username and password using Array.Find()
I'm trying to make a username and login system to validate if the username and password passed by an user by input matches the username and password in an array of objects. I did using Array.Find() ...
0
votes
1
answer
101
views
c# Web API JSon combine Objects into Single Property
I am working on a Web API in C# and am getting my data from a SQL Database. When I put a single student number in the GET call, their data is return correctly, however if they have two rows in the SQL ...
-2
votes
1
answer
146
views
Build Dynamic fields to a defined Class in Runtime in C#
I have a class "Forecast":
public class Forecast
{
public int Id { get; set; }
public int Description{ get; set; }
}
In certain Case I add new fields for the Class Forecast depends on ...
1
vote
1
answer
1k
views
C# Object - get properties from json within the object
My HTTP response data includes a field that is structured as a Dictionary<string,object>. Accessing the Object in debug mode shows me what I expect to see, i.e.
ValueKind = Object:
{ "...