All Questions
23
questions
-3
votes
2
answers
167
views
System.NullReferenceException Object reference not set to an instance of an object (List) [duplicate]
public List<Faculty> Faculties {get;set;}
List<Faculty> faculties = FacultiesManager.Faculties;
Faculties.Add(something);
how can i interact with the object list
0
votes
1
answer
224
views
How can I add Nested Object List Properties to an existing Object
I'm trying to figure out how I can add an object list property to an existing object, which also has a list object property. I have 3 classes as FirstList, SecondList, and ThirdList with an Id and ...
-1
votes
1
answer
36
views
Class including list
when i am assigning the values in the list its saying object not set to instance of an object any help , i can retrieve from other service , when i am trying to assign the value in the list its ...
1
vote
2
answers
138
views
Different properties in one list
i have a class that mades me sick.
I get this data from my db, and just want to manipulate things and bring it back.
The class that get my nervs broken:
public class Part
{
public string name { ...
0
votes
2
answers
1k
views
Update an Object by Matching with other Object Values depend on a Condition in C#
I have class as seen below
public class Channels
{
internal string CallerExt { get; set; }
internal string ChannelName { get; set; }
internal string CalleeExt { get; set; ...
0
votes
1
answer
1k
views
Setting Object Properties in an Array C#
I am working on user account creation for a game I am working on in the Unity engine. I figured the best way to achieve this would be to have an object added to an ArrayList (if I am not mistaken, ...
1
vote
0
answers
242
views
Kellerman Object Comparison for lists and collections
I am attempting to use the Kellerman object comparison code to report all of the changes properties on an object. I am particularly interested in which properties have been changed from default. To ...
15
votes
5
answers
41k
views
Add element to null (empty) List<T> Property [duplicate]
I got a problem.
The problem is that I try to ad an object to a list of this objects.
This list is a property, no error, but when I run it fails at this point, becouse:
"NullReferenceException". ...
0
votes
1
answer
66
views
Get and add all properties of type Mname from a list of objects and add them dynamically too a drop down
Ok so I have an object type called monsters and a list of all monsters
I need to get all the strings from the property called MName and add each one to a Drop down text box.
here is the class so far.(...
-1
votes
3
answers
86
views
How do I get an object from a list where a property of that object matches a certain value?
Say I have a class Person which has a property PersonId of type int, and a class Company which has a property Persons of type List<Person>. I also have a Company object called company1. The code ...
0
votes
1
answer
182
views
Homework how to pass values from one form to an object in a list in another form
I have the following snippet of code that allows me to pull the properties from an object in my list and assign them to variables in other forms. However, I need to be able to pull the data from my ...
0
votes
1
answer
2k
views
Homework find matching object in a list of objects and access properties of that object
I am trying to create a program that mimics an ATM. In my program, I need to check if the string that a user enters matches the Name property of any objects within a list of objects. If it does not ...
0
votes
2
answers
49
views
When I make a reference to an object through the list, I cannot reference the properties of the object
I'm a beginning programmer, just a couple classes so far but looking to go into software engineering in the future. I'm writing a program that stores movie information as an object in a list of movies....
-3
votes
2
answers
307
views
Sort List in java [duplicate]
I have two classes
1 class Runner : instance variables = name , time.
2 class MarathonAdmin
I created list -runners- which hold Runner class objects.object's time are random numbers , generated by ...
1
vote
2
answers
124
views
Find and select specific changes between two object lists
I have two lists of object T. Each T has unique key "T.key"
List<T> List1;
List<T> List2;
I want to create a list of keys of all the objects that are only in List2 but also ones that are ...