Livid
Livid
CC#
Created by Livid on 10/30/2023 in #help
✅ HttpClient to Json
finally i did
var result = await response.Content.ReadAsStringAsync();
JsonNode node = JsonNode.Parse(result);
... = node[0]["name"].ToString();
var result = await response.Content.ReadAsStringAsync();
JsonNode node = JsonNode.Parse(result);
... = node[0]["name"].ToString();
16 replies
CC#
Created by Livid on 10/30/2023 in #help
✅ HttpClient to Json
but i don't want to create the class to use by myself and no newtonsoft :(
16 replies
CC#
Created by Livid on 10/16/2023 in #help
✅ try catch
yes, like wrapping each line in try catch
8 replies
CC#
Created by Livid on 10/9/2023 in #help
❔ dictionary as datasource
no
29 replies
CC#
Created by Livid on 10/9/2023 in #help
❔ dictionary as datasource
article has a property id
29 replies
CC#
Created by Livid on 10/9/2023 in #help
❔ dictionary as datasource
i want to insert list of article into another but i don't want duplicate value with id property
29 replies
CC#
Created by Livid on 10/9/2023 in #help
❔ dictionary as datasource
bananas
29 replies
CC#
Created by Livid on 10/9/2023 in #help
❔ dictionary as datasource
so should i use a dictionary?
29 replies
CC#
Created by Livid on 10/9/2023 in #help
❔ dictionary as datasource
?
29 replies
CC#
Created by Livid on 10/9/2023 in #help
❔ dictionary as datasource
collection
29 replies
CC#
Created by Livid on 10/9/2023 in #help
❔ dictionary as datasource
IDictionary<int, Artikel> _artikelsList = new Dictionary<int, Artikel>();
29 replies
CC#
Created by Livid on 10/9/2023 in #help
❔ dictionary as datasource
artikel
29 replies
CC#
Created by Livid on 10/9/2023 in #help
❔ dictionary as datasource
Artikel artikel1 = new Artikel()
{
itemId = 1000000,
itemName = "article naam"
};
_artikelsList.Add(artikel1.itemId, artikel1);
grid.DataSource = _artikelsList.Values;
Artikel artikel2 = new Artikel()
{
itemId = 2000000,
itemName = "article naam"
};
_artikelsList.Add(artikel2.itemId, artikel2);
Artikel artikel1 = new Artikel()
{
itemId = 1000000,
itemName = "article naam"
};
_artikelsList.Add(artikel1.itemId, artikel1);
grid.DataSource = _artikelsList.Values;
Artikel artikel2 = new Artikel()
{
itemId = 2000000,
itemName = "article naam"
};
_artikelsList.Add(artikel2.itemId, artikel2);
value with key 200000 doesn't get added
29 replies
CC#
Created by Livid on 10/9/2023 in #help
❔ dictionary as datasource
....
29 replies
CC#
Created by Livid on 10/9/2023 in #help
❔ dictionary as datasource
but it don't keep updated
29 replies
CC#
Created by Livid on 10/9/2023 in #help
❔ dictionary as datasource
dic.Values does what i want
29 replies
CC#
Created by Livid on 10/9/2023 in #help
❔ dictionary as datasource
the values
29 replies
CC#
Created by Livid on 10/9/2023 in #help
✅ Comparing properties of a values of lists
dead chat
70 replies
CC#
Created by Livid on 10/9/2023 in #help
✅ Comparing properties of a values of lists
BindingSource bs = new BindingSource()
{
DataSource = _artikelsList,
DataMember = "value"

};
BindingSource bs = new BindingSource()
{
DataSource = _artikelsList,
DataMember = "value"

};
this gives me only one value?
70 replies
CC#
Created by Livid on 10/9/2023 in #help
✅ Comparing properties of a values of lists
how should i do it?
70 replies